Need WebHooks/Http Push notification to be pushed into nagio

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
reshujain4u
Posts: 4
Joined: Thu Jun 23, 2016 3:29 pm

Need WebHooks/Http Push notification to be pushed into nagio

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Need WebHooks/Http Push notification to be pushed into n

Post 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.
Former Nagios Employee
reshujain4u
Posts: 4
Joined: Thu Jun 23, 2016 3:29 pm

Re: Need WebHooks/Http Push notification to be pushed into n

Post 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"
}
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Need WebHooks/Http Push notification to be pushed into n

Post 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/
Former Nagios Employee
reshujain4u
Posts: 4
Joined: Thu Jun 23, 2016 3:29 pm

Re: Need WebHooks/Http Push notification to be pushed into n

Post by reshujain4u »

Anyway for Nagio to pull these data or Absorb it as Webhook/Email ? i am naive to nagios.
reshujain4u
Posts: 4
Joined: Thu Jun 23, 2016 3:29 pm

Re: Need WebHooks/Http Push notification to be pushed into n

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Need WebHooks/Http Push notification to be pushed into n

Post 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.
Former Nagios Employee
Locked