Possible Nagios alert forwarding formats/techniques

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Possible Nagios alert forwarding formats/techniques

Post by gormank »

Hi,
Our current susyems forward all alerts via the SNMP trap forwarder component.

We plan a few new Nagios systems and will need to forward alerts to HP OpenView (I think). I’d like info on what the options are for doing this (from the Nagios end). The folks at the other end seem to not be happy with the SNMP trap solution I offered...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Possible Nagios alert forwarding formats/techniques

Post by tmcdonald »

Well, the most customizable method would be to write a custom script that works to their specifications, and then set that up as a notification in XI. Then assign that as a notification command for a contact, and put that contact on whatever needs the notifications. That is kinda/sorta how the SNMP trap sending works, at least the end result.
Former Nagios employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Possible Nagios alert forwarding formats/techniques

Post by gormank »

I think you're overthinking this. I send notifications from Nagios as needed to my people. I'm not discussing notifications. As the subject says, I'm talking about alerts.
I'm asking what Nagios offers right this minute to forward alerts to a 3rd party system. I'm aware of SNMP, so no need to mention it.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Possible Nagios alert forwarding formats/techniques

Post by tmcdonald »

So instead of waiting until you hit max_check_attempts and trigger a notification, you want to have every state change/check (alert)? In that case you would basically want to use event handlers or the OCSP commands. Still needs some custom scripts being run though.

Built-in right this minute however, you're looking at either SNMP traps or the Outbound Transfers which would use NRDP (HTTP over port 80 or 443 to a custom PHP endpoint). I don't think the NRDP endpoint thing would work for you if you need something that integrates with OpenView directly. NRDP has a specific message format, but you would need to parse that out to fit your needs on the HP side.
Former Nagios employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Possible Nagios alert forwarding formats/techniques

Post by gormank »

The SNMP trap sender sends everything so I imagined this would do the same.
I've actually written a replacement for part of the trap sender that creates a delay in sending traps. It uses a table in the DB to store traps and if an ok arrives within n minutes, the alert and ok are discarded...
Some web searching suggests the HPOV has been replaced in many cases with HP Operations Manager these days, but its still referred to as OV by some. Thus I'm not sure what they have.
I've asked what formats they want or what OV supports, but they of course haven't replied.

So the answer is SNMP or a custom solution of one sort or another?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Possible Nagios alert forwarding formats/techniques

Post by tmcdonald »

gormank wrote:So the answer is SNMP or a custom solution of one sort or another?
Basically yea, that is what it will boil down to. Especially when unknown/proprietary message formats are involved, which basically means any API. If the receiving end can't do message parsing of its own, then all of that formatting needs to be done on the Nagios side, and with custom scripts. There are many ways to get it done depending on how much/how often you want to send, but in the end they all need custom dev of some sort.
Former Nagios employee
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Possible Nagios alert forwarding formats/techniques

Post by SteveBeauchemin »

I have been sending data to OV for years. What I do is define a "Contact" that has it's own notification command. Basically a script that runs when a notification is sent. Nagios does all the logic, tests multiple times, and only notifies when all options are exhausted. Then, it sends a notification to a contact named OVO. Contacts do not only have to be people.

I will dig up more information and post it if this sounds like a path you want to take. I can send the perl file for you to play with. It uses opcmsg to send to the OVO system and we use the Java GUI to see the line items.

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Possible Nagios alert forwarding formats/techniques

Post by gormank »

That sounds interesting.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Possible Nagios alert forwarding formats/techniques

Post by tmcdonald »

SteveBeauchemin wrote:What I do is define a "Contact" that has it's own notification command. Basically a script that runs when a notification is sent. Nagios does all the logic, tests multiple times, and only notifies when all options are exhausted. Then, it sends a notification to a contact named OVO. Contacts do not only have to be people.
So this?
tmcdonald wrote:Well, the most customizable method would be to write a custom script that works to their specifications, and then set that up as a notification in XI. Then assign that as a notification command for a contact, and put that contact on whatever needs the notifications.
:)

Definitely feel free to share any code you have available, or put it up on Exchange!
Former Nagios employee
Locked