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
Need solution for long plugin execution + passive check
-
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
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.
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
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:
-
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
This here is a PDF to walk through the passive checks
https://assets.nagios.com/downloads/ncp ... Checks.pdf
https://assets.nagios.com/downloads/ncp ... Checks.pdf
Re: Need solution for long plugin execution + passive check
it confused me now 
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
I will try to work with the guides and check it.
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
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
Neither guide replaces Nagios, but NCPA can be an agent for Nagios both for Active or Passive checks, it is very versatile.