bonjour,
je souhaite faire une supervision en snmp
du repertoire /usr/lib/nagios/plugin
ma commande manuel fonctionne: ./check_snmp_storage.pl -H 192.168.0.x -C public -m ^[CD]: -w 80 -c 90
en revanche avec les fichiers ça ne fonctionne pas
voici ce que j'ai dans le fichier commands.cfg
define command{
command_name check_win_storage
command_line $PLUGINSDIR$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$
}
et ce que j'ai dans mon fichier ser-win.cfg dans le répertoire services sous shinken
define service{
use generic-service
hostgroup_name grp-win
service_description chk-win-disk
check_command check_win_storage!public!^[CDE]:!85!95
servicegroups ser-win-base
}
je sais que ma variable pluginsdir fonctionne.
sinon voici ce que j'ai pour un hôte par exemple
define host {
use windows-server
host_name TEST
address 192.168.0.x
hostgroups grp-win-ph ; Host belong group
}
et voici mon fichier hostgroups.cfg
define hostgroup{
hostgroup_name grp-win ; The name of the hostgroup
alias Global Windows Servers Group ; Long name of the group
#This group contain all the other Windows groups
hostgroup_members grp-win-vm, grp-win-ph
}
define hostgroup{
hostgroup_name grp-win-vm ; The name of the hostgroup
alias VM Windows Servers Group ; Long name of the group
}
define hostgroup{
hostgroup_name grp-win-ph ; The name of the hostgroup
alias Physical Windows Servers Group ; Long name of the group
}
merci pour votre aide