[asterisk-users] Re: Trigger for unavailable SIP peer
0xception at gmail.com
Thu Apr 19 12:44:16 MST 2007
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
for more details: http://eagle.skyhighspeed.com/blogs/cwenman/?p=21
On 4/19/07, Theo Band <theo.band at xanadu-wireless.com> wrote:
> Edoardo Serra wrote:
> > I'm using zabbix (http://www.zabbix.com/) as a complete monitoring
> > solution
> > zabbix agent has the possibility to specify custom checks that are run
> > as often as you wish
> > (maybe an "asterisk -rx "sip show peers" | grep UNREACHABLE | wc -l")
> > the output of the script is sent to zabbix server which can fire
> > actions (email, sms, etc)
> > in a very flexible manner
> This works only if you run zabbix as a privileged user (the same as runs
> asterisk, so probably root).
> But this is still a polling solution, not event based as the OP wants.
> I tried this approach with zabbix to get an overview of the amount of
> active lines versus time. I did not succeed because of the permission
> problem. I can only achieve it using a cron job and have the result read
> by zabbix, which is not very elegant.
> My 1 cent :-)
> > My 2 cents
> > Regards
> > C F ha scritto:
> >> Thank you all for your response, but it appears that some of you
> >> didn't understand my question. I know I can schedule a cron to check
> >> the status (I can even use asterisk -rx "sip show peers" | grep
> >> UNREACHABLE if I use a cron) but that is not what I want. I want
> >> either a way that just as asterisk prints to the CLI the following:
> >> Peer '120' is now UNREACHABLE! Last qualify: 118
> >> it should also be able to trigger whatever action from a conf file or
> >> the like.
> >> Or if there is an available solution even that involves a cron job but
> >> already has all the options, so I don't have to reinvent the wheel.
> --Bandwidth and Colocation provided by Easynews.com --
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users