Hi,
We are trying to monitor the datapower devices using snmpwalk. I've added the below command to the commands.cfg file and passing the host address and the MibName. The command is as follows:
/usr/bin/snmpwalk -On -v 2c -c public $HOSTADDRESS$ -m /usr/share/snmp/mibs/drStatusMIB.txt $MibName.
The output of the above command when 'dpStatusTemperatureSensorsTable' mib name is provided is as follows:
[nagios@NagisosServer static]$ /usr/bin/snmpwalk -On -v 2c -c public DataPowerDevice -m /usr/share/snmp/mibs/drStatusMIB.txt dpStatusTemperatureSensorsTable
.1.3.6.1.4.1.14685.3.1.141.1.1.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.49 = STRING: Temperature CPU1
.1.3.6.1.4.1.14685.3.1.141.1.1.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.50 = STRING: Temperature CPU2
.1.3.6.1.4.1.14685.3.1.141.1.1.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.49 = STRING: Temperature Inlet 1
.1.3.6.1.4.1.14685.3.1.141.1.1.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.50 = STRING: Temperature Inlet 2
.1.3.6.1.4.1.14685.3.1.141.1.1.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.49 = STRING: Temperature Outlet 1
.1.3.6.1.4.1.14685.3.1.141.1.1.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.50 = STRING: Temperature Outlet 2
.1.3.6.1.4.1.14685.3.1.141.1.1.84.101.109.112.101.114.97.116.117.114.101.32.83.121.115.116.101.109.32.65.109.98.105.101.110.116 = STRING: Temperature System Ambient
.1.3.6.1.4.1.14685.3.1.141.1.2.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.49 = INTEGER: 16 Degrees C
.1.3.6.1.4.1.14685.3.1.141.1.2.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.50 = INTEGER: 14 Degrees C
.1.3.6.1.4.1.14685.3.1.141.1.2.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.49 = INTEGER: 20 Degrees C
.1.3.6.1.4.1.14685.3.1.141.1.2.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.50 = INTEGER: 17 Degrees C
.1.3.6.1.4.1.14685.3.1.141.1.2.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.49 = INTEGER: 21 Degrees C
.1.3.6.1.4.1.14685.3.1.141.1.2.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.50 = INTEGER: 21 Degrees C
.1.3.6.1.4.1.14685.3.1.141.1.2.84.101.109.112.101.114.97.116.117.114.101.32.83.121.115.116.101.109.32.65.109.98.105.101.110.116 = INTEGER: 25 Degrees C
.1.3.6.1.4.1.14685.3.1.141.1.3.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.49 = INTEGER: 85
.1.3.6.1.4.1.14685.3.1.141.1.3.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.50 = INTEGER: 85
.1.3.6.1.4.1.14685.3.1.141.1.3.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.49 = INTEGER: 52
.1.3.6.1.4.1.14685.3.1.141.1.3.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.50 = INTEGER: 52
.1.3.6.1.4.1.14685.3.1.141.1.3.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.49 = INTEGER: 62
.1.3.6.1.4.1.14685.3.1.141.1.3.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.50 = INTEGER: 62
.1.3.6.1.4.1.14685.3.1.141.1.3.84.101.109.112.101.114.97.116.117.114.101.32.83.121.115.116.101.109.32.65.109.98.105.101.110.116 = INTEGER: 57
.1.3.6.1.4.1.14685.3.1.141.1.4.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.49 = INTEGER: 90
.1.3.6.1.4.1.14685.3.1.141.1.4.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.50 = INTEGER: 90
.1.3.6.1.4.1.14685.3.1.141.1.4.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.49 = INTEGER: 62
.1.3.6.1.4.1.14685.3.1.141.1.4.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.50 = INTEGER: 62
.1.3.6.1.4.1.14685.3.1.141.1.4.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.49 = INTEGER: 72
.1.3.6.1.4.1.14685.3.1.141.1.4.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.50 = INTEGER: 72
.1.3.6.1.4.1.14685.3.1.141.1.4.84.101.109.112.101.114.97.116.117.114.101.32.83.121.115.116.101.109.32.65.109.98.105.101.110.116 = INTEGER: 67
.1.3.6.1.4.1.14685.3.1.141.1.5.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.49 = INTEGER: ok(4)
.1.3.6.1.4.1.14685.3.1.141.1.5.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.50 = INTEGER: ok(4)
.1.3.6.1.4.1.14685.3.1.141.1.5.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.49 = INTEGER: ok(4)
.1.3.6.1.4.1.14685.3.1.141.1.5.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.50 = INTEGER: ok(4)
.1.3.6.1.4.1.14685.3.1.141.1.5.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.49 = INTEGER: ok(4)
.1.3.6.1.4.1.14685.3.1.141.1.5.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.50 = INTEGER: ok(4)
.1.3.6.1.4.1.14685.3.1.141.1.5.84.101.109.112.101.114.97.116.117.114.101.32.83.121.115.116.101.109.32.65.109.98.105.101.110.116 = INTEGER: ok(4)
.1.3.6.1.4.1.14685.3.1.141.1.6.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.49 = INTEGER: 88
.1.3.6.1.4.1.14685.3.1.141.1.6.84.101.109.112.101.114.97.116.117.114.101.32.67.80.85.50 = INTEGER: 88
.1.3.6.1.4.1.14685.3.1.141.1.6.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.49 = INTEGER: 58
.1.3.6.1.4.1.14685.3.1.141.1.6.84.101.109.112.101.114.97.116.117.114.101.32.73.110.108.101.116.32.50 = INTEGER: 58
.1.3.6.1.4.1.14685.3.1.141.1.6.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.49 = INTEGER: 68
.1.3.6.1.4.1.14685.3.1.141.1.6.84.101.109.112.101.114.97.116.117.114.101.32.79.117.116.108.101.116.32.50 = INTEGER: 68
.1.3.6.1.4.1.14685.3.1.141.1.6.84.101.109.112.101.114.97.116.117.114.101.32.83.121.115.116.101.109.32.65.109.98.105.101.110.116 = INTEGER: 63
Attached the Nagios output also.
We want to know if nagios is capable of providing a table view as in the attached screenshot and also if the existing check we setup will alert if any of the OK's will turn to FAIL.
Thanks!!
DataPower Device Monitoring using Nagios
DataPower Device Monitoring using Nagios
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: DataPower Device Monitoring using Nagios
Hello, @vy3734. No, Nagios will not be able to recognize and send a notification if any OK result changes to Fail. You need to find or write a script that will parse the snmp walk output and exit with a critical code(2) if something is in a failing state. I highly recommend looking on the http://www.nagiosexchange.com for already existing plugin written for your device.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: DataPower Device Monitoring using Nagios
Thanks for the clarification. Much appreciated!
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: DataPower Device Monitoring using Nagios
Hi @vy3734,
Do you have anymore questions, or can we close the forum topic? Please let us know.Thanks for the clarification. Much appreciate
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!