Remote logs

Support and queries relating to all previous versions of ZoneMinder
Locked
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Remote logs

Post by jameswilson »

Is it possible to upload relevant logs from a remote machine to a central server. If these files were uploaded and then certain checks ie email etc could be made on them. IE any failures then would be hihlighted on the central machine?

Hope this makes sense

James
bjoern_h
Posts: 4
Joined: Fri Sep 02, 2005 5:37 pm

Post by bjoern_h »

hi,
you can write a shell script which uploads you the log files to another machine or send them per Email. Shell scripts writing is very easy, you can find many tutorials by using google or another searchengine.
When the script is finish you can provide a cron job for call the script automatically!

greetings
björn
sorry for my poor English
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

thankyou bjoern_h. Once i have the log ie the messages log sent to a central machine, is it possible to automatically query these logs for certain words and warn about that. The reason i ask is i have just setup nagios to check my 2 remote machines but all it checks is that th ehttp service is responding. I would prefer it if i could auto check for any errors on the remote system mainly regarding zm
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I think there's a way to sent your logs using snmp and setup a log server wher you want them to go. I haven't yet had the chance to delv into it. Then you can use logwatch to alert to certain things.
If you find some good info let me know as I'd be interested.
Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok Corey leave it with me. cheers for the point in the right direction. I think i have read somewhere the snmp is a security risk. what do you think?

James
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If it's only available on the lan and blocked from the wan on your firewall it should be okay.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

great... lol
What i was thinking was to set remote zm;s to do this ie on the wan. I am playing with nagios at the moment and looking at a way to use that to monitor them. As it checks http is up that seems to be the best i can do at the moment but i will keep looking

JAmes
Locked