Page 1 of 1
Remote logs
Posted: Thu Sep 01, 2005 8:22 am
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
Posted: Sun Sep 04, 2005 9:58 pm
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
Posted: Mon Sep 05, 2005 12:57 am
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
Posted: Mon Sep 05, 2005 6:12 am
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
Posted: Mon Sep 05, 2005 6:33 am
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
Posted: Mon Sep 05, 2005 7:46 pm
by cordel
If it's only available on the lan and blocked from the wan on your firewall it should be okay.
Posted: Mon Sep 05, 2005 7:52 pm
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