Hi asterisk and ser users,
Is there a solution to monitor asterisk and ser with snmp ?
Regards Harry
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Hi Harry,
ser does not support SNMP. There is a module, but it has not been maintained for ages and does not work.
-Atle
* hgaillac-sip@yahoo.fr hgaillac-sip@yahoo.fr [060127 13:05]:
Hi asterisk and ser users,
Is there a solution to monitor asterisk and ser with snmp ?
Regards Harry
___________________________________________________________________________ Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international. T?l?chargez sur http://fr.messenger.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Yes I know about snmp module. There is no way to monitor SER vi snmp !?
Harry --- Atle Samuelsen clona@cyberhouse.no a écrit :
Hi Harry,
ser does not support SNMP. There is a module, but it has not been maintained for ages and does not work.
-Atle
- hgaillac-sip@yahoo.fr hgaillac-sip@yahoo.fr
[060127 13:05]:
Hi asterisk and ser users,
Is there a solution to monitor asterisk and ser
with
snmp ?
Regards Harry
___________________________________________________________________________
Nouveau : t?l?phonez moins cher avec Yahoo!
Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.
T?l?chargez sur http://fr.messenger.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
As answered, no.
What i did to monitor ser and sems was to create bash scripts which restart ser and/or sems in case of failure.
For ser, the script sends fake REGISTER messages (with expires=0). If the answer is 200 OK (or a 40x proxy authenticate) ... then ser is alive. If nothing is read, then i restart ser. For sems, i tried two approaches. - active: send a specially crafted message (INVITE) so that you know for sure that ser will route it to SEMS ... depending on the answer, you should be able to know wether SEMS is alive or not ... but this has a problem (see below for a larger explanation). - passively: start sems so it writes its PID to a log file ... then monitor (using ps aux) that pid ...if not there, restart SEMS. - i seem to remember someone mentioned a status module for sems, which would allow you to send commands via the fifo/unixsock interface, and check actively sems (including activity statistics) ... is this true?
===== ACTIVE MONITORING PROBLEM What i tried to do is to created unique INVITE messages, which i make sure that ser routes to sems. They had unique call-ids and to/from tags ... thus theoretically ser should see them as independendent requests. But, if sent these INV requests too often (that is, less than a minute or so ... time enough for the transaction to be destroyed in ser mem, i guess ... ), ser would mistakenly think they were retransmissions ... It would also start acting weird and sending replies to the wrong port ... This is why i went to passive monitoring ... i do not have time to investigate any further ... but i can provide the script for someone else to try ... BTW, i use ser 0.9.6
Regards,
Cesc
On 1/27/06, hgaillac-sip@yahoo.fr hgaillac-sip@yahoo.fr wrote:
Yes I know about snmp module. There is no way to monitor SER vi snmp !?
Harry --- Atle Samuelsen clona@cyberhouse.no a écrit :
Hi Harry,
ser does not support SNMP. There is a module, but it has not been maintained for ages and does not work.
-Atle
- hgaillac-sip@yahoo.fr hgaillac-sip@yahoo.fr
[060127 13:05]:
Hi asterisk and ser users,
Is there a solution to monitor asterisk and ser
with
snmp ?
Regards Harry
Nouveau : t?l?phonez moins cher avec Yahoo!
Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.
T?l?chargez sur http://fr.messenger.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi!
hgaillac-sip@yahoo.fr wrote:
Yes I know about snmp module. There is no way to monitor SER vi snmp !?
As others have noted SER does not directly support SNMP but you can easily enhance your snmpd to support it. You add serctl fifo commands using the snmp exec directive to monitor the number of users, transactions stuff, ... The meminfo patch (now included) is handy and you can directly pipe serctl fifo meminfo into SNMP and create nifty graphs.
sipsak comes in handy, i.e. sending an OPTIONS request and measuring a) if a response comes back and b) the time processing took.
Much better would be monitoring INVITE/REGISTER response behaviour since that usually requires a whole lot more interaction (radius, db, ..) on SER side.
Hendrik
Hello Hendrik,
What about VRRP for failover ?
SER1 (master) sip agents == || === Asterisk Farm==sip/pstn gateway SER2 (slave)
Harry
--- Hendrik Scholz hendrik.scholz@freenet-ag.de a écrit :
Hi!
hgaillac-sip@yahoo.fr wrote:
Yes I know about snmp module. There is no way to monitor SER vi snmp !?
As others have noted SER does not directly support SNMP but you can easily enhance your snmpd to support it. You add serctl fifo commands using the snmp exec directive to monitor the number of users, transactions stuff, ... The meminfo patch (now included) is handy and you can directly pipe serctl fifo meminfo into SNMP and create nifty graphs.
sipsak comes in handy, i.e. sending an OPTIONS request and measuring a) if a response comes back and b) the time processing took.
Much better would be monitoring INVITE/REGISTER response behaviour since that usually requires a whole lot more interaction (radius, db, ..) on SER side.
Hendrik
-- freenet Cityline GmbH, Hamburger Chaussee 2-4, 24114 Kiel, Germany Phone: +49 (0)431 9020552, Fax: +49 (0)431 9020559 Internet: http://www.freenet.de, eMail: hendrik.scholz@freenet-ag.de
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com