Voilà les commandes de mon nrpe.cfg
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[check_diskdev]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /vservers/vserver_dev
command[check_diskmail]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /vservers/vserver_mail
command[check_disklfg]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /vservers/vserver_lfg
command[check_diskbackup]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /vservers/vserver_backup
command[check_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 20% -c 10%
Lorsque je lance mon check en manuelle sur mon serveur ou sur mon poste nagios, la commande s'exécute mais quand je modifie les fichiers de configuration de nagios en conséquence c'est là que ça ne marche plus.
Voilà la partie sur nrpe de mon command.cfg
################################################## ##############################
#
# NRPE
#
################################################## ##############################
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
cela correspond exactement à la commande que j'utilise pour tester la configuration