Hello. I am trying to include monitoring for FreePBX and would like to use some of the information listed in the “FreePBX Statistics” under reports - system status. I am wondering if someone can help me with the commands that FreePBX runs in order to get the “trunks online” and other statistics information? I have been looking through source code but cannot find the commands.
Thanks. I have set that up and looked through Asterisk MIB Definitions, but I cannot find a command to run which lists how many trunks are online. The FreePBX statistics show how many trunks are online but I need to know the command that it uses to find out that information.
rest assured Nick and I went through the Digium documentation well before posting on this forum. We’re just confused, because we can’t find anything in that MIB about extensions or trunks, only channels, which is not what we are looking for.
There is little or no difference in Asterisk between an extension and a “trunk”, they are all ultimately channels or perhaps “endpoints”, it is how you interpret these channels when in existance and their current status and all that information is available within the mib.
I appreciate the response, we’ve certainly read these resources, if fact we’ve used them to successfully implenet SNMP monitoring on our systems already. We still can’t get the crux of this question, which is
“How can we monitor the number of trunks online”
If no one was making a call at a given time, I would have thought their would be 0 channels active, yet the FreePBX GUI still displays the status of the trunks in the graph.
Another way of asking, would be to say we want to monitor the status of a specific peer, be it an extension, or a trunk or whatever. I can’t find anything in the Digium documentation that speaks to this.