Sending "events" to Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcadam
Posts: 2
Joined: Thu Jan 29, 2015 10:49 am

Sending "events" to Nagios

Post by jcadam »

Hello! I want to first start off saying that I am extremely new to Nagios, so I'm still pouring over documentation.

My project wants to use Nagios not only to monitor processes, but also to receive custom messages from a few different software components. What we're looking for is some sort of open API where we can make direct calls from our software components to Nagios, and send some sort of custom event. Basic message, something like an event id, and a few strings for component, message severity and message text.

So instead of using like the NSClient to monitor points and talk back with the server, we're looking for a plugin that would live on each of our servers, that exposes a Nagios API, that our software can import and make direct calls to.

Can someone point me to documentation that explains how this can be done, or if there are already custom plugins that do this I can read about those. We want to avoid things like having our software write to the Windows Event Log and having Nagios parse that, we'd really like a direct software to software solution.

And again, forgive my ignorance. If this is very commonly done and I just haven't found the documentation yet, I apologize! :mrgreen:

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending "events" to Nagios

Post by scottwilkerson »

NCPA is probably the closest you can come to installing something that exposes an API on each server, and it can be queried directly using the NCPA Wizard as well
http://assets.nagios.com/downloads/ncpa ... g_NCPA.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jcadam
Posts: 2
Joined: Thu Jan 29, 2015 10:49 am

Re: Sending "events" to Nagios

Post by jcadam »

Thanks! After looking over that a little, I don't think it quite matches what we're hoping for. I guess the best way to explain it is we're looking post events to Nagios, instead of having Nagios poll or monitor. Something beyond the normal SNMP type thing.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Sending "events" to Nagios

Post by tmcdonald »

You mean like Passive Checks?
Former Nagios employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Sending "events" to Nagios

Post by WillemDH »

NSClient++ has realtime eventlog monitoring and can send all events with NSCA excluding the ones you decide to filter to a Nagios passive serice. I've been using it for 1,5 years and it works really well.
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending "events" to Nagios

Post by scottwilkerson »

Also, if you are looking to have a platform that can really manage all your Event Log messages you can take a look at Nagios Log Server which also has tight integration with Nagios XI
http://www.nagios.com/products/nagios-log-server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked