[Nagiosplug-help] check_by_ssh timed out issue

Mirza Dedic mirde at oppy.com
Thu May 27 05:18:22 CEST 2010


I get that, but with the check script the "timed out" warning comes back as a critical.

I might be stuck with this as there is no "switch" to add to check_by_ssh for timed out values to not raise a critical condition as I've seen in some other scripts.

From: Tony Parsonage [mailto:TParsonage at thiess.com.au]
Sent: May/26/2010 5:02 PM
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] check_by_ssh timed out issue

You should be able to set the alert so that if you get an 'unknown' response then  will not alert.  I am unsure where this is set on the command line, my copy of Groundworks uses a web browser front end and it is set as below:

[cid:image001.png at 01CAFD10.95D0E5C0]

If I untick the box for 'unknown' then save your configuration then I only get emails for Warning and Critical alerts.

Tony

From: Mirza Dedic [mailto:mirde at oppy.com]
Sent: Thursday, 27 May 2010 9:50 AM
To: 'nagiosplug-help at lists.sourceforge.net'
Subject: [Nagiosplug-help] check_by_ssh timed out issue


Hi List,



I have Nagios currently using check_by_ssh (check_by_ssh v2002 (nagios-plugins 1.4.13)) to check some of my remote servers, it calls a log script on the remote server and the log script returns a warning if the log files matches the criteria.



Every now and then, the check_by_ssh script gets timed out, and returns the message below.



Is there a way to suppress this at the Nagios box, so that Plugin Timed Out messages do not get emailed as "Critical"?



Anyone know? Below is my command definition..



define command{

                command_name             van-oppy-pro_data450

                command_line $USER1$/check_by_ssh -H someserver -p 22 -i /home/nagios/.ssh/id_dsa -t 10 -C "/home/nagios/plugins/check_logfiles -t 30 -f /home/nagios/log_conf/usr1_data450.lg"

}



Nagios alert returned when the box being queried is very busy (this does not happen often, but creates a unwanted false positive warning):



CRITICAL - Plugin timed out while executing system call



Click here<https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==> to report this email as spam.

The Oppenheimer Group ---- CONFIDENTIAL



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.




_____________________________________________________________________

IMPORTANT - This email and any attachments may be confidential and privileged.

If received in error, please contact Thiess and delete all copies.  You may not

rely on advice and documents received by email unless confirmed by a signed Thiess

letter.  This restriction on reliance will not apply to the extent that the above email

communication is between parties to a contract and is authorised under that contract.

Before opening or using attachments, check them for viruses and defects.  Thiess'

liability is limited to resupplying any affected attachments.



The Oppenheimer Group ---- CONFIDENTIAL

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100526/fe11cc95/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5735 bytes
Desc: image001.png
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100526/fe11cc95/attachment.png>


More information about the Help mailing list