Change timeout result of check_by_ssh

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Cooperson
Posts: 1
Joined: Mon Apr 28, 2014 4:02 am

Change timeout result of check_by_ssh

Post by Cooperson »

hi,

i use the plugin check_by_ssh and sometimes the plugin timed out and the result is: CRITICAL - Plugin timed out after x seconds
I would like to change the result to "UNKNOWN - Plugin timed out after x seconds", if a timeout happens. In this case the parameter -t does not help.

best regards
Cooper
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Change timeout result of check_by_ssh

Post by abrist »

This request is on my radar. I am currently working on a universal solution that can be used across all c plugins.
You could use the negate plugin to do so, but the negate plugin will need a shorter timeout than the value used by check_by_ssh
See the following thread for more info:
http://support.nagios.com/forum/viewtop ... 35&t=26534
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked