HP-UX SNMP-Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

HP-UX SNMP-Monitoring

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HP-UX SNMP-Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: HP-UX SNMP-Monitoring

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HP-UX SNMP-Monitoring

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: HP-UX SNMP-Monitoring

Post 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)
You do not have the required permissions to view the files attached to this post.
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: HP-UX SNMP-Monitoring

Post 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
You do not have the required permissions to view the files attached to this post.
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: HP-UX SNMP-Monitoring

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: HP-UX SNMP-Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: HP-UX SNMP-Monitoring

Post 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.)
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: HP-UX SNMP-Monitoring

Post 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.

Code: Select all

/var/adm/snmpd.log
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked