Page 1 of 1
Need WebHooks/Http Push notification to be pushed into nagio
Posted: Thu Jun 23, 2016 3:40 pm
by reshujain4u
Hi All,
I need Nagios to understand Incomining WebHooks from other system. Nagios or some other utility should be able to parse it and push it to Nagios or Trigger an alarm.
Is there anyway to do it?
Example :-
New Relic / Other Monitoring or log gathering app.. Sends Output as webhook but we do not have any listener which listens to these web hooks and parse it.
Re: Need WebHooks/Http Push notification to be pushed into n
Posted: Thu Jun 23, 2016 4:23 pm
by rkennedy
Could you provide an example of the webhook that Nagios would be receiving? I'm trying to understand if this would better be suited for a SNMP trap, or perhaps Nagios Log Server if you're looking to 'alert' based on different web hooks.
Re: Need WebHooks/Http Push notification to be pushed into n
Posted: Thu Jun 30, 2016 1:54 pm
by reshujain4u
{
"created_at":"2014-03-04T14:31:35+00:00",
"alert_policy_name":"Default application alert policy",
"account_name":"Account name",
"severity":"Critical",
"message":"Message about alert",
"short_description":"Short description about alert",
"long_description":"Long description about alert",
"alert_url":"http://PATH_TO_NEW_RELIC"
}
Another one :-
{
"account_name":"Account name",
"alert_policy_name":"Default application alert policy",
"alert_url":"http://PATH_TO_NEW_RELIC/accounts/nnn/incidents/496",
"application_name" : "RPM Local",
"created_at":"2014-05-01T20:29:56+00:00",
"long_description":"Alert opened for Default application alert policy -- Triggered by: Apdex < 0.85 -- Apps currently involved: RPM Local",
"message" : "Apdex < 0.85",
"severity":"critical",
"short_description":"New alert for Default application alert policy: Apdex < 0.85"
}
Re: Need WebHooks/Http Push notification to be pushed into n
Posted: Thu Jun 30, 2016 2:11 pm
by rkennedy
I think this would be better handled using Nagios Log Server, which will let you take that data in and store it to fields. From there, you can create alerts based on the data that comes in to those specific fields.
https://www.nagios.com/products/nagios-log-server/
Re: Need WebHooks/Http Push notification to be pushed into n
Posted: Thu Jun 30, 2016 2:22 pm
by reshujain4u
Anyway for Nagio to pull these data or Absorb it as Webhook/Email ? i am naive to nagios.
Re: Need WebHooks/Http Push notification to be pushed into n
Posted: Thu Jun 30, 2016 2:25 pm
by reshujain4u
Current NR send data to follwoing channels, unfortunatly nagios is not one of them.
select a channel type
Campfire
E-mail
HipChat
OpsGenie
PagerDuty
Slack
VictorOps
Webhook
Re: Need WebHooks/Http Push notification to be pushed into n
Posted: Thu Jun 30, 2016 2:47 pm
by rkennedy
If it's notifications, why not send directly out from your New Relic application?
Any additional information on what you're looking to accomplish will really help us out, as we're struggling to figure out what you'd like Nagios to do.