Monitoring Temp Probe on APC rack PDU

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RyanMule
Posts: 57
Joined: Tue Dec 12, 2017 3:14 pm

Monitoring Temp Probe on APC rack PDU

Post by RyanMule »

Hello All,

Could anyone point me in the right direction on how to monitor a Temp probe on an APC A8941 PDU in Nagios XI version 5.4.11?

I tried an SNMP walk on the host and could not find anything relating to the probe, also tried search the MIB with no luck.

Thank you
Ryan
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitoring Temp Probe on APC rack PDU

Post by npolovenko »

Hello, @RyanMule. Are you looking to perform active checks or passive checks? If passive, then you would need to upload this mib file to XI RFC-1212 https://github.com/NationalAssociationO ... 12-MIB.txt, and then this one: ftp://ftp.apc.com/apc/public/software/p ... net425.mib Don't forget to check the "process trap" button when you upload MIBs.
Here's some general reference on SNMP traps and XI:
https://support.nagios.com/kb/article/n ... al-77.html

Otherwise, for active checks, you'd probably need to build a custom check based on the right OID. For example:

# 'snmp_ups_temp' command definition
define command{
command_name snmp_ups_temp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.0.59 -w 40 -c 45 -l '\Internal Temp\'
}

You'll be able to see all available oid numbers in the following directory once you process the MIB files.

Code: Select all

/usr/share/snmp/mibs/processed_mibs
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RyanMule
Posts: 57
Joined: Tue Dec 12, 2017 3:14 pm

Re: Monitoring Temp Probe on APC rack PDU

Post by RyanMule »

Hey npolovenko,

Thank you for the reply and this information! I am looking for an active check. I guess I just have to find the OID for the temp probe in the apc pdu MIB.

Thank you

npolovenko wrote:Hello, @RyanMule. Are you looking to perform active checks or passive checks? If passive, then you would need to upload this mib file to XI RFC-1212 https://github.com/NationalAssociationO ... 12-MIB.txt, and then this one: ftp://ftp.apc.com/apc/public/software/p ... net425.mib Don't forget to check the "process trap" button when you upload MIBs.
Here's some general reference on SNMP traps and XI:
https://support.nagios.com/kb/article/n ... al-77.html

Otherwise, for active checks, you'd probably need to build a custom check based on the right OID. For example:

# 'snmp_ups_temp' command definition
define command{
command_name snmp_ups_temp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.0.59 -w 40 -c 45 -l '\Internal Temp\'
}

You'll be able to see all available oid numbers in the following directory once you process the MIB files.

Code: Select all

/usr/share/snmp/mibs/processed_mibs
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitoring Temp Probe on APC rack PDU

Post by npolovenko »

@RyanMule, Yes, that's right. There's a website called iReasoning, you can upload the MIB file and it will tell you all available OIDs. Alternatively, you can run a SNMP walk wizard in XI, and clear out the OID field. That will make XI scan your device for all OIDs. Third way to do this to run the following command on your nagios system:
1. Put the mib file in the root directory
2. Run the following command to check for OIDs

Code: Select all

snmptranslate -m /root/APCPDU.mib -Tz
But replace APCPDU.mib with the correct MIB name.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RyanMule
Posts: 57
Joined: Tue Dec 12, 2017 3:14 pm

Re: Monitoring Temp Probe on APC rack PDU

Post by RyanMule »

Thanks, I will check that out! I have been running the SNMP walk wizard and not having any luck finding the OID for the probe.

npolovenko wrote:@RyanMule, Yes, that's right. There's a website called iResoning, you can upload the MIB file and it will tell you all available OIDs. Alternatively, you can run a SNMP walk wizard in XI, and clear out the OID field. That will make XI scan your device for all OIDs. Third way to do this to run the following command on your nagios system:
1. Put the mib file in the root directory
2. Run the following command to check for OIDs

Code: Select all

snmptranslate -m /root/APCPDU.mib -Tz
But replace APCPDU.mib with the correct MIB name.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitoring Temp Probe on APC rack PDU

Post by npolovenko »

@RyanMule, Sounds good.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked