Check by ssh timeout problems

Michael Gargiullo mgargiullo at pivotpointsecurity.com
Mon Nov 10 21:59:38 CET 2008


Aaron,

That looks great, Thanks!

-Mike

-----Original Message-----
From: Aaron Segura [mailto:Aaron.Segura at cabelas.com] 
Sent: Monday, November 10, 2008 3:30 PM
To: Michael Gargiullo; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Check by ssh timeout problems

We had a similar problem (not using SSH, though).  We use this script to
handle our notifications: 
http://sweetdeliah.com/nagios/notify/nagios_notify-0.5.tar.gz

Using the templates, we do something like (or, exactly like) this...

#IF NOTIFICATIONNUMBER=1
#IF SERVICEOUTPUT~=/Service Check Timed Out/
#DIE
#ENDIF
#ENDIF

You can pretty easily modify that to be:

#IF NOTIFICATIONNUMBER<3
#IF SERVICEOUTPUT~=/Plugin timed out while executing system call/
#DIE
#ENDIF
#ENDIF

Enjoy.

-----Original Message-----
From: Michael Gargiullo [mailto:mgargiullo at pivotpointsecurity.com] 
Sent: Monday, November 10, 2008 12:55 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Check by ssh timeout problems

I have 2 remote machines that only I only have ssh access to.  I have
about 5 services I check the status of. Occasionally the machine takes >
70seconds to respond.  

I have the global timeout set to 120 sec, but I still get 5
notifications "CRITICAL - Plugin timed out while executing system call"
then maybe 10-20 minutes later 5 saying it's OK again.  

Is there a proper way to only send alerts on the 2nd or 3rd "CRITICAL -
Plugin timed out while executing system call" message (a true problem)
or better yet, increase the timeout for service checks?  I never get a
host message, just the services.

Unfortunately, I only have ssh access to the remote hosts.

Thanks,

Mike

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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