Quantcast
Channel: Monitoring-Portal Feed
Viewing all articles
Browse latest Browse all 1338

check_by_ssh The command defined for service [...] is not an executable

$
0
0
Hallo zusammen,

ich habe mich hier registriert, weil ich langsam aber sicher mit meinem Latein am ende bin.

Ich habe Intern einen Icingaserver welcher auf Debian Squeeze läuft.
das Monitoring der Internen (Windows)Server klappt soweit auch prima über NRPE

Ich habe ein Problem mit den Webservern...
Diese laufen alle auf Ubuntu 12.xx.xx LTS.

nun Mein Problem:

Ich möchte die Webserver via ssh abfragen

Commands.cfg

Quellcode

1
# 'check_by_ssh_swap' command definitiondefine command{ 	 command_name check_by_ssh_swap 	 command_line /root/libexec/check_by_ssh -H $HOSTADDRESS$ -l icinga i /root/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_swap -w $ARG1$ -c $ARG2$"



Dienstabfrage:

Quellcode

1
define service{  	use                             generic-service 	 host_name                       Server10-mce DB-Server E2D, 	 service_description             SWAP 	 check_command                   check_by_ssh_swap!50%!50%		notification_period     24x7        }



Hostdefinition:

Quellcode

1
define host {  	use                     generic-noping-webhost  	host_name               Server10-mce DB-Server E2D  	alias                   Server10-mce DB-Server E2D  	address                 xxx.xxx.xxx.xxx		notification_period     24x7		hostgroups		ssh-servers, https-servers}



Auflösung des Commados funktioniert soweit super

Quellcode

1
check_by_ssh_swap/root/libexec/check_by_ssh -H $HOSTADDRESS$ -l icinga i /root/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_swap -w $ARG1$ -c $ARG2$"->/root/libexec/check_by_ssh -H $HOSTADDRESS$ -l icinga i /root/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_swap -w 50% -c 50%"Raw commandline/root/libexec/check_by_ssh -H xxx.xxx.xxx.xxx -l icinga i /root/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_swap -w 50% -c 50%"



gebe ich den Befehl /root/libexec/check_by_ssh -H xxx.xxx.xxx.xxx -l icinga i /root/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_swap -w 50% -c 50%" in die CLI ein, bekomme ich auch einen sauberen Wert zurück


Quellcode

1
SWAP OK - 100% free (8189 MB out of 8189 MB) |swap=8189MB;4094;4094;0;8189



nur auf der Weboberfläche bekomme ich "The command defined for service SWAP is not an executable"

Nach unzähligen Recherchen hoffe ich das ich bei euch Hilfe finde.

Falls ihr noch die eine oder andere Info braucht, einfach fragen.

Danke
Lingo

Viewing all articles
Browse latest Browse all 1338