I'm running 1.20.1 on redhat 7.3 with a BT878 based card. My log files (in /var/log/messages) are filling up with the following:
Mar 8 01:14:04 guru zmc_m1[7158]: INF [Netcomm: 11567000 - Capturing at 23.81 fps]
Mar 8 01:14:18 guru zma_m1[5350]: INF [Netcomm: 11598000 - Processing at 24.39 fps]
Mar 8 01:14:35 guru zmc_d0[19967]: INF [ir_camera: 8753000 - Capturing at 25.00 fps]
It seems like zm is writing to the log files every minute. That's about 1400 lines every day. Is there a way to decrease the logging down to maybe once an hour or even stop it completely?
Many thanks
Lloyd
How do I decrease the amount of logging
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
If you are concerned only about the reporting messages you list in your post then you can change the FPS report interval in the monitor configuration to a much higher value.
If, however you want to reduce the amount of messages generally, you will need to either modify the main file of each of the binaries you want to change and modify the line
to become
for example. Or set the environment variables ZM_DBG_LEVEL (global) or ZM_DBG_LEVEL_zmc (zmc only) to -1 in you environment.
The default is debug level 0 usually which is info, warning and error messages but no debug. Levels from 1 to 9 increase the debug level whereas level -1 prevents info, and level -2 prevents warnings leaving only errors. Level -3 will switch off absolutely everything and is not recommended. Level -1 should be fine for you.
Phil
If, however you want to reduce the amount of messages generally, you will need to either modify the main file of each of the binaries you want to change and modify the line
Code: Select all
zmDbgInit( "zmc", dbg_id_string, 0 );
Code: Select all
zmDbgInit( "zmc", dbg_id_string, -1 );
The default is debug level 0 usually which is info, warning and error messages but no debug. Levels from 1 to 9 increase the debug level whereas level -1 prevents info, and level -2 prevents warnings leaving only errors. Level -3 will switch off absolutely everything and is not recommended. Level -1 should be fine for you.
Phil
How do I decrease the amount of logging
Hi Phil,
That's for the response, unfortunately I'm a bit a of a newb and most of it went over my head.
<you can change the FPS report interval in the monitor>
I tried changing the fps report interval from 1000 to 3000 but I still seem to be getting heaps of logging like below:
Mar 10 11:27:22 guru zmc_d0[19967]: INF [ir_camera: 13992000 - Capturing at 25.00 fps]
Mar 10 11:28:02 guru zmc_d0[19967]: INF [ir_camera: 13993000 - Capturing at 25.00 fps]
Mar 10 11:28:19 guru zmc_m1[22134]: INF [Netcomm: 2433000 - Capturing at 24.19 fps]
Mar 10 11:28:19 guru zma_m1[22142]: INF [Netcomm: 2433000 - Processing at 24.19 fps]
Mar 10 11:28:42 guru zmc_d0[19967]: INF [ir_camera: 13994000 - Capturing at 25.00 fps]
Mar 10 11:29:22 guru zmc_d0[19967]: INF [ir_camera: 13995000 - Capturing at 25.00 fps]
Mar 10 11:30:02 guru zmc_d0[19967]: INF [ir_camera: 13996000 - Capturing at 25.00 fps]
Mar 10 11:30:22 guru zmc_m1[22134]: INF [Netcomm: 2436000 - Capturing at 24.39 fps]
Mar 10 11:30:23 guru zma_m1[22142]: INF [Netcomm: 2436000 - Processing at 24.19 fps]
Mar 10 11:30:42 guru zmc_d0[19967]: INF [ir_camera: 13997000 - Capturing at 25.00 fps]
Mar 10 11:31:22 guru zmc_d0[19967]: INF [ir_camera: 13998000 - Capturing at 25.00 fps]
Mar 10 11:32:02 guru zmc_d0[19967]: INF [ir_camera: 13999000 - Capturing at 25.00 fps]
Mar 10 11:32:26 guru zmc_m1[22134]: INF [Netcomm: 2439000 - Capturing at 24.19 fps]
Mar 10 11:32:26 guru zma_m1[22142]: INF [Netcomm: 2439000 - Processing at 24.39 fps]
Mar 10 11:32:42 guru zmc_d0[19967]: INF [ir_camera: 14000000 - Capturing at 25.00 fps]
Mar 10 11:33:22 guru zmc_d0[19967]: INF [ir_camera: 14001000 - Capturing at 25.00 fps]
<you will need to either modify the main file of each of the binaries>
Are these the files located at /usr/lib/zm/bin/zma and /usr/lib/zm/bin/zmc? If so how would I go about modifying them as when I open them with mcedit they are unreadable. Thanks again for the help.
Regards Lloyd
That's for the response, unfortunately I'm a bit a of a newb and most of it went over my head.
<you can change the FPS report interval in the monitor>
I tried changing the fps report interval from 1000 to 3000 but I still seem to be getting heaps of logging like below:
Mar 10 11:27:22 guru zmc_d0[19967]: INF [ir_camera: 13992000 - Capturing at 25.00 fps]
Mar 10 11:28:02 guru zmc_d0[19967]: INF [ir_camera: 13993000 - Capturing at 25.00 fps]
Mar 10 11:28:19 guru zmc_m1[22134]: INF [Netcomm: 2433000 - Capturing at 24.19 fps]
Mar 10 11:28:19 guru zma_m1[22142]: INF [Netcomm: 2433000 - Processing at 24.19 fps]
Mar 10 11:28:42 guru zmc_d0[19967]: INF [ir_camera: 13994000 - Capturing at 25.00 fps]
Mar 10 11:29:22 guru zmc_d0[19967]: INF [ir_camera: 13995000 - Capturing at 25.00 fps]
Mar 10 11:30:02 guru zmc_d0[19967]: INF [ir_camera: 13996000 - Capturing at 25.00 fps]
Mar 10 11:30:22 guru zmc_m1[22134]: INF [Netcomm: 2436000 - Capturing at 24.39 fps]
Mar 10 11:30:23 guru zma_m1[22142]: INF [Netcomm: 2436000 - Processing at 24.19 fps]
Mar 10 11:30:42 guru zmc_d0[19967]: INF [ir_camera: 13997000 - Capturing at 25.00 fps]
Mar 10 11:31:22 guru zmc_d0[19967]: INF [ir_camera: 13998000 - Capturing at 25.00 fps]
Mar 10 11:32:02 guru zmc_d0[19967]: INF [ir_camera: 13999000 - Capturing at 25.00 fps]
Mar 10 11:32:26 guru zmc_m1[22134]: INF [Netcomm: 2439000 - Capturing at 24.19 fps]
Mar 10 11:32:26 guru zma_m1[22142]: INF [Netcomm: 2439000 - Processing at 24.39 fps]
Mar 10 11:32:42 guru zmc_d0[19967]: INF [ir_camera: 14000000 - Capturing at 25.00 fps]
Mar 10 11:33:22 guru zmc_d0[19967]: INF [ir_camera: 14001000 - Capturing at 25.00 fps]
<you will need to either modify the main file of each of the binaries>
Are these the files located at /usr/lib/zm/bin/zma and /usr/lib/zm/bin/zmc? If so how would I go about modifying them as when I open them with mcedit they are unreadable. Thanks again for the help.
Regards Lloyd
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: How do I decrease the amount of logging
Did you restart ZM after changing the settings? I didn't think it was necessary but it's worth trying.ldkeen wrote: I tried changing the fps report interval from 1000 to 3000 but I still seem to be getting heaps of logging like below:
You will need to modify the source files, zma.cpp and zmc.cpp in your build directory (assuming you aren't running the LiveCD). These are text files and so any editor should open them. Then just do a 'make' and 'make install' to reinstall them. You will need to restart ZM as well.ldkeen wrote: Are these the files located at /usr/lib/zm/bin/zma and /usr/lib/zm/bin/zmc? If so how would I go about modifying them as when I open them with mcedit they are unreadable.
Phil