Need solution for long plugin execution + passive check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Need solution for long plugin execution + passive check

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need solution for long plugin execution + passive check

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Re: Need solution for long plugin execution + passive check

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need solution for long plugin execution + passive check

Post by scottwilkerson »

This here is a PDF to walk through the passive checks

https://assets.nagios.com/downloads/ncp ... Checks.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Re: Need solution for long plugin execution + passive check

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need solution for long plugin execution + passive check

Post by scottwilkerson »

Neither guide replaces Nagios, but NCPA can be an agent for Nagios both for Active or Passive checks, it is very versatile.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked