24 lines
568 B
INI
24 lines
568 B
INI
# /etc/nagios/conf.d/hosts.cfg
|
|
define host {
|
|
host_name ipi_g2_24
|
|
address 100.0.2.224
|
|
use linux-server
|
|
}
|
|
|
|
Définition d'un service:
|
|
|
|
#/etc/nagios/conf.d/services.cfg
|
|
define service {
|
|
service_description cpuload
|
|
host_name ipi_g2_24
|
|
check_command check_snmp_load!70%!80%!
|
|
use generic-service
|
|
}
|
|
|
|
|
|
Définition de la commande:
|
|
#/etc/nagios/conf.d/commands.cfg
|
|
define command {
|
|
command_name check_snmp_load
|
|
command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -2 -C foobar -w $ARG1$ -c $ARG2$
|
|
} |