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.
Alert Payload Fields - what are they?
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Alert Payload Fields - what are they?
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?
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.
Re: Alert Payload Fields - what are they?
So there's 2 ways in which Nagios Core ships alert information:tonyjameshart wrote:I am wanting to know about the alert payload sent to external applications. Such as VictorOps.
- Event handlers
- Notification handlers
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.
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 providedtonyjameshart wrote:I am wanting to see if the notes_url field is part of the payload from Nagios.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/