how to get nagios xi alert message in JSON

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

how to get nagios xi alert message in JSON

Post 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 ?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to get nagios xi alert message in JSON

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: how to get nagios xi alert message in JSON

Post by axvers »

thanks
please close this post
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to get nagios xi alert message in JSON

Post by cdienger »

Glad to help!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked