![](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.