Hi,
Changed the config file now getting SNMPwalk response with high no. OID but still when trying to run the check_snmp_hpux.py getting below error i have attached both file snmpwalk repsone of server and MIB you requested.
[root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.15 HIL_SRV cpu 80 90
UNKNOWN: No SNMP answer from 10.200.4.15
[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'
[root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.15 HIL_SRV fs:/ 80 90
UNKNOWN: No SNMP answer from 10.200.4.15
[root@monitoring-nagiosxi libexec]#
HP-UX SNMP-Monitoring
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: HP-UX SNMP-Monitoring
You do not have the required permissions to view the files attached to this post.
Re: HP-UX SNMP-Monitoring
The plugin needs to poll these 2 OID's for the memory check.
Your output of the snmpwalk does not show either of those OID's and the OID's for the File System check are not there.
If you cannot get the HP-UX server to respond to the polling of those OID's, then the plugin will not work and I suggest contacting HP to see if they can help you with the snmpd configuration for the HP-UX server.
Code: Select all
"mem_total": ".1.3.6.1.4.1.11.2.3.1.1.8.0"
"mem_free": ".1.3.6.1.4.1.11.2.3.1.1.7.0"If you cannot get the HP-UX server to respond to the polling of those OID's, then the plugin will not work and I suggest contacting HP to see if they can help you with the snmpd configuration for the HP-UX server.
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
Hi,
As I have analysed and found they have 3 HW for HP-UX OS and the plugin is working on 1 HW completely,
HW - BL 860 C ==> 10.200.4.31 Memory, Disk but no CPU data == working partially
HW - BL 870 C ==> 10.200.4.15 NA ==> not working.
HW - RX 2800 ==> 10.200.4.88 CPU, Memory ,Disk ==> working OK
means OID is working on HW ( HP RX 2800) can you please help with the OID of other HW's.
As I have analysed and found they have 3 HW for HP-UX OS and the plugin is working on 1 HW completely,
HW - BL 860 C ==> 10.200.4.31 Memory, Disk but no CPU data == working partially
HW - BL 870 C ==> 10.200.4.15 NA ==> not working.
HW - RX 2800 ==> 10.200.4.88 CPU, Memory ,Disk ==> working OK
means OID is working on HW ( HP RX 2800) can you please help with the OID of other HW's.
Re: HP-UX SNMP-Monitoring
We do not have access to an HP-UX server so we do not know where the SNMP configuration files are located on the HP-UX server.
I suggest contacting the manufacturer for help configuring the HP-UX servers.
Search the RX 2800 server to see if you can find the configs and replicate it on the other 2 servers.
I suggest contacting the manufacturer for help configuring the HP-UX servers.
Search the RX 2800 server to see if you can find the configs and replicate it on the other 2 servers.
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
tried copying the snmpd file nut no success, alsor reach out to HP team they said that
"Please try performing the below steps:
#snmpwalk -v2c -c public 127.0.0.1 iso > /tmp/mib.out ==è Redirect the output.
Please go the mib.out file and you can find the MIB's OID available.
The MIB-2 subagent supports most of the objects in RFC1213. The EGP group is not supported. Please go the mib.out file and you can find the MIB's OID available."
have read the file but no success. please suggest
"Please try performing the below steps:
#snmpwalk -v2c -c public 127.0.0.1 iso > /tmp/mib.out ==è Redirect the output.
Please go the mib.out file and you can find the MIB's OID available.
The MIB-2 subagent supports most of the objects in RFC1213. The EGP group is not supported. Please go the mib.out file and you can find the MIB's OID available."
have read the file but no success. please suggest
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: HP-UX SNMP-Monitoring
Hi Team,
as per the outputs, I have found that there is some issue with the plugin as both server 88 and 31 having the same OID's but and we are getting data while running snmpget command manually but when running from command i "m getting data of 88 servers only, please find below outputs
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.88 1.3.6.1.4.1.11.2.3.1.1.3
SNMPv2-SMI::enterprises.11.2.3.1.1.3 = No Such Instance currently exists at this OID
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.88 1.3.6.1.4.1.11.2.3.1.1.3.0
SNMPv2-SMI::enterprises.11.2.3.1.1.3.0 = Gauge32: 2
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.31 1.3.6.1.4.1.11.2.3.1.1.3
SNMPv2-SMI::enterprises.11.2.3.1.1.3 = No Such Instance currently exists at this OID
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.31 1.3.6.1.4.1.11.2.3.1.1.3.0
SNMPv2-SMI::enterprises.11.2.3.1.1.3.0 = Gauge32: 0
[root@monitoring-nagiosxi ~]# cd /usr/local/nagios/libexec/
[root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.88 HIL_SRV cpu 80 90
OK: CPU load average 0.02, 0.03, 0.03 |'1 min'=0.02;80.0;90.0;0;0 '5 min'=0.03;80.0;90.0;0;0 '15 min'=0.03;80.0;90.0;0;0
[root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.31 HIL_SRV cpu 80 90
UNKNOWN: No SNMP answer from 10.200.4.31
[root@monitoring-nagiosxi libexec]#
This is strange i"m not being able to say anything to our customer please help in this,
we are using this plugin ==> https://exchange.nagios.org/directory/P ... py/details
as per the outputs, I have found that there is some issue with the plugin as both server 88 and 31 having the same OID's but and we are getting data while running snmpget command manually but when running from command i "m getting data of 88 servers only, please find below outputs
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.88 1.3.6.1.4.1.11.2.3.1.1.3
SNMPv2-SMI::enterprises.11.2.3.1.1.3 = No Such Instance currently exists at this OID
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.88 1.3.6.1.4.1.11.2.3.1.1.3.0
SNMPv2-SMI::enterprises.11.2.3.1.1.3.0 = Gauge32: 2
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.31 1.3.6.1.4.1.11.2.3.1.1.3
SNMPv2-SMI::enterprises.11.2.3.1.1.3 = No Such Instance currently exists at this OID
[root@monitoring-nagiosxi ~]# snmpget -v 2c -c HIL_SRV 10.200.4.31 1.3.6.1.4.1.11.2.3.1.1.3.0
SNMPv2-SMI::enterprises.11.2.3.1.1.3.0 = Gauge32: 0
[root@monitoring-nagiosxi ~]# cd /usr/local/nagios/libexec/
[root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.88 HIL_SRV cpu 80 90
OK: CPU load average 0.02, 0.03, 0.03 |'1 min'=0.02;80.0;90.0;0;0 '5 min'=0.03;80.0;90.0;0;0 '15 min'=0.03;80.0;90.0;0;0
[root@monitoring-nagiosxi libexec]# ./check_snmp_hpux.py 10.200.4.31 HIL_SRV cpu 80 90
UNKNOWN: No SNMP answer from 10.200.4.31
[root@monitoring-nagiosxi libexec]#
This is strange i"m not being able to say anything to our customer please help in this,
we are using this plugin ==> https://exchange.nagios.org/directory/P ... py/details
Re: HP-UX SNMP-Monitoring
When running the snmpget command, it does not walk the tree of the sub OID's, use the snmpwalk command to see if the OID's and the sub OID's are displayed.
Try running a snmpwalk command on the 10.200.4.31 server to see if all of the OID's respond.
The check_snmp_hpux.py plugin will walk the following OID's to gather it's data.
Make sure it can respond to them.
Try running a snmpwalk command on the 10.200.4.31 server to see if all of the OID's respond.
Code: Select all
snmpwalk -v 2c -c HIL_SRV 10.200.4.31Code: Select all
"cpu_1min": "1.3.6.1.4.1.11.2.3.1.1.3",
"cpu_5min": "1.3.6.1.4.1.11.2.3.1.1.4",
"cpu_15min": "1.3.6.1.4.1.11.2.3.1.1.5",Be sure to check out our Knowledgebase for helpful articles and solutions!