04-27-2015 02:08 AM
Hi,
I work in a large company, we have a lot of network equipment and use SNMP monitoring very widely (PRTG).
There are a lot of SIP ITSP in my organization and it is important to monitor SIP Trunk Status.
As I understad, the only way to track SIP Trunk Status - is via CLI or EEM.
I have found there is a command in EEM "snmp-object-value",
and that it's a way To set the object ID and value to be returned by the Simple Network Management Protocol (SNMP) get request when an Embedded Event Manager (EEM) applet.
How to use this command? Is there any examples?
It will be perfect if I could change some OID value depending SIP Trunk status and collect that values by SNMP (PRTG)
Thanks
Vladimir Samovarov
04-28-2015 05:01 AM
you might have better luck searching or asking in the EEM scripting forum:
https://supportforums.cisco.com/community/5941/eem-scripting
08-04-2016 01:37 AM
Hi Vladimir,
We had the same problem.
And I solved this without SNMP via this applets:
event manager applet siptrunk_down
event syslog pattern "%SIP-5-DIALPEER_STATUS: VoIP dial-Peer <901> is Busied out"
action 001 cli command "enable"
action 002 cli command "show call active total-calls"
action 003 regexp "Total Number of Active Calls : 0" "$_cli_result" ignore match
action 004 if $_regexp_result eq "1"
action 005 mail server "<mailserver>" to "<to>" from "<from>" subject "<subject>" body "<body>"
action 006 syslog priority warnings msg "<syslog message>"
event manager applet siptrunk_up
event syslog pattern "%SIP-5-DIALPEER_STATUS: VoIP dial-Peer <901> is Up"
action 001 mail server "<mailserver>" to "<to>" from "<from>" subject "<subject>" body "<body>"
action 002 syslog priority warnings msg "<syslog message>"
If you have the best idea how to do, can you share it?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide