![Nagios Nagios](/uploads/1/2/5/5/125512417/539274504.png)
Hello board this question may be a little clean and green however,I've been trying to set up Nagios NSCA for passive checks on a local ubuntu box as a prototype.for those in the know, my nsca listening on 5667 and sendnsca is on the same ubuntu computer (localhost 127.0.0.1). I've been reading and testing object definitions and service templates however I have been getting config errors when i try to access nagios web after modifications.I hope to get clearer instructions on how I can create the service (directories/configurations) to process passive checks in Nagio3 for ubuntu.
Passive check is not updating the nagios site. The definition for the passive check seem to be corrected. After a full commit and updates, file installs and nagios restart, no errors are generated, however, the check doesn't update the nagios site with the appropriate information. This is the first time setting up a passive check, so any input will be appreciated. Active checks occur when Nagios itself is responsible for checking the status of a device at regular intervals. On the other side, a passive check is when the device reports its status to Nagios only when its status changes.
Those are the official plugin development guidelines. You have done the hard part, which is the powershell.Now you just have to wrap it as a plugin.Here's the cool thing: basically, all a plugin has to do is exit with a code 0,1,2,3 and print a line of text. It can optionally include performance data. To be 'officially compliant' it should take arguments and print some help, but if it is just for you.
Well skip those bits.Basically, your plugin would run your powershell script and then an if/then. If the log event doesn't exist, exit 0 and print 'OK'.
If the log event exists, exit 3 and print 'Critical, application error logged'.Alternately, there is a free version of Nagios Log Server that is probably a lot simpler to set up than doing the plugin and would allow you to expand your log monitoring.