Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

How to monitor alarms without SNMP

Requirement:

An automatic method to report alarms without using SNMP. (When SNMP tools are available these tools will normally be used in preference to the method described here.)

Suggested Solution:

All alarms reported by the Dialogic IMG Integrated Media Gateway (IMG) are written to an alarm.log file managed by the Dialogic Gate Control Element Management System (GCEMS) process. 

This article suggests a possible process for installing and configuring a sample script, ,  designed to automatically check for alarms in the alarm.log and send an email when an alarm occurs.

The sample script is designed to automatically monitor the GCEMS alarm.log; when an IMG alarm is detected an email containing the alarm is sent to the email address that is defined in the script.  The script will need to be modified by the user.

Pre-requisites:

The Linux sendmail service must be configured and running on the GCEMS server. 

Use the following command to test the sendmail function, replacing user@domain.com with your own email address.

  • mutt -s "test mail" 

user@domain.com < .

Installation procedure

  1. Copy the files in the zip file (StartIMG_Alarm_Monitor and  IMG_Alarm_Monitor) to a folder such as /excelsw/home/scripts

  1. Make the two files above executable.

  • chmod +x StartIMG_Alarm_Monitor

  • chmod +x IMG_Alarm_Monitor

  1. Edit variables in the IMG_Alarm_Monitor file.

  • Change the user@domain.com to a destination email address for your network.

  • Change the “string” to change what is monitored.

  • Change the “Delay” to how often to scan for IMG Alarms. Minimum is 10 seconds.

  1. Add an entry to the GCEMS usercron. Each time the GCEMS is started this will be added to the excelsw users cron.

  • Edit /opt/dialogic/common/cron/usercron. 

  • Example entry: */5 * * * * /home/excelsw/scripts/StartIMG_Alarm_Monitor

  1. If GCEMS is currently running the cronjob can be edited from the command line with crontab –e, and adding the above line.

Product List
Dialogic IMG 1010 Integrated Media Gateway 

  • No labels