vieleicht kennt hier jemand das Problem.
Unter meinem nagios, wollte ich gerne das Plugin check_load benutzen.
Ich benutze check_ssh um auf den anderen Rechner zu connecten:
Code: Alles auswählen
./check_by_ssh -H ip -p 5621 -l remote -C "./plugins/check_load -w 1,0:1,0:1,0 -c 2,0:2,0:2,0"
Checkcommands:
Code: Alles auswählen
define command{
command_name check_load2
command_line /usr/lib/nagios/plugins/check_load -H $HOSTADDRESS$ -p 5621 -l remote -C "./plugins/check_load -w $ARG1$,$ARG2$,$ARG3$ -c $ARG1$,$ARG2$,$ARG3$"
}
Code: Alles auswählen
define service{
use generic-service ; Name of service template to
host_name Gos-163
service_description CPU load
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups gameroots_group
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_load2!1,0:1,0:1,0!2,0:2,0:2,0
}
Code: Alles auswählen
CPU load
Notifications for this service have been disabled
UNKNOWN 08-05-2006 01:34:57 0d 0h 10m 17s 3/3 Warning threshold must be float or float triplet!
Nagios connecte per rsa key auf den zu prüfenen Rechner.
Also habe ich die .bashrc und .bash_profile angepasst:
export LC_ALL=C
Wenn ich das Plugin jetzt per hand prüfe oder auf den Rechner selbst, ist das alles kein Problem, nur sobald ich es über nagios ausführe kommt die fehlermeldung.
Denkfehler ???
Bin für jeden rat dankbar.