Page 1 of 1

No snmp response intermitantly for all services

Posted: Sat Jun 10, 2017 4:42 pm
by ericssonvietnam
i have check everything and below are my findings :

Attached is the screenshot of the services for which i am getting the issue.
nmap output for the node :
++++++++++++++++++++++++++++++++++
[root@nagiosxi log]# grep -i MUR01 /etc/hosts
10.10.165.162 MUR01
[root@nagiosxi log]# nmap -Pn -sU -p U:161 10.10.165.162

Starting Nmap 5.51 ( http://nmap.org ) at 2017-06-11 04:35 ICT
Nmap scan report for MUR01 (10.10.165.162)
Host is up (0.0012s latency).
PORT STATE SERVICE
161/udp open snmp
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
netstat output for the node :
-bash-3.00$ netstat -an |grep 161
*.161 Idle
*.1161 Idle
*.3161 Idle
*.1161 Idle
*.7161 *.* 0 0 49152 0 LISTEN
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
process output for the node
-bash-3.00$ ps -ef|grep snmp
root 984 1 0 Aug 20 ? 7780:36 /usr/bin/java -DBASEDIR=/apps/mws -cp /apps/mws/lib/mwssnmpagent.jar:/apps/mws/
root 1402 1 0 Aug 20 ? 274:02 /apps/MOBYemanate/snmp16.1.0.60/basic/sol64_sun4.bin/naaagt -port 1161 &
root 1415 1 0 Aug 20 ? 126:52 /apps/MOBYemanate/snmp16.1.0.60/basic/sol64_sun4.bin/sunnaaagt -port 3161 &
root 1427 1 0 Aug 20 ? 420:47 /apps/MOBYemanate/snmp16.1.0.60/basic/sol64_sun4.bin/jsadkagt -tcpany -apwarn -
root 20 1 0 Jun 26 ? 2412:41 /usr/java/bin/java -server -cp .:/apps/mup/userprovisioningclpd/../snmpagent/bi
root 13915 1 0 May 20 ? 17:31 /usr/lib/snmp/snmpdx -p 3161 -y -c /etc/snmp/conf
root 16860 16843 0 00:00:16 ? 1:28 /apps/MOBYemanate/snmp16.1.0.60/basic/sol64_sun4.bin/snmpdm -pkt_size 4096 -tcp
nagios 27426 27149 0 04:40:51 pts/3 0:00 grep snmp
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
can you suggest on above

Re: No snmp response intermitantly for all services

Posted: Mon Jun 12, 2017 9:26 am
by tgriep
The first thing you can try is to increase the timeout settings for that device by adding the following to the check command which will increase the timeout to 60 seconds.

Code: Select all

-t 60 
Try that and let post if this helps out in the issue.

Re: No snmp response intermitantly for all services

Posted: Tue Jun 13, 2017 5:12 pm
by ericssonvietnam
tgriep wrote:The first thing you can try is to increase the timeout settings for that device by adding the following to the check command which will increase the timeout to 60 seconds.

Code: Select all

-t 60 
Try that and let post if this helps out in the issue.
After updating the command as well still the issue is same.
PFA

Re: No snmp response intermitantly for all services

Posted: Tue Jun 13, 2017 5:44 pm
by ericssonvietnam
ericssonvietnam wrote:
tgriep wrote:The first thing you can try is to increase the timeout settings for that device by adding the following to the check command which will increase the timeout to 60 seconds.

Code: Select all

-t 60 
Try that and let post if this helps out in the issue.
After updating the command as well still the issue is same.
PFA
Already i have added it in command can you check the screenshot.

Re: No snmp response intermitantly for all services

Posted: Wed Jun 14, 2017 8:45 am
by tgriep
Have you checked the log files on the remote system to see why the timeout is happening intermittently for the SNMP daemon?

Can you login to the Nagios system, run the following commands so we can see how long it takes to poll the device?
Replace xxx.xxx.xxx.xxx with the IP address on the remote server.

Code: Select all

time snmpwalk xxx.xxx.xxx.xxx -c public -v2c
time /usr/local/nagios/libexec/check_ifoperstatus -H xxx.xxx.xxx.xxx -C public -k 4 -v 2 -p 161 -t 60
Can you provide some details on what the remote server OS and version it is running?

Re: No snmp response intermitantly for all services

Posted: Wed Jun 14, 2017 1:19 pm
by ericssonvietnam
tgriep wrote:Have you checked the log files on the remote system to see why the timeout is happening intermittently for the SNMP daemon?

Can you login to the Nagios system, run the following commands so we can see how long it takes to poll the device?
Replace xxx.xxx.xxx.xxx with the IP address on the remote server.

Code: Select all

time snmpwalk xxx.xxx.xxx.xxx -c public -v2c
time /usr/local/nagios/libexec/check_ifoperstatus -H xxx.xxx.xxx.xxx -C public -k 4 -v 2 -p 161 -t 60
Can you provide some details on what the remote server OS and version it is running?
OS version ::
-bash-3.00$ cat /etc/release
Solaris 10 8/07 s10s_u4wos_12b SPARC
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 August 2007

Attaching the output for the command.getting timeout for both the nodes for snmpwalk ::can you suggest what things i should check on node to rectify this issue.
Attaching the command output as well.

Re: No snmp response intermitantly for all services

Posted: Thu Jun 15, 2017 8:45 am
by tgriep
The first place to look is in the /var/adm/messages log file to see if there are any log entries when the system is getting polled.
You also may want to look at the config files and see if you can increase the timeout for the SNMP daemon.
/etc/snmp/conf

Check to see if there are ant patches or updates for the SNMP daemon software on your system.

Another thing I found is if you are running the SNMP Daemon and SMA on the system, that could cause the issue.
https://docs.oracle.com/cd/E18752_01/ht ... ing-2.html