Please can someone help me to troubleshoot this?
- I installed ncpa agent on a Windows machine successfully (I can login to the agent using https://[ip address]:5693/gui/).
- I created an ncpa.cfg file and placed it into /usr/local/nagios/etc/objects:
- I updated the commands.cfg file with this:[root@linux objects]# pwd
/usr/local/nagios/etc/objects
[root@linux objects]# grep check_ncpa ncpa.cfg
check_command check_ncpa!-t '' -P 5693 -M system/agent_version
check_command check_ncpa!-t '' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
check_command check_ncpa!-t '' -P 5693 -M memory/virtual -w 50 -c 80 -u G
check_command check_ncpa!-t '' -P 5693 -M processes -w 150 -c 200
But when I run the verification I receive the following:define command {
command_name check_ncpa
command_line $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
}
Thanks in advance of any help.Running pre-flight check on configuration data...
Checking objects...
Error: Service check command 'check_ncpa!-t '' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'' specified in service 'CPU Usage' for host 'LONTEST350' not defined anywhere!
Error: Service check command 'check_ncpa!-t '' -P 5693 -M memory/virtual -w 50 -c 80 -u G' specified in service 'Memory Usage' for host 'LONTEST350' not defined anywhere!
Error: Service check command 'check_ncpa!-t '' -P 5693 -M processes -w 150 -c 200' specified in service 'Process Count' for host 'LONTEST350' not defined anywhere!
Error: Host check command 'check_ncpa!-t '' -P 5693 -M system/agent_version' specified for host 'LONTEST350' is not defined anywhere!
- Daren