Page 1 of 2
HP-UX SNMP-Monitoring
Posted: Mon Sep 10, 2018 1:44 am
by progressive.nagiosXI
Hi Team,
We have HP-UX server with SNMP V-2 installed but when we have tried to add in monitoring Linux-SNMP wizard its not able to monitor,
If not supported by that wizard PLease help to provide OID details of CPU , Memory and Disk.
Re: HP-UX SNMP-Monitoring
Posted: Mon Sep 10, 2018 10:44 am
by lmiltchev
Have you tried using the SNMP Walk wizard? Run it against the HP-UX box and select the OIDs that you would like to use (in Step 2 of the wizard).
Note: In Step on of the wizard, you may need to increase the "default" Max Results value from 100 to something higher, so that you will see ALL of the available OIDs on page two.
Re: HP-UX SNMP-Monitoring
Posted: Mon Sep 10, 2018 12:33 pm
by progressive.nagiosXI
Hi,
I have tried that but still not getting any data of CPU,Memory and Disk Utilization,
PLz help i got 100's of details but none of it was of Utilization.
Re: HP-UX SNMP-Monitoring
Posted: Mon Sep 10, 2018 2:48 pm
by lmiltchev
Can you post the
snmpd.conf file from the HP-UX machine?
Also, run the following command on the Nagios XI server from the command line:
Code: Select all
snmpwalk -v2c -c <community string> <HP-UX server ip address> -On > /tmp/walk
and upload the
walk file that got generated in the "/tmp" directory by running the above command.
FYI, I found a 3rd party plugin on the Nagios Exchange, written specifically for HP-UX:
https://exchange.nagios.org/directory/P ... py/details
It hasn't been tested by us, and we cannot guarantee that it is going to work, but it's worth trying it. If the plugin works from the CLI, then you could setup a command and service by following the steps, outlined in the document below:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: HP-UX SNMP-Monitoring
Posted: Tue Sep 11, 2018 12:43 am
by progressive.nagiosXI
Hi,
Thanks for the plugin it's very useful (Memory and Disk are OK) yet it's not able to monitor CPU,
I will attach SNMP config file from the server (In Case ,I have not installed SNMP properly)
Re: HP-UX SNMP-Monitoring
Posted: Tue Sep 11, 2018 4:55 am
by progressive.nagiosXI
Hi,
Please find attached 2 SNMP config files,
Note ==> In snmpd31.conf ==> We are getting details of Memory and Disk but not of CPU,
In SNMPd15.conf ==> We are not getting any data yet we are receving below error,
" [root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.31 HIL_SRV mem 80 90
OK: Memory usage 16.24 % [20.8 Gb / 127.9 Gb]|usage=16;80;90
[root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.15 HIL_SRV mem 80 90
Traceback (most recent call last):
File "./check_snmp_hpux.py", line 236, in <module>
main()
File "./check_snmp_hpux.py", line 214, in main
value, msg = memory(sys.argv[1], sys.argv[2])
File "./check_snmp_hpux.py", line 110, in memory
usage = int(total) - int(free)
ValueError: invalid literal for int() with base 10: 'No' "
Also I have tried to run snmpget via OID and i"m getting below details
[root@monitoring-nagiosxi libexec]# snmpget -v 2c -c HIL_SRV 10.200.4.15 .1.3.6.1.4.1.11.2.3.1.1.8.0
SNMPv2-SMI::enterprises.11.2.3.1.1.8.0 = No Such Object available on this agent at this OID
[root@monitoring-nagiosxi libexec]# snmpget -v 2c -c HIL_SRV 10.200.4.31 .1.3.6.1.4.1.11.2.3.1.1.8.0
SNMPv2-SMI::enterprises.11.2.3.1.1.8.0 = INTEGER: 134113688
Re: HP-UX SNMP-Monitoring
Posted: Tue Sep 11, 2018 5:45 am
by progressive.nagiosXI
Hi I have attached below SNMPwalk command details,
in server .31 ==> there are lots of OID yet in server (.15) we can't find OID details,
to me it looks like snmp configuration issue in server, it"ll be great if you can provide SNMP installtion and configuration steps in HP-UX which will help us to get details.
Re: HP-UX SNMP-Monitoring
Posted: Tue Sep 11, 2018 11:40 am
by tgriep
I compared the snmpd.conf files and the strange thing I found is that the config file for the 15 server, there is a weird unprintable character on the option that sets the community string.
Try retyping that line in to see if that fixes the issue as I found an article that says if there are and extra spaces / characters in the file, it could cause strange errors.
set-community-name: HIL_SRV
What version of HP-UX are you running on the server?
One thing to check is to see if the MIB files are installed on both systems and that they are the same.
It could be that one of them is corrupted and is not returning all of the data.
Re: HP-UX SNMP-Monitoring
Posted: Tue Sep 11, 2018 11:46 am
by progressive.nagiosXI
Okay will retype config file,
And they are using HP - UX 11.31 also can you please suggest where will be the MIB file and why we are not getting CPU response of the server.31 (Whose memory and Disk are showing.)
Re: HP-UX SNMP-Monitoring
Posted: Tue Sep 11, 2018 12:24 pm
by tgriep
We don't have access to a HP-UX server so we cannot verify the locations for where the MIB files are for sure.
Searching the Internet is not coming up with any information as to where they are located at.
Check the snmpd log file to see if there are any clues as to why it is not responding.
You may need to restart the snmp sub agents on the HP-UX server as well as the snmpd daemon.
Code: Select all
/sbin/init.d/SnmpHpunix stop
/sbin/init.d/SnmpMib2 stop
/sbin/init.d/SnmpMaster stop
/sbin/init.d/SnmpMaster start
/sbin/init.d/SnmpMib2 start
/sbin/init.d/SnmpHpunix start