Steps to Integrate Nagios with AlarmsOne:

 

Following are the steps involved to integrate Nagios with AlarmsOne.

 


 

 

Steps to be followed in AlarmsOne:


 

1. Sign up for AlarmsOne service and log into your account. Click on Applications icon in the left panel.

2. Click Agents and then click Add Agent(+) to download the agent (or) poller.

 

3. Once download is complete, install the agent on the machine from where it can reach  Nagios.

 


 

 

Steps to be followed in Nagios:


1. Once the poller is installed and registered with AlarmsOne, navigate to <Poller_Home\AlarmUtilities\nagios\>. Execute the following command as "root" user.

sh nagios.sh <File_Path_To\nagios.cfg> <Poller_Installation_Directory\>

 

2. Navigate to <NAGIOS_HOME>/etc/nagios/objects/ and open the contacts.cfg or templates.cfg . Search for your contact name.

 

3. Under your contact name, search for the following line if exist modify, else add it :

        service_notification_commands      notify-service-by-email

        host_notification_commands          notify-host-by-email
       
    Add this line as follows:
 

        service_notification_commands      notify-service-by-email, notify-service-to-agent

        host_notification_commands      notify-host-by-email, notify-host-to-agent

 

4. Restart Nagios.

5. Wherever you find command.cfg, please define the commands as follows

 

#'notify-service-to-agent' command definition
define command{
command_name notify-service-to-agent
command_line echo "$SERVICEEVENTID$&@$SERVICEDESC$&@$HOSTNAME$&@SERVICE&@$SERVICEOUTPUT$&@$SERVICESTATE$&@$SHORTDATETIME$&@$CONTACTNAME$&@$SERVICEDISPLAYNAME$" >> <ALARMPOLLER_HOME>/conf/Nagios/alerts.txt || echo "Check the folder permissions for '<ALARMPOLLER_HOME>/conf/Nagios/'. Change it to '777'." > /usr/local/nagios/etc/alarmcentral_error.log
}

 

#'notify-host-to-agent' command definition
define command{
command_name notify-host-to-agent
command_line echo "$HOSTEVENTID$&@$HOSTDISPLAYNAME$&@$HOSTNAME$&@HOST&@$HOSTOUTPUT$&@$HOSTSTATE$&@$SHORTDATETIME$&@$CONTACTNAME$&@$HOSTADDRESS$" >> <ALARMPOLLER_HOME>/conf/Nagios/alerts.txt || echo "Check the folder permissions for '<ALARMPOLLER_HOME>/conf/Nagios/'. Change it to '777'." > /usr/local/nagios/etc/alarmcentral_error.log
}


 
 
 
Steps to be followed in AlarmsOne:
 

1. Login into AlarmsOne, click on Applications icon and then click +Add Application at the top right corner of the window and choose Nagios.

 

2. Select the registered agent which is deployed on the Nagios Server.

 

3. Input all the details it requires specific to Nagios (Agent, Application Label, Application and Host).

 

4. Click Add to add the Applications to AlarmsOne.

 

Note :

 

For Nagios, the poller has to be installed on the same machine where Nagios Application is running. Poller installed on the Solarwinds and Nagios machine can also be use to poll the OpManager, NetFlow Analyzer and Application Manager.