I would like to add more services to hosts-
The ansible task shows this:
"host_name={{ ansible_hostname }}&service_description=Disk&check_command=check_xi_ncpa\\!-t '{{ ncpa_token }}' -P 5693 -M 'disk/logical/|/used_percent' -w 70 -c 90&check_interval=5&retry_interval=1&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7"
Where do I find the syntax for check command - check_xi_ncpa ? And the services like " -M memory/swap -u -w 50 -c 80" ?
Thanks!
NCPA - Register services
Re: NCPA - Register services
The syntax can be found under Configure > Core Config Manager > Commands > _Commands. The default syntax is:
$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
The services using check_xi_ncpa will vary the $ARG1$ that is passed. The service to check the memory would use a command that looks like:
/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -t 'TOKEN' -P 5693 -M memory/virtual -u Gi -w 50 -c 80
$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
The services using check_xi_ncpa will vary the $ARG1$ that is passed. The service to check the memory would use a command that looks like:
/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -t 'TOKEN' -P 5693 -M memory/virtual -u Gi -w 50 -c 80
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.