snclient icon indicating copy to clipboard operation
snclient copied to clipboard

Support for Passive Montitoring

Open wcs-bjogus opened this issue 2 years ago • 2 comments

With NSClient++ you could create internal schedulers.

This seems to currently be missing from snclient.

When running a passive setup where the agent has an internal schedule and pushes the results to a naemon/nagios that uses freshness on the configured checks/services support for some internal scheduler would be amazing!

Extra points if it works with the current nsclient++ config 👍

wcs-bjogus avatar Aug 14 '23 09:08 wcs-bjogus

Right now this is not on the roadmap. But i'll happily review any PR if somebody wants to look into this.

sni avatar Aug 14 '23 09:08 sni

I was able to script around this and create an active/passive environment that used a single active command to execute an external script and receive the passive data via NRDP more akin to an echo than a scheduled broadcast of a passive signal.

I have an example available using the windows ssh enabled proxy plugin released by Nagios. https://github.com/SNapier/check_sshr_nrdpr

Pulling the Powershell from the wrapper you can see it's creating a payload and then forwarding the data to NRDP. With this scenario you can still enable and configure freshness checks on your deployed passive services as they function no different in NagiosXI than before.

One added benefit is that you gain the ability to set the requesting service as the parent of all the passive services deployed so when you have an issue or situational outage your monitoring engine can help absorb some of the alert storm without putting added pressure on your upstream notification systems.

SNapier avatar May 26 '24 18:05 SNapier