![](https://secure.gravatar.com/avatar/d86109eab004454679c8da55b874eaf2.jpg?s=120&d=mm&r=g)
Hi Guys,
Do you guys know if there is plans to support Asterisk monitoring via SNMP in the near future ?
Cheers,
Pieter
![](https://secure.gravatar.com/avatar/d86109eab004454679c8da55b874eaf2.jpg?s=120&d=mm&r=g)
On 19/07/2012 16:30, Adam Armstrong wrote:
On 19/07/2012 04:41, Pieter De Wit wrote:
Hi Guys,
Do you guys know if there is plans to support Asterisk monitoring via SNMP in the near future ?
None of the developers have any requirement to support Asterisk monitoring.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Thanks Adam,
Any pointers if I want to add it to the code ? Samples etc ?
Thanks !
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
On 19/07/2012 06:17, Pieter De Wit wrote:
On 19/07/2012 16:30, Adam Armstrong wrote:
On 19/07/2012 04:41, Pieter De Wit wrote:
Hi Guys,
Do you guys know if there is plans to support Asterisk monitoring via SNMP in the near future ?
None of the developers have any requirement to support Asterisk monitoring.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Thanks Adam,
Any pointers if I want to add it to the code ? Samples etc ?
The existing code is not that hard to understand, look at how load balancers are done.
adam.
![](https://secure.gravatar.com/avatar/d86109eab004454679c8da55b874eaf2.jpg?s=120&d=mm&r=g)
On 19/07/2012 17:17, Pieter De Wit wrote:
On 19/07/2012 16:30, Adam Armstrong wrote:
On 19/07/2012 04:41, Pieter De Wit wrote:
Hi Guys,
Do you guys know if there is plans to support Asterisk monitoring via SNMP in the near future ?
None of the developers have any requirement to support Asterisk monitoring.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Thanks Adam,
Any pointers if I want to add it to the code ? Samples etc ?
Thanks !
Hey Adam,
I finally got some time to work on this (and finally got Asterisk and snmp speaking :) )
I have an issue with the module however, perhaps you can help. I added:
$config['poller_modules']['asterisk'] = 1; $config['discovery_modules']['asterisk'] = 1;
to includes/defaults.inc.php
I then created asterisk.inc.php under "includes/discovery" and started working on the code. I used to be able to test this with "./discovery.php -m asterisk -h 92" but this has stopped and I don't know why. Even if I put a print at the start of the module, I get nothing during the discovery.
If I look at the device from the web interface, Asterisk is shown and enabled, both poller and discovery.
Can you also tell me how/where I define the data that this module will store ? Is this the right way to go about things ? Any other files I need to look at to edit etc ?
Thanks,
Pieter
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
I finally got some time to work on this (and finally got Asterisk and snmp speaking :) )
You probably want to do this via the agent now, we're removing all of the SNMP hacks.
I have an issue with the module however, perhaps you can help. I added:
$config['poller_modules']['asterisk'] = 1; $config['discovery_modules']['asterisk'] = 1;
to includes/defaults.inc.php
I then created asterisk.inc.php under "includes/discovery" and started working on the code. I used to be able to test this with "./discovery.php -m asterisk -h 92" but this has stopped and I don't know why. Even if I put a print at the start of the module, I get nothing during the discovery.
Try -h and -m the other way around.
If I look at the device from the web interface, Asterisk is shown and enabled, both poller and discovery.
Can you also tell me how/where I define the data that this module will store ? Is this the right way to go about things ? Any other files I need to look at to edit etc ?
I'm not sure what kind of information asterisk returns, so it's difficult to say where it should go.
You might want to just replicate how we do mysql/apache applications, taking data from the agent.
adam.
![](https://secure.gravatar.com/avatar/d86109eab004454679c8da55b874eaf2.jpg?s=120&d=mm&r=g)
On 7/04/2013 07:43, Adam Armstrong wrote:
I finally got some time to work on this (and finally got Asterisk and snmp speaking :) )
You probably want to do this via the agent now, we're removing all of the SNMP hacks.
It's not really a hack though, it's enabling SNMP in Asterisk. The agent will have to fetch the data from Asterisk and, imho, it's going to be more complicated code (Talking to Asterisk via CLI or AMI is a pain to get this type of data)
I'll convert this to the agent when I have it all working - I have a work related need to get it going...soonish :)
I have an issue with the module however, perhaps you can help. I added:
$config['poller_modules']['asterisk'] = 1; $config['discovery_modules']['asterisk'] = 1;
to includes/defaults.inc.php
I then created asterisk.inc.php under "includes/discovery" and started working on the code. I used to be able to test this with "./discovery.php -m asterisk -h 92" but this has stopped and I don't know why. Even if I put a print at the start of the module, I get nothing during the discovery.
Try -h and -m the other way around.
*facepalm* - turns out I had a PHP error....*blush*
If I look at the device from the web interface, Asterisk is shown and enabled, both poller and discovery.
Can you also tell me how/where I define the data that this module will store ? Is this the right way to go about things ? Any other files I need to look at to edit etc ?
I'm not sure what kind of information asterisk returns, so it's difficult to say where it should go.
I can give you access to the box via SNMP or a dump of the OID's (it's small) if you want to have a look.
IMHO, the only thing worth monitoring is the number of calls you have on a "channel". Everything else has the lifetime of a call.
You might want to just replicate how we do mysql/apache applications, taking data from the agent.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/d86109eab004454679c8da55b874eaf2.jpg?s=120&d=mm&r=g)
<snip>
I can give you access to the box via SNMP or a dump of the OID's (it's small) if you want to have a look.
I pastebin'ed it: http://pastebin.com/nCyzbV44
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
On 6/04/2013 23:02, Pieter De Wit wrote:
<snip>
I can give you access to the box via SNMP or a dump of the OID's (it's small) if you want to have a look.
I pastebin'ed it: http://pastebin.com/nCyzbV44
Are you sure you mean what you say when you say that
It's not really a hack though, it's enabling SNMP in Asterisk. The
agent will have to fetch the data from Asterisk and, imho, it's going to be more complicated code (Talking to Asterisk via CLI or AMI is a pain to get this type of data)
I see pretty much no useful info in their MIB, and this dump confirms it.
Number of active calls seems to be the only graphable output.
Tom
![](https://secure.gravatar.com/avatar/d86109eab004454679c8da55b874eaf2.jpg?s=120&d=mm&r=g)
On 7/04/2013 09:50, Tom Laermans wrote:
On 6/04/2013 23:02, Pieter De Wit wrote:
<snip>
I can give you access to the box via SNMP or a dump of the OID's (it's small) if you want to have a look.
I pastebin'ed it: http://pastebin.com/nCyzbV44
Are you sure you mean what you say when you say that
It's not really a hack though, it's enabling SNMP in Asterisk. The
agent will have to fetch the data from Asterisk and, imho, it's going to be more complicated code (Talking to Asterisk via CLI or AMI is a pain to get this type of data)
I see pretty much no useful info in their MIB, and this dump confirms it.
Number of active calls seems to be the only graphable output.
Tom _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Hey Tom,
Yip - I am sure :) I have written am AMI and it's painful. As for the enabling SNMP part, there is 4 lines of config to add, 2 to Asterisk and 2 to snmpd.conf. I am happy to maintain the wiki page on this.
The only thing I want is, as you say, the number of active calls. There is nothing else in the dump, nor anything else that I can think of that is useful.
The way I see this playing out that we will have 12 graphs, one per channel type of the active number of calls. The other "usefull" info is the "enabled" features, like transfer, but I am not sure how we going to display that. For "version 1" I think we stick to the number of channels.
Now I just need to figure out how to get this into the DB and then I will work on the poller includes.
Cheers,
Pieter
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
On 19/07/2012 6:30, Adam Armstrong wrote:
On 19/07/2012 04:41, Pieter De Wit wrote:
Hi Guys,
Do you guys know if there is plans to support Asterisk monitoring via SNMP in the near future ?
None of the developers have any requirement to support Asterisk monitoring.
Well, except for me, but you convinced me not to write it. ;-)
Asterisk doesn't have a lot of stuff exported through their MIB, maybe it would be more useful to write an agent script?
Tom
participants (3)
-
Adam Armstrong
-
Pieter De Wit
-
Tom Laermans