kberger
31.10.05, 08:31
Hallo,
ich arbeite mich gerade in Nagios ein und habe ein vermutlich nur kleines problem mit Nagios.
Hier erst einmal meine Daten:
SuSE 10.0 und Nagios mit allen Plugins
SuSe 9.1 NRPE
Die Disk auf dem Host kann ich in der Konsole checken
berger:/usr/lib/nagios/plugins # ./check_nrpe -H host -c check_disk1
DISK OK [3937044 kB (68%) free on /dev/hda2]
Dies funktioniert jedoch nicht mit Nagios.
(Return code of 127 is out of bounds - plugin may be missing)
services.cfg
host_name host
service_description /dev/hda2 Free Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups berger-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nrpe!check_disk1
command.cfg
command[check_nrpe]=/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
nrpe.cfg
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda2
zu überwachender client
command.cfg
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 85% -c 95% -p $ARG1$
nrpe.cfg
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda2
Ich hoffe einfach mal auf Hilfe.
Gruß Klaus
ich arbeite mich gerade in Nagios ein und habe ein vermutlich nur kleines problem mit Nagios.
Hier erst einmal meine Daten:
SuSE 10.0 und Nagios mit allen Plugins
SuSe 9.1 NRPE
Die Disk auf dem Host kann ich in der Konsole checken
berger:/usr/lib/nagios/plugins # ./check_nrpe -H host -c check_disk1
DISK OK [3937044 kB (68%) free on /dev/hda2]
Dies funktioniert jedoch nicht mit Nagios.
(Return code of 127 is out of bounds - plugin may be missing)
services.cfg
host_name host
service_description /dev/hda2 Free Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups berger-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nrpe!check_disk1
command.cfg
command[check_nrpe]=/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
nrpe.cfg
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda2
zu überwachender client
command.cfg
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 85% -c 95% -p $ARG1$
nrpe.cfg
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda2
Ich hoffe einfach mal auf Hilfe.
Gruß Klaus