Page 1 of 1

NCPA - Register services

Posted: Tue Sep 25, 2018 8:40 am
by khood140
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&notification_interval=5&notification_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!

Re: NCPA - Register services

Posted: Tue Sep 25, 2018 1:42 pm
by cdienger
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