Page 1 of 1

ncpa custom service check

Posted: Mon Nov 11, 2013 12:02 pm
by kendallchenoweth
Can someone please point me to how to setup a custom monitor script to be run by the ncpa agent with Nagios XI. I have a functioning ncpa agent running. I have created a script and placed it in /usr/local/ncpa/plugins. The script uses a single return code of zero or nonzero. How do I configure the Nagios XI server to use this check? Is there a way I could create this check on the nagios XI server and push it out to multiple clients?

Thanks!

Re: ncpa custom service check

Posted: Mon Nov 11, 2013 3:47 pm
by scottwilkerson
You can setup a new service making $ARG1$ the following where mytoken is your token and test.sh is the plugin you placed in /usr/local/ncpa/plugins

Code: Select all

-t mytoken -M agent/plugin/test.sh

Re: ncpa custom service check

Posted: Mon Nov 11, 2013 3:59 pm
by kendallchenoweth
Thanks.... I'm all set now!