check_nagios and system log

Morris, Patrick patrick.morris at hp.com
Tue Mar 20 16:05:58 CET 2007


> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net 
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf 
> Of Falk Brockerhoff
> Sent: Tuesday, March 20, 2007 7:40 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_nagios and system log
>
> I'm running two Nagios-Boxes which should monitor themselves. 
> Server A monitors Server B and viceversa. I'm using 
> check_nagios, executed remote via ssh. This setup works fine, 
> check_nagios looks for one or more running nagios processes 
> and for an entry in the system log not older than 5 minutes.
> 
> This is a perfect solution to monitor if nagios is still 
> working correctly - almost. Nagios only logs if there is an 
> issue with a monitored service or an user action. But in a 
> perfect world there isn't any entry.. ok, in my world there 
> is an entry, but not every five minutes. So check_nagios 
> reports "NAGIOS WARNING: 1 process, status log updated 1379 
> seconds ago".
> 
> Is there an option to enable a "I'm still alive!"-entry in 
> the logfile each minute or so? Or is there a more gentle way 
> to monitor if nagios is working fine?

You can increase the time, as has been mentioned, or submit an external
command via a cron job that will cause an event to be logged. 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list