Page 1 of 1

NCPA_ACTIVE_CHECKS_set-method

Posted: Wed Aug 12, 2020 7:36 am
by yybadrou
Hi,

I have my Nagios XI server and a set of equipement monitored thanks to the new agent NCPA. I really find it great and helpful.
In the documentation I read about active checks and how can we use the GET method to extract monitored data. as an example, in the following directory

Code: Select all

/usr/local/nagios/libexec#./check_ncpa -H <<HOSTADDRESS>> -t mytoken -M '/cpu' -w 'value1 '-c 'value2' 
Thanks to this command we can extract different information about CPU usage for example. So my questions are:
- How can we use a SET Method as an API request? and what can we modify using this SET Method ?
- If we talk security ? what is the possible vulnerability that this type of request can presents ? and how we can avoid it ?

Thank you

Re: NCPA_ACTIVE_CHECKS_set-method

Posted: Wed Aug 12, 2020 8:13 am
by scottwilkerson
There isn't any SET method

The NCPA agent can only deliver the values it can collect, it has no ability to change values