Page 1 of 1

Need solution for long plugin execution + passive check

Posted: Thu Jun 28, 2018 7:13 am
by reincarne
Hello,
I have a complicated check which takes a lot of time until it receives an output.
In our organization, we are using he default timeout value in nagios.cfg which is 60 seconds, and we don't want to change it.

I tried to find a solution using nagios to be able to monitor this check (cronjob is not a solution here).
The best solution I found so far is setting up a passive check. My problem is that I didn't find a good guide how to set it up from zero, I did find some old guides but they are not accurate.

We have the main nagios server, and the host that should send the passive check.

I would like to know what do I have to set up on that host and what do I have to set up on the nagios machine.
Then, when I create the service check - how do I have to define inside it.

Thanksfor help

Re: Need solution for long plugin execution + passive check

Posted: Thu Jun 28, 2018 8:03 am
by scottwilkerson
First I would strongly suggest NCPA passive checks if possible
https://www.nagios.org/ncpa/help.php#passive

Otherwise, we would need to know what OS you are dealing with on the sending server.

Re: Need solution for long plugin execution + passive check

Posted: Sun Jul 01, 2018 4:06 am
by reincarne
scottwilkerson wrote:First I would strongly suggest NCPA passive checks if possible
https://www.nagios.org/ncpa/help.php#passive

Otherwise, we would need to know what OS you are dealing with on the sending server.


Thanks.
I don't mind if this will be NCPA.
I opened the link, is there a guide explaining how to install the NCPA? I only found there an API Tutorial.

Re: Need solution for long plugin execution + passive check

Posted: Mon Jul 02, 2018 9:12 am
by scottwilkerson

Re: Need solution for long plugin execution + passive check

Posted: Mon Jul 02, 2018 9:14 am
by scottwilkerson
This here is a PDF to walk through the passive checks

https://assets.nagios.com/downloads/ncp ... Checks.pdf

Re: Need solution for long plugin execution + passive check

Posted: Tue Jul 03, 2018 3:40 am
by reincarne
it confused me now :D
In one guide it is presented as a tool which is replacing Nagios or working in parallel, in the other guide it looks like I can used NCPA as an agent and add passive checks :D

I will try to work with the guides and check it.

Re: Need solution for long plugin execution + passive check

Posted: Tue Jul 03, 2018 9:13 am
by scottwilkerson
Neither guide replaces Nagios, but NCPA can be an agent for Nagios both for Active or Passive checks, it is very versatile.