Page 1 of 3
Nagios XI Active / Passive aget query
Posted: Wed Jul 05, 2017 10:10 am
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.
Re: Nagios XI Active / Passive aget query
Posted: Wed Jul 05, 2017 5:06 pm
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
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 1:43 am
by sandeepatil
We are not using available agent, created custom agent as per our environment.
Can you explain the custom modification.
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 9:20 am
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.
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 9:38 am
by sandeepatil
Spool the results to a directory/file
Please explain results location or directory path.
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 10:17 am
by tmcdonald
As this is a custom agent you are developing, the locations and paths are up to you.
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 10:22 am
by sandeepatil
Want to know default NRDS agent results location or directory/file, help to understand which details need to configure.
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 10:39 am
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.
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 10:50 am
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.
Re: Nagios XI Active / Passive aget query
Posted: Thu Jul 06, 2017 11:11 am
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