avonki
29 December 2017 23:56
1
Hope someone can point me in the right direction:
I want to alert on the health status of an Dell iDrac.
SNMP Walk on a faulty iDrac (3 = OK, 5 = warning)
.1.3.6.1.4.1.674.10892.2.2.1.0 = INTEGER: 5
What I’ve tried:
$config[‘alert’][‘macros’][‘rule’][‘iDracHealthStatus’] = ‘%sensors.sensor_oid = “.1.3.6.1.4.1.674.10892.2.2.1.0”’;
GUI setup:
%macros.iDracHealthStatus = 1 && %sensors.sensor_current = 5
Log Results on a faulty device
Rule name: Macros-iDracHealthStatus-config.php
Alert rule: %macros.iDracHealthStatus = 1 && %sensors.sensor_current = 5
Alert query: SELECT * FROM sensors WHERE (sensors.device_id = ?) && ((sensors.sensor_oid = “.1.3.6.1.4.1.674.10892.2.2.1.0”) = 1 && sensors.sensor_current = 5 )
Rule match: no match
The above is not working, hoping for some input.
Thanks
What are you trying to alert on specifically on the dell server?
We have pre-built alert rules for Dell servers with Idrac. Look at the alerts collections. Also, you could use those as an example to help.
I think what you are trying to do would look something like this?
avonki
30 December 2017 03:29
4
Hi Kevin, thanks for the feedback. I’ve looked at the pre-built dell server rules but none report on the overall health of the system.
I want to report on the following as stated in the Dell iDRAC SNMP MIB document.
. . . see next post for more details . . . I can only include 1 image at a time.
avonki
30 December 2017 03:30
5
I’ve tested your suggestion above like
avonki
30 December 2017 03:31
6
But when I do a test run on the broken server I get:
avonki
30 December 2017 03:31
7
Here is a OID lookup tool results on that system:
Is that sensor showing in the web ui? If not then it needs to be added first.
avonki
30 December 2017 03:45
9
@Kevin_Krumm could you please kindly explain what you mean by “Is that sensor showing in the web ui”?
In the Web UI on that device dose, it show the sensor you are looking for? In order to alert off anything the device has to be in librenms and the sensors has to be supported.
For example
avonki
30 December 2017 03:49
11
Right, no its not showing under the state table. How can I add states?
So you could add support for it using this doc Home - LibreNMS Docs and make Pull Request in GitHub.
or
You can request it here Link and when someone has time they will attempt to add support. If you do please provide all the info asked for.
Also just throwing this out there too, we do have support for Dell’s Open Manage.
https://docs.librenms.org/#Extensions/Dell-OpenManage/
avonki
30 December 2017 03:58
14
Awesome thanks! I’m quite new to LibreNMS. Thanks for the pointers!
1 Like
Rosiak
30 December 2017 12:26
15
I’ll try to PR this later today.
1 Like
avonki
2 January 2018 20:29
16
So I ended up doing the following and the alerting is working, but the resource utilization on the server is through the roof! And I’m sometimes getting SQL timeouts or slow page loading when loading the WebUI. I’m not sure loading MIBs this way is a good idea? Any comments/advice would be apprecaited?
In the “config.php” I enabled
$config[‘poller_modules’][‘mib’] = 1;
And in the Rules WebGUI did the following:
%device_oids.object_type = “globalSystemStatus” && %device_oids.value != “ok”
Looks like you enabled MIB based polling which experimental and I don’t recommend it since it’s not maintained anymore. I recommend you wait for support for this sensor to be added. Or Look into installing Dell’s Open Manage, from our docs it provides lots of sensor data on Dell servers.
https://docs.librenms.org/#Extensions/Dell-OpenManage/
Rosiak
3 January 2018 18:59
18
I’ve created the following PR which should add support for what you have requested, hence no need for MIB polling.
librenms:master
← Rosiak:add-dell-sensor
opened 06:58PM - 03 Jan 18 UTC
DO NOT DELETE THIS TEXT
#### Please note
> Please read this information ca… refully. You can run `./scripts/pre-commit.php` to check your code before submitting.
- [X] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
https://community.librenms.org/t/reporting-on-a-oid-not-working/2921