Code: Select all
#check-host-alive
define command{
command_name check-host-alive
command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}
Code: Select all
define service{
use generic-service
host_name huey
service_description CPU Load
check_command check_nrpe!check_load
check_command check-host-alive
}
Please advise. I am trying to setup nagios to ping my servers. What I am trying to get done overall is when a server is down then get notified.
tail -f /var/log/messages and got this .
Jun 27 08:30:27 nag nagios: Error: Could not add object property in file '/usr/local/nagios/etc/objects/commands.cfg' on line 345.
Jun 27 08:30:27 nag nagios: Error: Invalid max_check_attempts value for host 'duey'
Jun 27 08:30:27 nag nagios: Error: Could not register host (config file '/usr/local/nagios/etc/objects/commands.cfg', starting on line 56)
Jun 27 08:30:27 nag nagios: Error processing object config files!
Jun 27 08:30:27 nag nagios: ***> One or more problems was encountered while processing the config files...