Nagios XI Active / Passive aget query

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Nagios XI Active / Passive aget query

Post by sandeepatil »

Want know, can Nagios agent (Active / Passive) store the all sending.

Requirement :

If Nagios XI server goes down and come up again, whatever time taken by Nagios XI to getting up, those time duration missing data we want to get update in the server.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI Active / Passive aget query

Post by ssax »

Not currently without doing custom modifications, what agent and version are you using? We can give you more information once we get that.

Thank you
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Active / Passive aget query

Post by sandeepatil »

We are not using available agent, created custom agent as per our environment.

Can you explain the custom modification.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI Active / Passive aget query

Post by ssax »

You'd need to setup your agent to:
- Spool the results to a directory/file
- Try to connect
---- If it is able to connect, process the file(s) and submit them to the XI server, and finally delete the files from the spool directory/file
---- If it's not able to connect, keep trying every X minutes until it does, then when it connects have it process/submit/delete

Let us know if you have any questions.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Active / Passive aget query

Post by sandeepatil »

Spool the results to a directory/file
Please explain results location or directory path.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI Active / Passive aget query

Post by tmcdonald »

As this is a custom agent you are developing, the locations and paths are up to you.
Former Nagios employee
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Active / Passive aget query

Post by sandeepatil »

Want to know default NRDS agent results location or directory/file, help to understand which details need to configure.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios XI Active / Passive aget query

Post by mcapra »

sandeepatil wrote:Want to know default NRDS agent results location or directory/file
There is none, as pointed out by @ssax here:
ssax wrote:Not currently without doing custom modifications
The functionality you desire is not present in NRDS, NSClient++, NCPA, or any other agent to my knowledge. You would need to develop your own agent to handle that and make design choices that are sensible in the context of your organization. Maybe the spooler file should live in the recycle bin, maybe it should live on a flash drive that you physically transport to the Nagios XI box. Maybe there should be no spooler file and you should use a message queue instead. Maybe you don't develop your own agent and instead do some very clever things with a non-nagios-based system agent with native spooling like rsyslog.

These are probably not decisions that third parties should be making for an organization without proper contracts in place.

However, if you have specific architectural questions regarding any of the agents maintained by Nagios Enterprises (NRPE, NCPA, NRDS, NRDP), this is a fantastic place to get those questions answered.
Former Nagios employee
https://www.mcapra.com/
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Active / Passive aget query

Post by sandeepatil »

In the provided solution,
You'd need to setup your agent to:
- Spool the results to a directory/file
- Try to connect
---- If it is able to connect, process the file(s) and submit them to the XI server, and finally delete the files from the spool directory/file
---- If it's not able to connect, keep trying every X minutes until it does, then when it connects have it process/submit/delete
Need to understand in Nagios XI agent (Not my customize agent) which data need to collect (Need to know location of data and files) to submit the XI server.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios XI Active / Passive aget query

Post by mcapra »

sandeepatil wrote: Need to understand in Nagios XI agent
There is no "Nagios XI agent". Nagios XI has configuration wizards that leverage the following agents for active checks:
  • NRPE (most "Linux" configuration wizards)
  • NCPA
  • NSClient++ (most "Windows" configuration wizards)
What data you collect, where it's located, etc, depends on the specific agent you are using. NRPE works differently from NCPA which works differently from NSClient++.

If all you care about is how to get "passive" results into Nagios XI, regardless of where they are coming from, see this documentation:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
https://www.mcapra.com/
Locked