Alert Payload Fields - what are they?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tonyjameshart
Posts: 1
Joined: Thu Oct 05, 2017 1:51 pm

Alert Payload Fields - what are they?

Post by tonyjameshart »

I can not find the answer to this noob question.
I am wanting to know about the alert payload sent to external applications. Such as VictorOps.
I am wanting to see if the notes_url field is part of the payload from Nagios. I am using v4.1.1.1 ... yea I know.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Alert Payload Fields - what are they?

Post by npolovenko »

Hello, @tonyjameshart.
Can you tell us the path to the file where you see the alert_payload field?
Payload, in general, refers to the size of packets that Nagios sends, so the alert payload could mean the maximum allowed the size of data packets that will be sent to VictorOps. But I could be wrong. Perhaps after I see the file I'll be able to provide more info.
Also what exactly are you trying to set up/monitor?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Alert Payload Fields - what are they?

Post by mcapra »

tonyjameshart wrote:I am wanting to know about the alert payload sent to external applications. Such as VictorOps.
So there's 2 ways in which Nagios Core ships alert information:
  • Event handlers
  • Notification handlers
More on those here:
https://assets.nagios.com/downloads/nag ... dlers.html
https://assets.nagios.com/downloads/nag ... tions.html

If you wanted to send information about an alert to VictorOps, a notification handler might be a more appropriate method. When Nagios receives an alert to pass off to a notification handler, it has certain information about the host/service that it can include in that alert. I assume this is what you're looking for? This page has a list of all the available macros:
https://assets.nagios.com/downloads/nag ... olist.html

The ones relevant for (what I think is) your use case are located in the "Host notifications" and "Service notifications" columns.
tonyjameshart wrote:I am wanting to see if the notes_url field is part of the payload from Nagios.
Both $HOSTNOTESURL$ and $SERVICENOTESURL$ are available to assess that field's value. If you're not quite sure how those macros work with notification handlers, feel free to chime in and further examples can be provided :)
Former Nagios employee
https://www.mcapra.com/
dwasswa

Re: Alert Payload Fields - what are they?

Post by dwasswa »

Thanks @mcapra,

@tonyjameshart,have you tried what @mcapra suggested?
Locked