Alert management is currently in BETA


About the integration:


Integrate Nagios XI with Freshservice, alert your team about the health of your infrastructure, services and applications on time, allowing them to begin remediation processes before outages affect your business and end users. Alert notifications sent from Nagios are created as aggregated alert records in Freshservice for quick processing and resolution.


Configuration in Freshservice:

  • Click on Admin > Alert Profiles > Create a New Alert Profile or open an existing Alert Profile.
  • Click on “Add Integration” to select the tool to integrate with
  • Select “Nagios XI” in the tool selection page. 


  • Get the Endpoint URL and the Authentication token for Nagios XI by following the integration setup.

Configuration in Nagios XI :

  1. Login to Nagios XI 

  2. Click on Configure > Core Config Manager > Commands

  3. In Nagios XI, two commands have to be configured for sending host and service notifications to Freshservice.

  4. Click on Add new and create a new command.

  5. Enter a name in the Command Name field  and paste the following CURL command in the Command Line field after modifying the Endpoint URL and Authentication token copied from Freshservice below

  6. Host notification to Freshservice

  7. curl -X POST -H "<Paste Authentication token copied from Freshservice here without these braces>" -H "Content-Type: application/json" --data "{\"metric_name\": \"Availability\", \"hostname\": \"$HOSTNAME$\", \"message\": \"$NOTIFICATIONTYPE$ - $HOSTNAME$ is $HOSTSTATE$\", \"ip_address\": \"$HOSTADDRESS$\", \"severity\": \"$HOSTSTATE$\", \"event_id\": \"$HOSTEVENTID$\", \"output\": \"$HOSTOUTPUT$\", \"perf_data\": \"$HOSTPERFDATA$\", \"action_url\": \"$HOSTACTIONURL$\", \"check_command\": \"$HOSTCHECKCOMMAND$\", \"problem_id\": \"$HOSTPROBLEMID$\" , \"long_datetime\": \"$LONGDATETIME$\", \"notification_comment\": \"$NOTIFICATIONCOMMENT$\", \"notification_type\": \"$NOTIFICATIONTYPE$\", \"contact_name\": \"$CONTACTNAME$\" }" <paste Endpoint URL copied from Freshservice here without these braces> 



  8.  As shown in the above screenshot, set Command Type as "misc command" and set it to Active before saving it.

  9.  Repeat steps 4 and 5 to create another command for Service notification.

  10. Configure the following CURL command in Command Line to receive alert notifications for services, after modifying the Endpoint URL and Authentication token copied from Freshservice below.

  11. Service notification to Freshservice


  12. curl -X POST -H "<Paste Authentication token copied from Freshservice here without these braces>" -H "Content-Type: application/json" --data "{\"metric_name\": \"$SERVICEDESC$\", \"hostname\": \"$HOSTNAME$\", \"message\": \"$NOTIFICATIONTYPE$ - $SERVICEDESC$\", \"description\": \"$SERVICEDESC$\", \"ip_address\": \"$HOSTADDRESS$\", \"severity\": \"$SERVICESTATE$\", \"event_id\": \"$SERVICEEVENTID$\", \"output\": \"$SERVICEOUTPUT$\", \"perf_data\": \"$SERVICEPERFDATA$\", \"action_url\": \"$SERVICEACTIONURL$\", \"check_command\": \"$SERVICECHECKCOMMAND$\", \"problem_id\": \"$SERVICEPROBLEMID$\" , \"long_datetime\": \"$LONGDATETIME$\", \"notification_comment\": \"$NOTIFICATIONCOMMENT$\", \"notification_type\": \"$NOTIFICATIONTYPE$\", \"contact_name\": \"$CONTACTNAME$\" }" <paste Endpoint URL copied from Freshservice here without these braces>


  13. Create a Contact to set trigger conditions by clicking on Alerting > Contacts > Add New > Enter a Contact Name or if there is an existing Contact for which you want to associate the Command to, click on it.


  14. Click on Alert Settings tab and enable Host and Service Notifications. 

  15. Click on Manage Host Notification Command and select the respective command created for sending host notications to Freshservice. Similarly select the service notification command by clicking on Manage Service Notification Commands.

  16. Click on Save


When an alert is generated in Nagios XI, it will in turn create an alert in Freshservice.