Page 1 of 1
Newbie ??'s - No logs, no local access, filters do not run
Posted: Tue Apr 01, 2008 3:18 am
by 808moshin
First off, what a wonderful system ZoneMinder is!! I have ZM installed on Ubuntu and it works real good w/the PV-149...anyways, I can't seem to find the logs at /var/log/zm. I was troubleshooting why the purgewhenfull filter was not running when I discovered no logs. I no longer can access ZM from the localhost url. I have to use the dynamic dns url to access it...I assume this was due to changing the lan ip to static because I had sql probs at the same time. But it works, I can capture, review events, modetect works good, just those couple things.
Posted: Tue Apr 01, 2008 3:09 pm
by cordel
Where do you have the logs defined to go in your options under the paths tab?
By default they go to /tmp.
Posted: Tue Apr 01, 2008 6:22 pm
by coke
My Ubuntu 7.10, using the 1.23.2 zm package defaulted to /tmp for the logs. If they're not there, try:
sudo find / -name zmaudit.log
Posted: Wed Apr 02, 2008 6:37 pm
by 808moshin
Thanks, I found the logs. The zmfilter.log is empty and I have several of these in the zmaudit.logs:
04/02/08 08:27:01.032303 zmdc[5108].INF ['zmfilter.pl' starting at 08/04/02 08:27:01, pid = 6693]
04/02/08 08:27:01.470528 zmdc[5108].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
I searched the forum and I think I dont have all the perl modules loaded...am I on the right track? I can execute the filter manually but I can't seem to get it to run automatically. TIA
Posted: Wed Apr 02, 2008 7:04 pm
by 808moshin
OK, I ran" zmfilter.pl status" and it complained about permissions on /etc/zm/zm.conf and /tmp/zmfilter.log...so I "chmod 666" on these files and now the "zmfilter.pl staus" returns:
sysadmin@SENTINEL:~$ zmfilter.pl status
Can't locate MIME/Lite.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /usr/bin/zmfilter.pl line 82.
I am still on the right track of missing perl modules?
Posted: Wed Apr 02, 2008 7:46 pm
by 808moshin
Yup-missing PERL module...for anyone using Ubuntu, the MIME perl lite module is named libmime.lite.perl (search for this in Synaptic). Still not perfect but I am getting content in the zmfilter.log that I can go by. RECAP:
PROBLEM: purgewhenfull filter not running.
TROUBLESHOOTING: (find!) check zmdc.log. Found these entries:
04/02/08 07:46:25.861127 zmdc[5108].INF [Starting pending process, zmfilter.pl]
04/02/08 07:46:25.864166 zmdc[5108].INF ['zmfilter.pl' starting at 08/04/02 07:46:25, pid = 5352]
04/02/08 07:46:26.324289 zmdc[5108].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
zmfilter.log was empty
Ran zmfilter.pl from terminal and revealed permission errors on zmfilter.log & zm.conf. Changed permissions on these files to 666
Ran zmfilter.pl again, output:
sysadmin@SENTINEL:~$ zmfilter.pl status
Can't locate MIME/Lite.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /usr/bin/zmfilter.pl line 82.
Installed libmime.lite.perl using Synaptic
Ran zmfilter.pl and checked zmfilter.log
Posted: Sat Apr 05, 2008 9:34 pm
by cordel
Good show on the trouble shooting and working out several errors
And thanks for the follow up