John Todd
2003-Dec-15 14:24 UTC
[Asterisk-Users] Nagios/measurement with Asterisk - any plugins?
I have spent some time digging through the archives for comments concerning Asterisk and monitoring systems, and I have found few results. check_asterisk.pl.gz (http://www.dynx.net/ASTERISK/misc-progs/) which gives an error on download, and has no further Google references astping.tar (http://www.dynx.net/ASTERISK/misc-progs/ and also in the mailing list archives) supposedly sends a query to an Asterisk server, but I have been unable to get it to do anything other than reply with the IP address of the queried host (regardless of Asterisk status) If anyone has any home-brew Nagios (or other) tools that they might want to submit, we'll all applaud you and throw virtual flowers at you. Additionally, the topic of measurement has come up again. I would rather use someone else's generously donated code than write my own and donate it, since the latter method is somewhat slower. :-) I'm looking for perhaps a post-processing script that groks Asterisk CDRs and/or mysql/ODBC tables. Upon launch (with the correct timeframes) the script would churn through the last N records until it was in the right time range. Then, it would create some short status reports on a variety of topics, ranging from number of calls, number of minutes, outbound calls (per some "group" function), inbound calls (per some "group" function), errors, protocols, etc. etc. This would be fed into RRDTool or something of the sort. Anyone? (yes, yes, I should do it myself, but why do something that someone has already done?) JT
wasim@convergence.com.pk
2003-Dec-15 14:55 UTC
[Asterisk-Users] Nagios/measurement with Asterisk - any plugins?
On Mon, 15 Dec 2003, John Todd wrote:> I have spent some time digging through the archives for comments > concerning Asterisk and monitoring systems, and I have found few > results.> Anyone? (yes, yes, I should do it myself, but why do something that > someone has already done?)andreas has that snmp thingy for * too, smokeping is your friend - wasim
Florian Overkamp
2003-Dec-15 15:07 UTC
[Asterisk-Users] Nagios/measurement with Asterisk - any plugins?
Hi, Citeren John Todd <jtodd@loligo.com>:> astping.tar (http://www.dynx.net/ASTERISK/misc-progs/ and also in the > mailing list archives) supposedly sends a query to an Asterisk > server, but I have been unable to get it to do anything other than > reply with the IP address of the queried host (regardless of Asterisk > status)Actually I wrote that thing a long time ago as a quick hack to work from 'mon'. Mon expects an exit code in the program to state wether or not there was a problem and if there was a problem just output the problematic hosts on stdout. It cannot tell you precisely what is wrong, because the only thing it tries is to login to the manager interface and disconnect again. It assumes that if the manager login works, asterisk is at least not crashed or frozen :-) At the time of writing it served my purpose, but it had some problems with asterisk becoming unresponsive after a large number of manager logins/logouts. I suppose this has been solved by now, but I stopped testing it heavily since I had not had a large amount of requests for it... -- Best regards, Florian Overkamp
Richard Lyman
2003-Dec-16 12:36 UTC
[Asterisk-Users] Nagios/measurement with Asterisk - any plugins?
John Todd wrote:> I have spent some time digging through the archives for comments > concerning Asterisk and monitoring systems, and I have found few results. > > check_asterisk.pl.gz (http://www.dynx.net/ASTERISK/misc-progs/) which > gives an error on download, and has no further Google referencesi made a copy of it called http://www.dynx.net/ASTERISK/misc-progs/chk_ast_thisisa_gz.txt just save it and rename to check_asterisk.pl.gz> > astping.tar (http://www.dynx.net/ASTERISK/misc-progs/ and also in the > mailing list archives) supposedly sends a query to an Asterisk server, > but I have been unable to get it to do anything other than reply with > the IP address of the queried host (regardless of Asterisk status) >*snipped