help with executing remote command
Leonardo Murúa Jiménez
leonardox at aullox.com
Thu Apr 28 22:42:30 CEST 2005
Hi list
I'm did this in my services:
define service{
host_name nfsserver
service_description DISK Remote
check_command check_remote_disk!/
checkcommands
# 'check_remote_disk' command definition
define command{
command_name check_remote_disk
command_line $USER1$check_by_ssh -H $HOSTADDRESS$ -C '/usr/local/nagios/check_disk -w 10% -c 5% -p /'
}
but now I've this warning:
Return code of 127 for check of service 'DISK Remote' on host 'nfsserver' was out of bounds. Make sure the plugin you're trying to run actually exists.
TIA
> Hi list:
>
> I'm try to excute a check_disk in remote host via ssh, in command line works fine but in the webnagios say "check_by_ssh: Port must be a positive integer - / -p ", does anyone can help me o send me an example.
>
> TIA
>
>
> shell:
>
> ./check_by_ssh -H 10.0.2.10 -C '/usr/local/bin/check_disk -p /'
> DISK OK - free space: / 1701 MB (36%);| /=3076MB;4776;4776;0;4776
>
> checkcommands.cfg
>
> # 'check_remote_disk' command definition
> define command{
> command_name check_remote_disk
> command_line $USER1$check_by_ssh -H $HOSTADDRESS$ -C '/usr/local/bin/check_disk -p $ARG1$'
>
> "services.cfg"
>
> define service{
> host_name nfsserver
> service_description DISK Remote
> check_command check_remote_disk! -H 10.0.2.10 -C '/usr/local/bin/check_disk -p /'
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 3
> check_period 24x7
> notification_interval 30
> notification_period 24x7
> notification_options w,c,r
> contact_groups linux-admins
> }
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net
> Plus IDC's 2005 look-ahead and a copy of this survey
> Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
> _______________________________________________
> 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
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
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