Page 1 of 1

how to get nagios xi alert message in JSON

Posted: Sun Mar 24, 2019 9:16 pm
by axvers
I was using nagios xi on centos 7 , naigos core 4.x
I'm wondering that is there a way can send nagios service alerts in JSON for future use ?

Re: how to get nagios xi alert message in JSON

Posted: Mon Mar 25, 2019 10:16 am
by cdienger
The email message can be editted to send the data in the JSON format:

Code: Select all

{ 
"alert":"** ** * Nagios XI Alert ** ** *",
"alert summary":"%alertsummary %",
"Notification Type":"%type%",
"Host":"%host%",
"State":"%hoststate%",
"Address":"%hostaddress%",
"Info":"%hostoutput%",
"Date / Time":"%datetime%",
"Respond":"%responseurl%",
"Nagios URL":"%xiserverurl%",
"Host Duration":"%HOSTDURATION%",
"Host Duration2":"%hostduration%",
"Host Action URL":"%HOSTACTIONURL%"
}
The change can be done under Admin > Users > Notification Management, or per user's Notification Options > Notifications Messages.

Re: how to get nagios xi alert message in JSON

Posted: Thu Mar 28, 2019 8:58 pm
by axvers
thanks
please close this post

Re: how to get nagios xi alert message in JSON

Posted: Fri Mar 29, 2019 10:51 am
by cdienger
Glad to help!