check_nagios and system log

chiel chiel at gmx.net
Tue Mar 20 15:57:24 CET 2007


check_nagios -e 5 -F /usr/local/nagios/var/nagios.log -C 
/usr/local/nagios/bin/nagios

 -e, --expires=INTEGER
    Minutes aging after which logfile is considered stale


Just raise -e



----- Original Message ----- 
From: "Falk Brockerhoff" <noc at smartterra.de>
To: <nagios-users at lists.sourceforge.net>
Sent: Tuesday, March 20, 2007 3:39 PM
Subject: [Nagios-users] check_nagios and system log


> Hi,
>
> 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?
>
> Regards,
>
> Falk
>
>
>
> -------------------------------------------------------------------------
> 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 


-------------------------------------------------------------------------
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