check_by_ssh, error 127, out of bounds

ah43 at httpsite.com ah43 at httpsite.com
Tue Feb 25 17:50:16 CET 2003


>From the nagios log, starting from the reload:

[1046191170] Caught SIGTERM, shutting down...
[1046191170] Successfully shutdown... (PID=71163)
[1046191170] Nagios 1.0b6 starting... (PID=72926)
[1046191170] Finished daemonizing... (New PID=72927)
[1046191190] Warning: Return code of 127 for check of service 'ssh_disk_root'
on host '<remote host's name>' was out of bounds. Make sure the plugin you're 
trying to run actually exists.


>From the cli:

(29)[nagios] [~] > /usr/local/libexec/nagios/check_by_ssh -H <remote host's
name> -C '/usr/local/libexec/nagios/check_disk -w 15% -c 5% -m /'
DISK OK - [881024 kB (93%) free on /]


>From /usr/local/etc/nagios/checkcommands.cfg:

define command {
command_name                   ssh_disk_root
command_line                  
command[ssh_disk]=/usr/local/libexec/nagios/check_by_ssh -H $HOSTADDRESS$ -C
'/usr/local/libexec/nagios/check_disk -w 1
5% -c 5% -m /'
}


>From /usr/local/etc/nagios/services.cfg

define service {
host_name                      <remote host's name>
service_description            ssh_disk_root
check_command                  ssh_disk_root
use                            generic-service
max_check_attempts             3
normal_check_interval          3
retry_check_interval           120
check_period                   24x7
notification_interval          120
notification_period            24x7
notification_options           w,u,c,r
contact_groups                 system-ops
}


Any clues?



-- 
Andy Harrison
ah##@httpsite.com
ICQ: 123472  AIM/Y!: AHinMaine
homepage: http://www.nachoz.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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