monitor switch device temperature and fan speed by OID
-
- Posts: 170
- Joined: Tue Sep 11, 2012 3:48 am
monitor switch device temperature and fan speed by OID
Hi Team,
Please advice on how to enable monitoring for Switch device environment variables (temperature and Fan speed,Health status) using OID of switch device given below.
We use: Nagios XI 5.2.2
Name: "chassis" DESCR= ASA 5525-x PID= ASA5525 VID=VI03
ENTITY-MIB:entPhyiscalTable / 1.3.6.1.2.1.47.1.1.1
[88] 1.3.6.1.2.1.47.1.1.1.1.2. entPhysicalDescr
[89] 1.3.6.1.2.1.47.1.1.1.1.3. entPhysicalVendorType
[90] 1.3.6.1.2.1.47.1.1.1.1.4. entPhysicalContainedIn
[91] 1.3.6.1.2.1.47.1.1.1.1.5. entPhysicalClass
[92] 1.3.6.1.2.1.47.1.1.1.1.6. entPhysicalParentRelPos
[93] 1.3.6.1.2.1.47.1.1.1.1.7. entPhysicalName
[94] 1.3.6.1.2.1.47.1.1.1.1.8. entPhysicalHardwareRev
from the above details from switch
Thanks,
Ashok
Please advice on how to enable monitoring for Switch device environment variables (temperature and Fan speed,Health status) using OID of switch device given below.
We use: Nagios XI 5.2.2
Name: "chassis" DESCR= ASA 5525-x PID= ASA5525 VID=VI03
ENTITY-MIB:entPhyiscalTable / 1.3.6.1.2.1.47.1.1.1
[88] 1.3.6.1.2.1.47.1.1.1.1.2. entPhysicalDescr
[89] 1.3.6.1.2.1.47.1.1.1.1.3. entPhysicalVendorType
[90] 1.3.6.1.2.1.47.1.1.1.1.4. entPhysicalContainedIn
[91] 1.3.6.1.2.1.47.1.1.1.1.5. entPhysicalClass
[92] 1.3.6.1.2.1.47.1.1.1.1.6. entPhysicalParentRelPos
[93] 1.3.6.1.2.1.47.1.1.1.1.7. entPhysicalName
[94] 1.3.6.1.2.1.47.1.1.1.1.8. entPhysicalHardwareRev
from the above details from switch
Thanks,
Ashok
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: monitor switch device temperature and fan speed by OID
use the Nagios XI SNMP walk wizard and enter those OID's.
from there you'll be able to follow prompts and set them up as services.
from there you'll be able to follow prompts and set them up as services.
-
- Posts: 170
- Joined: Tue Sep 11, 2012 3:48 am
Re: monitor switch device temperature and fan speed by OID
On listing we could find the below details available
SNMPv2-SMI::mib-2.47.1.1.1.1.2.8 = STRING: "Chassis Cooling Fan 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.9 = STRING: "Chassis Cooling Fan 1 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.10 = STRING: "Chassis Cooling Fan 2"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.11 = STRING: "Chassis Cooling Fan 2 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.12 = STRING: "Chassis Cooling Fan 3"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.13 = STRING: "Chassis Cooling Fan 3 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.8 = STRING: "Chassis Cooling Fan 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.9 = STRING: "Chassis Fan Sensor 1"
From this data how can we bring out the requirement for Cisco ASA 5525-x software version 9.4
ENTITY-MIB:entPhyiscalTable / 1.3.6.1.2.1.47.1.1.1
[88] 1.3.6.1.2.1.47.1.1.1.1.2. entPhysicalDescr
[89] 1.3.6.1.2.1.47.1.1.1.1.3. entPhysicalVendorType
[90] 1.3.6.1.2.1.47.1.1.1.1.4. entPhysicalContainedIn
[91] 1.3.6.1.2.1.47.1.1.1.1.5. entPhysicalClass
[92] 1.3.6.1.2.1.47.1.1.1.1.6. entPhysicalParentRelPos
[93] 1.3.6.1.2.1.47.1.1.1.1.7. entPhysicalName
[94] 1.3.6.1.2.1.47.1.1.1.1.8. entPhysicalHardwareRev
SNMPv2-SMI::mib-2.47.1.1.1.1.2.8 = STRING: "Chassis Cooling Fan 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.9 = STRING: "Chassis Cooling Fan 1 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.10 = STRING: "Chassis Cooling Fan 2"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.11 = STRING: "Chassis Cooling Fan 2 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.12 = STRING: "Chassis Cooling Fan 3"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.13 = STRING: "Chassis Cooling Fan 3 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.8 = STRING: "Chassis Cooling Fan 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.9 = STRING: "Chassis Fan Sensor 1"
From this data how can we bring out the requirement for Cisco ASA 5525-x software version 9.4
ENTITY-MIB:entPhyiscalTable / 1.3.6.1.2.1.47.1.1.1
[88] 1.3.6.1.2.1.47.1.1.1.1.2. entPhysicalDescr
[89] 1.3.6.1.2.1.47.1.1.1.1.3. entPhysicalVendorType
[90] 1.3.6.1.2.1.47.1.1.1.1.4. entPhysicalContainedIn
[91] 1.3.6.1.2.1.47.1.1.1.1.5. entPhysicalClass
[92] 1.3.6.1.2.1.47.1.1.1.1.6. entPhysicalParentRelPos
[93] 1.3.6.1.2.1.47.1.1.1.1.7. entPhysicalName
[94] 1.3.6.1.2.1.47.1.1.1.1.8. entPhysicalHardwareRev
Re: monitor switch device temperature and fan speed by OID
Did you set the OIDs found from the snmpwalk wizard as services?
Are you trying to get actual numbers(integers) from this ASA switch?From this data how can we bring out the requirement for Cisco ASA 5525-x software version 9.4
-
- Posts: 170
- Joined: Tue Sep 11, 2012 3:48 am
Re: monitor switch device temperature and fan speed by OID
nagios@ds$:/usr/local/nagios/libexec$ ./check_nwc_health --hostname=******--protocol=3 --username=####--authpassword=###@#@--authprotocol=MD5 --mode=hardware-health --units=% --warning=80
OK - no alarms, environmental hardware working fine | 'fan_Chassis Fan Sensor 2'=6144;;;; 'fan_Chassis Fan Sensor 3'=6144;;;; 'temp_CPU Temperature Sensor 0/0'=57;;;; 'temp_Chassis Ambient Temperature Sensor 1'=38;;;; 'temp_Chassis Ambient Temperature Sensor 2'=33;;;; 'temp_Chassis Ambient Temperature Sensor 3'=37;;;; 'fan_Chassis Fan Sensor 1'=6144;;;;
is that possible from the above output to get the fan's RPM and temperature of network device separately
Also please advise on using the OID to get this data, I have tried below way but i couldn't get the required output
nagios@wds:/usr/local/nagios/libexec$ ./check_snmp_temperature.pl -H hostname-C netstat -T cisco1 -a '.' -A '.' -w 40 -c 50
ERROR: Problem retrieving OID 1.3.6.1.2.1.47.1.1.1.1.8 table: No response from remote host "hostname"
nagios@wds:/usr/local/nagios/libexec$ ./check_snmp_temperature.pl -f -H hostname--type=cisco1 -o F -C 1.3.6.1.2.1.47.1.1.1.1.8 -a 0 -w 44 -c 50
ERROR: Problem retrieving OID 1.3.6.1.2.1.47.1.1.1.1.8 table: No response from remote host "hostname"
nagios@wp1rngs02t:/usr/local/nagios/libexec$
OK - no alarms, environmental hardware working fine | 'fan_Chassis Fan Sensor 2'=6144;;;; 'fan_Chassis Fan Sensor 3'=6144;;;; 'temp_CPU Temperature Sensor 0/0'=57;;;; 'temp_Chassis Ambient Temperature Sensor 1'=38;;;; 'temp_Chassis Ambient Temperature Sensor 2'=33;;;; 'temp_Chassis Ambient Temperature Sensor 3'=37;;;; 'fan_Chassis Fan Sensor 1'=6144;;;;
is that possible from the above output to get the fan's RPM and temperature of network device separately
Also please advise on using the OID to get this data, I have tried below way but i couldn't get the required output
nagios@wds:/usr/local/nagios/libexec$ ./check_snmp_temperature.pl -H hostname-C netstat -T cisco1 -a '.' -A '.' -w 40 -c 50
ERROR: Problem retrieving OID 1.3.6.1.2.1.47.1.1.1.1.8 table: No response from remote host "hostname"
nagios@wds:/usr/local/nagios/libexec$ ./check_snmp_temperature.pl -f -H hostname--type=cisco1 -o F -C 1.3.6.1.2.1.47.1.1.1.1.8 -a 0 -w 44 -c 50
ERROR: Problem retrieving OID 1.3.6.1.2.1.47.1.1.1.1.8 table: No response from remote host "hostname"
nagios@wp1rngs02t:/usr/local/nagios/libexec$
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: monitor switch device temperature and fan speed by OID
these are your description OID's, you need to use the ones that represent the speeds.inas.labib wrote:On listing we could find the below details available
SNMPv2-SMI::mib-2.47.1.1.1.1.2.8 = STRING: "Chassis Cooling Fan 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.9 = STRING: "Chassis Cooling Fan 1 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.10 = STRING: "Chassis Cooling Fan 2"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.11 = STRING: "Chassis Cooling Fan 2 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.12 = STRING: "Chassis Cooling Fan 3"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.13 = STRING: "Chassis Cooling Fan 3 Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.8 = STRING: "Chassis Cooling Fan 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.9 = STRING: "Chassis Fan Sensor 1"
From this data how can we bring out the requirement for Cisco ASA 5525-x software version 9.4
ENTITY-MIB:entPhyiscalTable / 1.3.6.1.2.1.47.1.1.1
[88] 1.3.6.1.2.1.47.1.1.1.1.2. entPhysicalDescr
[89] 1.3.6.1.2.1.47.1.1.1.1.3. entPhysicalVendorType
[90] 1.3.6.1.2.1.47.1.1.1.1.4. entPhysicalContainedIn
[91] 1.3.6.1.2.1.47.1.1.1.1.5. entPhysicalClass
[92] 1.3.6.1.2.1.47.1.1.1.1.6. entPhysicalParentRelPos
[93] 1.3.6.1.2.1.47.1.1.1.1.7. entPhysicalName
[94] 1.3.6.1.2.1.47.1.1.1.1.8. entPhysicalHardwareRev
try using the snmp walk wizard for this. it's hard to say how that plugin will function.inas.labib wrote:nagios@ds$:/usr/local/nagios/libexec$ ./check_nwc_health --hostname=******--protocol=3 --username=####--authpassword=###@#@--authprotocol=MD5 --mode=hardware-health --units=% --warning=80
OK - no alarms, environmental hardware working fine | 'fan_Chassis Fan Sensor 2'=6144;;;; 'fan_Chassis Fan Sensor 3'=6144;;;; 'temp_CPU Temperature Sensor 0/0'=57;;;; 'temp_Chassis Ambient Temperature Sensor 1'=38;;;; 'temp_Chassis Ambient Temperature Sensor 2'=33;;;; 'temp_Chassis Ambient Temperature Sensor 3'=37;;;; 'fan_Chassis Fan Sensor 1'=6144;;;;
is that possible from the above output to get the fan's RPM and temperature of network device separately
Also please advise on using the OID to get this data, I have tried below way but i couldn't get the required output
nagios@wds:/usr/local/nagios/libexec$ ./check_snmp_temperature.pl -H hostname-C netstat -T cisco1 -a '.' -A '.' -w 40 -c 50
ERROR: Problem retrieving OID 1.3.6.1.2.1.47.1.1.1.1.8 table: No response from remote host "hostname"
nagios@wds:/usr/local/nagios/libexec$ ./check_snmp_temperature.pl -f -H hostname--type=cisco1 -o F -C 1.3.6.1.2.1.47.1.1.1.1.8 -a 0 -w 44 -c 50
ERROR: Problem retrieving OID 1.3.6.1.2.1.47.1.1.1.1.8 table: No response from remote host "hostname"
nagios@wp1rngs02t:/usr/local/nagios/libexec$
Re: monitor switch device temperature and fan speed by OID
Thanks for the help @tacolover101.
inas.labib, please follow tacolover101's suggestions, and let us know if you have any more questions.
Try using the correct OID's for speed.
inas.labib, please follow tacolover101's suggestions, and let us know if you have any more questions.
Try using the correct OID's for speed.
-
- Posts: 170
- Joined: Tue Sep 11, 2012 3:48 am
Re: monitor switch device temperature and fan speed by OID
I am able to get the out put from snmp wizard as informed. Please guide me how to configure the same using the plugin
OID's for Environmental status is 1.3.6.1.4.1.9.9.13.1.3.1.6
Output from Device is below, MIBS are available in switch.
wp1pgsw01t#show snmp mib | in Env
ciscoEnvMonObjects.1
ciscoEnvMonVoltageStatusEntry.2
ciscoEnvMonVoltageStatusEntry.3
ciscoEnvMonVoltageStatusEntry.4
ciscoEnvMonVoltageStatusEntry.5
ciscoEnvMonVoltageStatusEntry.6
ciscoEnvMonVoltageStatusEntry.7
ciscoEnvMonTemperatureStatusEntry.2
ciscoEnvMonTemperatureStatusEntry.3
ciscoEnvMonTemperatureStatusEntry.4
ciscoEnvMonTemperatureStatusEntry.5
ciscoEnvMonTemperatureStatusEntry.6
ciscoEnvMonFanStatusEntry.2
ciscoEnvMonFanStatusEntry.3
ciscoEnvMonSupplyStatusEntry.2
ciscoEnvMonSupplyStatusEntry.3
ciscoEnvMonSupplyStatusEntry.4
I tried with one of the plugin for cisco available from Nagios exchange :
./check_cisco_switch.pl -H 10.xx.xxx.xxx -C public -t temp -w 50 -c 60
Remote device does not return data for temp
i get the same message for other modes like cpu fan etc. Please advise
OID's for Environmental status is 1.3.6.1.4.1.9.9.13.1.3.1.6
Output from Device is below, MIBS are available in switch.
wp1pgsw01t#show snmp mib | in Env
ciscoEnvMonObjects.1
ciscoEnvMonVoltageStatusEntry.2
ciscoEnvMonVoltageStatusEntry.3
ciscoEnvMonVoltageStatusEntry.4
ciscoEnvMonVoltageStatusEntry.5
ciscoEnvMonVoltageStatusEntry.6
ciscoEnvMonVoltageStatusEntry.7
ciscoEnvMonTemperatureStatusEntry.2
ciscoEnvMonTemperatureStatusEntry.3
ciscoEnvMonTemperatureStatusEntry.4
ciscoEnvMonTemperatureStatusEntry.5
ciscoEnvMonTemperatureStatusEntry.6
ciscoEnvMonFanStatusEntry.2
ciscoEnvMonFanStatusEntry.3
ciscoEnvMonSupplyStatusEntry.2
ciscoEnvMonSupplyStatusEntry.3
ciscoEnvMonSupplyStatusEntry.4
I tried with one of the plugin for cisco available from Nagios exchange :
./check_cisco_switch.pl -H 10.xx.xxx.xxx -C public -t temp -w 50 -c 60
Remote device does not return data for temp
i get the same message for other modes like cpu fan etc. Please advise
Re: monitor switch device temperature and fan speed by OID
I'm not sure which plugin you are trying to use. So far there are 3 that you have tested.
Usually, the --help options are a good place to look at.
Code: Select all
check_nwc_health
check_snmp_temperature.pl
check_cisco_switch.pl
As for this, I think the error is what it says. You may have to contact the author using his GitHub to know it's exact functionality../check_cisco_switch.pl -H 10.xx.xxx.xxx -C public -t temp -w 50 -c 60
Remote device does not return data for temp
-
- Posts: 170
- Joined: Tue Sep 11, 2012 3:48 am
Re: monitor switch device temperature and fan speed by OID
Hi There,
i'm trying to use check_snmp_temperature.pl. For the same switch snmpwalk wizard is successful. But snmp gets time out here with below message. SNMPv3 protocol used in the second command. Environmental oid is 1.3.6.1.4.1.9.9.13.1.3.1.6. Or is there any other plugin we can use to get the data for Temp and Fan status ok/down
Nagios XI 5.2.2 Version
Switch Cisco
./check_snmp_temperature.pl -H xx.xx.xxx.xxx -C public -n internat-tempf.0 -d .1.3.6.1.4.1.9.9.13.1.3.1.6 -i 00F -o F -a tempf -w 85 -c 90
ERROR: Alarm signal (Nagios time-out)
./check_snmp_temperature.pl -v -H xx.xx.xxx.xxx --protocol=3 -l yyyyy -x xxxxx -L AuthNoPriv -t 15 -T cisco1 -a 1.3.6.1.4.1.9.9.13.1.3.1.6 -w 100 -c 120
Alarm at 10
SNMPv3 login
SNMPv3 AuthNoPriv login : wdpauth, AuthNoPriv
ERROR opening session: Unknown authProtocol specified [AuthNoPriv].
i'm trying to use check_snmp_temperature.pl. For the same switch snmpwalk wizard is successful. But snmp gets time out here with below message. SNMPv3 protocol used in the second command. Environmental oid is 1.3.6.1.4.1.9.9.13.1.3.1.6. Or is there any other plugin we can use to get the data for Temp and Fan status ok/down
Nagios XI 5.2.2 Version
Switch Cisco
./check_snmp_temperature.pl -H xx.xx.xxx.xxx -C public -n internat-tempf.0 -d .1.3.6.1.4.1.9.9.13.1.3.1.6 -i 00F -o F -a tempf -w 85 -c 90
ERROR: Alarm signal (Nagios time-out)
./check_snmp_temperature.pl -v -H xx.xx.xxx.xxx --protocol=3 -l yyyyy -x xxxxx -L AuthNoPriv -t 15 -T cisco1 -a 1.3.6.1.4.1.9.9.13.1.3.1.6 -w 100 -c 120
Alarm at 10
SNMPv3 login
SNMPv3 AuthNoPriv login : wdpauth, AuthNoPriv
ERROR opening session: Unknown authProtocol specified [AuthNoPriv].