I am trying to configure nagios in centos 7 but at the time of configuring it the alerts tells me that they are all of my correct hosts but in Status information it does not give me information, it indicates me the following message
(No output on stdout) stderr:
This I have in the file commands.cfg
define command{
command_name snmp_1minute_load
command_line $USER1$/check_snmp -o .1.3.6.1.4.1.2021.10.1.3.1 -H $HOSTADDRESS$ $ARG1$
}
define command{
command_name snmp_5minute_load
command_line $USER1$/check_snmp -o .1.3.6.1.4.1.2021.10.1.3.2 -H $HOSTADDRESS$ $ARG1$
}
define command{
command_name snmp_15minute_load
command_line $USER1$/check_snmp -o .1.3.6.1.4.1.2021.10.1.3.3 -H $HOSTADDRESS$ $ARG1$
}
And this in a file of my windows hosts called windows.cfg
define service{
use generic-service
host_name web1.onemetric.com.au
service_description CPU 1 Minute Average
check_command snmp_1minute_load!-C public
}
define service{
use generic-service
host_name web1.onemetric.com.au
service_description CPU 5 Minute Average
check_command snmp_5minute_load!-C public
}
define service{
use generic-service
host_name web1.onemetric.com.au
service_description CPU 15 Minute Average
check_command snmp_15minute_load!-C public
}