SNMP Version: net-snmp-5.6.1-intel-x64
Currently after starting my snmp client it eventually shuts down about 10/11 hours later after using all file handles. It currently uses all the File descriptors allowed to a process and is monitored quite easily with lsof -p <pid> with output as below:
snmpd 27079 jboss_se 381u sock 0,5 939974836 can't identify protocol
snmpd 27079 jboss_se 382u sock 0,5 939975503 can't identify protocol
snmpd 27079 jboss_se 383u sock 0,5 939976201 can't identify protocol
Final messages to output log before the snmpd dies:
could not create socket
cannot open /proc/net/dev ...
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
could not open /proc/net/arp
cannot open /proc/net/snmp ...
client: socket() Error
: Bad file descriptor
could not create socket
So far I have added -D to my snmpd for debug (very verbose) the only error that is consistent is this client connect Error highlighted in bold.
trace: run_alarms(): snmp_alarm.c, 245:
snmp_alarm: run alarm 2
trace: send_status_notification(): mibgroup/apache2/serverStatus.c, 114:
serverStatus: NOTIFICATION - Init
trace: check_estado(): mibgroup/apache2/serverStatus.c, 198:
serverStatus: FCN - check_estado - Init
client: connect() Error
: Connection refused
trace: send_http_get(): mibgroup/apache2/totalAccess.c, 193:
totalAccess: send_http_get --> Connect Error
trace: check_estado(): mibgroup/apache2/serverStatus.c, 235:
serverStatus: FCN - check_estado - Can't open Pidfile
trace: check_estado(): mibgroup/apache2/serverStatus.c, 236:
serverStatus: Pidfile -
trace: check_estado(): mibgroup/apache2/serverStatus.c, 254:
serverStatus: FCN - check_estado - End (0)
trace: send_status_notification(): mibgroup/apache2/serverStatus.c, 116:
serverStatus: NOTIFICATION -0 0
Is anyone familiar with this problem or have any ideas or tips on how to troubleshoot this problem?
Currently after starting my snmp client it eventually shuts down about 10/11 hours later after using all file handles. It currently uses all the File descriptors allowed to a process and is monitored quite easily with lsof -p <pid> with output as below:
snmpd 27079 jboss_se 381u sock 0,5 939974836 can't identify protocol
snmpd 27079 jboss_se 382u sock 0,5 939975503 can't identify protocol
snmpd 27079 jboss_se 383u sock 0,5 939976201 can't identify protocol
Final messages to output log before the snmpd dies:
could not create socket
cannot open /proc/net/dev ...
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
/proc/partitions: Too many open files
/proc/stat: Too many open files
could not open /proc/net/arp
cannot open /proc/net/snmp ...
client: socket() Error
: Bad file descriptor
could not create socket
So far I have added -D to my snmpd for debug (very verbose) the only error that is consistent is this client connect Error highlighted in bold.
trace: run_alarms(): snmp_alarm.c, 245:
snmp_alarm: run alarm 2
trace: send_status_notification(): mibgroup/apache2/serverStatus.c, 114:
serverStatus: NOTIFICATION - Init
trace: check_estado(): mibgroup/apache2/serverStatus.c, 198:
serverStatus: FCN - check_estado - Init
client: connect() Error
: Connection refused
trace: send_http_get(): mibgroup/apache2/totalAccess.c, 193:
totalAccess: send_http_get --> Connect Error
trace: check_estado(): mibgroup/apache2/serverStatus.c, 235:
serverStatus: FCN - check_estado - Can't open Pidfile
trace: check_estado(): mibgroup/apache2/serverStatus.c, 236:
serverStatus: Pidfile -
trace: check_estado(): mibgroup/apache2/serverStatus.c, 254:
serverStatus: FCN - check_estado - End (0)
trace: send_status_notification(): mibgroup/apache2/serverStatus.c, 116:
serverStatus: NOTIFICATION -0 0
Is anyone familiar with this problem or have any ideas or tips on how to troubleshoot this problem?