Author Topic: ysnmp module stops working after some time  (Read 13034 times)

vankooch

  • Administrator
  • Newbie
  • *****
  • Posts: 49
    • View Profile
ysnmp module stops working after some time
« on: November 30, 2012, 10:55:44 AM »
Hi

the ysnmp module stops woking after sometime, and I can't se any reason for that. I've setup ysnmp with same configs on 3 nodes and two have stopped working after some time... the load on those nodes is almost zero, but they have processed some calls. The last node had no calls, only idle, and on this server ysnmp is still working. Interesting is that the yate still runs on, and works on all nodes, even after ysnmp stops working. With not working I mean that it does not response on any queries. I'll always get timeouts.

Here You can see ysnmp stops working


And as you can see system load it almost zero


I've searched the logs and found this:
Code: [Select]
20121130082613.000612 <snmpagent:WARN> SnmpUdpListener::sendMessage() - could not send message

This is rmanger output after it stops working:
Code: [Select]
status snmpagent
%%+status:snmpagent
name=snmpagent,type=misc;
%%-status
I also tried to run reload from rmanager with no success

I'll increase ysnmp log level and post it later.

BTW. I'm running yate 4.2.1 r5312 on Ubuntu 12.04 amd64



paulc

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: ysnmp module stops working after some time
« Reply #1 on: December 18, 2012, 01:19:19 PM »
Please check with netstat if the socket is still working and if it has any queued packets:

netstat -nulp | fgrep 161

Expect something like:

udp        0      0 0.0.0.0:161                 0.0.0.0:*                               16267/yate

vankooch

  • Administrator
  • Newbie
  • *****
  • Posts: 49
    • View Profile
Re: ysnmp module stops working after some time
« Reply #2 on: January 10, 2013, 08:24:25 AM »
Sorry for the late response...

There is no socket running

Code: [Select]
sudo netstat -nulp | fgrep 161
- none -

After a restart of yate the socket is running:

Code: [Select]
sudo netstat -nulp | fgrep 161
udp        0      0 xx.xx.xx.xx:161        0.0.0.0:*                           8460/yate

Please let me know if you need any other debug.
« Last Edit: January 15, 2013, 03:18:52 PM by vankooch »