My company also uses zabbix to monitor our networks, and is the project that gave me the idea for creating the triggers.pl add-on i mentioned in my previous post... This addon works in basically the same way as zabbix triggers/actions work. i haven't released the code yet but i can email it to anyone interested...
<br><br>for more details: <a href="http://eagle.skyhighspeed.com/blogs/cwenman/?p=21">http://eagle.skyhighspeed.com/blogs/cwenman/?p=21</a> <br><br><div><span class="gmail_quote">On 4/19/07, <b class="gmail_sendername">Theo Band
</b> <<a href="mailto:theo.band@xanadu-wireless.com">theo.band@xanadu-wireless.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Edoardo Serra wrote:<br>> I'm using zabbix (<a href="http://www.zabbix.com/">http://www.zabbix.com/</a>) as a complete monitoring<br>> solution<br>><br>> zabbix agent has the possibility to specify custom checks that are run
<br>> as often as you wish<br>> (maybe an "asterisk -rx "sip show peers" | grep UNREACHABLE | wc -l")<br>> the output of the script is sent to zabbix server which can fire<br>> actions (email, sms, etc)
<br>> in a very flexible manner<br>This works only if you run zabbix as a privileged user (the same as runs<br>asterisk, so probably root).<br>But this is still a polling solution, not event based as the OP wants.<br>I tried this approach with zabbix to get an overview of the amount of
<br>active lines versus time. I did not succeed because of the permission<br>problem. I can only achieve it using a cron job and have the result read<br>by zabbix, which is not very elegant.<br><br>My 1 cent :-)<br>><br>
> My 2 cents<br>><br>> Regards<br>><br>> C F ha scritto:<br>>> Thank you all for your response, but it appears that some of you<br>>> didn't understand my question. I know I can schedule a cron to check
<br>>> the status (I can even use asterisk -rx "sip show peers" | grep<br>>> UNREACHABLE if I use a cron) but that is not what I want. I want<br>>> either a way that just as asterisk prints to the CLI the following:
<br>>> Peer '120' is now UNREACHABLE! Last qualify: 118<br>>> it should also be able to trigger whatever action from a conf file or<br>>> the like.<br>>> Or if there is an available solution even that involves a cron job but
<br>>> already has all the options, so I don't have to reinvent the wheel.<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com
</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>