logging - /var/log/messages

Forum for questions and support relating to the 1.24.x releases only.
Locked
paxx
Posts: 11
Joined: Tue Mar 01, 2011 4:20 pm

logging - /var/log/messages

Post by paxx »

ZM is flooding my /var/log/messages with what seems to be routine stuf such as:

Code: Select all

zmc_m3[8972]: INF [Nursery: 6681000 - Capturing at 14.93 fps]
zma_m5[3435]: INF [Backyard: 8053000 - Processing at 10.87 fps]
Zoneminder is running on a home server that handles stuff other than just monitoring the camera so I need to see the system messages in the system log for maintenance purposes.

Short of editing the syslog.conf, is there and option to only allow Zoneminder to log certain things like errors and disregard the routine stuff? I don’t mind a limited amount of errors getting directed to the syslog if absolutely necessary but I don’t need the routine stuff filling the logs. Ideally, Zoneminder would only log the important stuff to a separate log file that could be reviewed separately to problem-shoot why something isn’t working. I don’t need to know every time it processes something on a particular camera – that’s why there is an event log on the GUI.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Post by mastertheknife »

I agree with you. an option to hide these messages would greatly help.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

There is a way to detour those messages to another log file... like /var/log/zm/zm.log

http://www.zoneminder.com/wiki/index.php/Documentation goto Logging... follow instructions...
paxx
Posts: 11
Joined: Tue Mar 01, 2011 4:20 pm

Post by paxx »

whatboy wrote:There is a way to detour those messages to another log file... like /var/log/zm/zm.log

http://www.zoneminder.com/wiki/index.php/Documentation goto Logging... follow instructions...
yes I read it...

the wiki states:
In order to control syslog messages you need to locate and edit the syslog.conf file on your system. This will often be in the /etc directory
I asked for a way without editing the syslog.conf file. I'm not certain why it pushes logs to the system log file. At most, it should only publish error messages (and only critical error messages at that) and everything else should be logged to the /tmp folder or the log file specified in the options. Since there appears to be no other way, I will have to default and edit the syslog.conf but it just seems unnecessary.

Thanks for you help,
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There are a couple of workarounds you can use. You can edit the FPS Report Interval in the monitor settings Misc tab and set it to a huge value. Or you can reduce the default debug level in the binaries by looking for the zmDbgInit call in zmc.cpp, zma.cpp and changing the debug level to -1 and then recompile and reinstall etc.
Phil
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have added a mod to 1.24.3 to allow these messages to be disabled by setting the FPS Report Interval to zero.
Phil
paxx
Posts: 11
Joined: Tue Mar 01, 2011 4:20 pm

Post by paxx »

zoneminder wrote:I have added a mod to 1.24.3 to allow these messages to be disabled by setting the FPS Report Interval to zero.
Thanks, I apperciate your help. this should help when .3 is offically released. In the mean time, I'll edit the syslog.conf or continue to filter out the ZM stuff with a bash script I wrote.
Locked