#!/bin/bash #(C) 2009 DatuX HR Meertens #This script monitores Asterisk and generates snmptraps #Hostname which must retrieve the traps. Hostname=192.168.13.176 #Authentication values for authenticating with the trapd EngineID=0x0102030405 Username=myusername Password=secretpasshere ######Monitor options###### #If active calls increases or decreases the CallDeviateValue in one time generate a snmptrap. CallDeviateValue=1 #Check every X seconds if the current active calls deviates from the DeviateValue. (NOTE: THIS VALUE MUST BE ALWAYS LOWER THEN THE SendActiveCallsStatusInterval below) CallDeviateCheckInterval=2 #Send every X seconds a trap with current active calls.. This must be a power of CallDeviateCheckInterval SendActiveCallsStatusInterval=6