logo

CALLGOOSE

Nagios


This document shows you how you can integrate Callgoose SQIBS with Nagios.

Incidents will be creating in Callgoose SQIBS when there is a incident created in Nagios as per the Alert rule configured by you in the Nagios


In Callgoose SQIBS

 Create filter  as per the Nagios workflows.

  • For test purpose, create an API filter like this

0_Callgoose_Sqibs_Nagios

Note:
After test, create suitable API filter values depending on the payload sent by Nagios to create a meaningful incident.


In Nagios

1. Log in to the Nagios XI Dashboard
Click on Configure. Choose Core Config Manager
Click on Commands


1_Callgoose_Sqibs_Nagios

2. Click on Add New to create service alert


2_Callgoose_Sqibs_Nagios

Fill the following
Command Management
Command Name: notify-service-alert
Command Line:

/usr/bin/curl --location --request POST 'https://xxxxxxxx.callgoose.com/sqibs-api/v1/process?from=nagios&token=xxxxxxxxxxxxxxxxxxxxxxx' --header 'Content-Type: application/json' --data-raw      
'{
  "Alert type": "service alert",
  "Notification Type": "$NOTIFICATIONTYPE$",
  "Service Desc": "$SERVICEDESC$",
  "Hostname": "$HOSTNAME$",
  "Host address": "$HOSTADDRESS$",
  "Service State: "$SERVICESTATE$",
  "Log date time": "$LONGDATETIME$",
  "Additional Info": "$SERVICEOUTPUT$"
  }'   


Note:
1. Must add header Content-Type in Json format
2. How to get endpoint URL
3. Refer this link for How to send to Sqibs API
4. Please make sure you have added API filter contains values in Callgoose SQIBS before you send test notifications to create the incident in Callgoose SQIBS. You may also add API filter after checking API Log


3_Callgoose_Sqibs_Nagios
Command Type: misc command
Click on Save


3. Click on Add New again to create host alert
Fill the following
Command Management
Command Name: notify-host-alert
Command Line:

/usr/bin/curl --location --request POST 'https://xxxxxxxx.callgoose.com/sqibs-api/v1/process?from=nagios&token=xxxxxxxxxxxxxxxxxxxxxxx' --header 'Content-Type: application/json' --data-raw      
'{
  "Alert type": "host alert",
  "Notification Type": "$NOTIFICATIONTYPE$",
  "Hostname": "$HOSTNAME$",
  "Host address": "$HOSTADDRESS$",
  "Host State: "$HOSTSTATE$",
  "Log date time": "$LONGDATETIME$",
  "Additional Info": "$HOSTOUTPUT$"
  }'   



4_Callgoose_Sqibs_Nagios

Command Type: misc command
Click on Save
Click on Apply configuration


4. Search the word notify in the search icon in the Commands page
You will see the Command Name created for service alert and host alert


5_Callgoose_Sqibs_Nagios

5. Click on Contacts under Alerting in the left side navigation pane


6_Callgoose_Sqibs_Nagios
You must configure your contacts to receive the host and service notification commands.
Click on Add New


7_Callgoose_Sqibs_Nagios

Contact Management
Contact Name: Callgoose SQIBS
Click on Alert Setting tab
Host Notification Enable: On
Host Notification Timeperiod: 24x7
Host Notification options: Down, Unreachable

Manage Host Notification Commands
Select the notify-host-alert command and Click on Add Selected
Make sure that notify-host-alert moves to the Assigned column
Close the window

Service Notifications Enabled On
Service Notifications Timeperiod: 24x7
Service Notification options: Warning, Unknown, Critical, Flapping

Manage Service Notification Commands
Select the notify-service-alert command and Click on Add Selected
Make sure that notify-service-alert moves to the Assigned column
Close the window


8_Callgoose_Sqibs_Nagios
Click on Save
Click on Apply Configuration


6. You will see Callgoose SQIBS in the Contacts
You can call this contact Callgoose SQIBS when you create Notifications


9_Callgoose_Sqibs_Nagios

7. How to add these contact “Callgoose SQIBS” to Notifications
Click on Host Status


10_Callgoose_Sqibs_Nagios

8. Click on the host you want to add it in the Notification contact Callgoose SQIBS
Click on Configure
Click on Re-configure this host


11_Callgoose_Sqibs_Nagios
Click on the Notifications


12_Callgoose_Sqibs_Nagios
Choose your desired monitoring and alert notification
Send alert notification to: Choose Callgoose SQIBS
Click on Update
You can see the message Configuration applied successfully
You can do the Notifications update for services too.


9. Click on Service Status


13_Callgoose_Sqibs_Nagios
Click on the Service you want to add it in the contact Callgoose SQIBS
Here i chose SSH service to test
Click on SSH service
Click on Configure
Click on Re-configure this service
Click on Notifications


14_Callgoose_Sqibs_Nagios
Choose your desired monitoring and alert notification
Send alert notification to: Choose Callgoose SQIBS
Click on Update
You can see the message Configuration applied successfully
Click on Continue


10. Go to Report
Click on Notifications
Top right side corner - You can see All notifications , If not choose All notifications from drop down


15_Callgoose_Sqibs_Nagios
Click on Update


11. How to test
Login to the server you are monitoring the SSH service in Nagios and had added Notification Contact to Callgoose SQIBS
stop the SSH service
You will get Incident notifications in Callgoose SQIBS


16_Callgoose_Sqibs_Nagios
You also can see the Notification in Nagios


img


Note:
Whenever Nagios trigger alert, Callgoose SQIBS will create incident as per the conditions you configured in the Nagios and Callgoose API filter.



CALLGOOSE
SQIBS

Advanced Automation platform with effective On-Call schedule, real-time Incident Management and Incident Response capabilities that keep your organization more resilient, reliable, and always on

Callgoose SQIBS can Integrate with any applications or tools you use. It can be monitoring, ticketing, ITSM, log management, error tracking, ChatOps, collaboration tools or any applications

Callgoose providing the Plans with Unique features and advanced features for every business needs at the most affordable price.



Unique Features

  • 30+ languages supported
  • IVR for Phone call notifications
  • Dedicated caller id
  • Advanced API & Email filter
  • Tag based maintenance mode

Signup for a freemium plan today &
Experience the results.

No credit card required