Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plug-In] SNMP

Featured Replies

I'm hoping I haven't missed this information somewhere, but is there a way to get disk temperature of disks that are not in the array (i.e. in pools) ? I can only see array drives when I do

 

snmpwalk -v 2c localhost -O n -c public 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."disktemp"'

 

Already tried adding 

 

disk /mnt/pool

 

to the SNMP configuration (the pool is called pool 🙂) but nothing...

 

Any advice?

  • Replies 391
  • Views 137.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • kubed_zero
    kubed_zero

    Created a pull request for the Coppit package on GitHub https://github.com/coppit/unraid-snmp/pull/6 but it doesn't seem like they've been active since August 2018 on here or on GitHub.   Wi

  • kubed_zero
    kubed_zero

    That is an Unraid-specific executable as far as I'm aware, so I think trying to get it showing up there would be a dead end. On the other hand, you don't actually need mdcmd to get disk temp. Tha

  • Thanks a bunch, kubed_zero! I ended up modifying that disk_temps.sh script to also include the drives that were missing before and pointed SNMP to that modified copy.    Man, if only there w

Posted Images

9 minutes ago, d0rh4ns said:

I'm hoping I haven't missed this information somewhere, but is there a way to get disk temperature of disks that are not in the array (i.e. in pools) ? I can only see array drives when I do

 

snmpwalk -v 2c localhost -O n -c public 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."disktemp"'

 

Already tried adding 

 

disk /mnt/pool

 

to the SNMP configuration (the pool is called pool 🙂) but nothing...

 

Any advice?


There is a separate standalone script that parses the output of "mdcmd status" to determine what disks are installed: https://github.com/kubedzero/unraid-snmp/blob/main/source/usr/local/emhttp/plugins/snmp/disk_temps.sh#L52C18-L52C30
 

 here is some more information on the output of the mdcmd command

The SNMP configuration only will adjust the free/used disk space output and won't add on disk temperature. 

First of all, thanks for the super quick reply!!!

 

So what I'm getting from this is that mdcmd status only outputs array disks and no cache pools etc. 

What I don't quite understand is if there's a way to get those drives in there and if so, how. 

Edited by d0rh4ns

8 hours ago, d0rh4ns said:

First of all, thanks for the super quick reply!!!

 

So what I'm getting from this is that mdcmd status only outputs array disks and no cache pools etc. 

What I don't quite understand is if there's a way to get those drives in there and if so, how. 

That is an Unraid-specific executable as far as I'm aware, so I think trying to get it showing up there would be a dead end.

On the other hand, you don't actually need mdcmd to get disk temp. That responsibility is held by smartctl, which is not unraid-specific. You just give it a disk mount point (aka /dev/sdb) and then it will report back temperature and SMART information https://github.com/kubedzero/unraid-snmp/blob/main/source/usr/local/emhttp/plugins/snmp/disk_temps.sh#L120

So you could make a script that determines what the non-pool drives are mounted as, and then calls smartctl for those /dev/sdX  paths. And then if you added that script to your SNMP config, it would start to show up in SNMP.

smartctl can actually do a scan for attached devices, aka `smartctl --scan` so you could always start there as well.

 

Hope that makes sense! Feel free to browse through the Github code for the disk temp script for further insight.

Thanks a bunch, kubed_zero! I ended up modifying that disk_temps.sh script to also include the drives that were missing before and pointed SNMP to that modified copy. 

 

Man, if only there was a proper UnRAID API to not have to deal with hacky workarounds like this.

1 hour ago, d0rh4ns said:

Thanks a bunch, kubed_zero! I ended up modifying that disk_temps.sh script to also include the drives that were missing before and pointed SNMP to that modified copy. 

 

Man, if only there was a proper UnRAID API to not have to deal with hacky workarounds like this.

Nice. Just in case you weren't aware, the modifications will be reset on each reboot, so you'll probably want to make a copy of the modified script on the /boot USB drive and then reference that script in your SNMP config instead of the default one.

Also, if your fix is generalized, feel free to submit a pull request and I can see about adding this for wider usage 😇

  • 7 months later...

Hi,

i have installed the plugin and have installed a new virtual machine for prtg. 

The auto discovery search have a many result of datas over snmp. 

For me, the important thing is the temperature from the hdd´s and nvme´s. Unraid shows me that, but i want it in prtg. 

Does anyone know, how i add this information? Is the temperature a information from the snmp plugin?

  • 2 months later...

I have installed the SNMP plugin on UnRAID.  When I try to add the device to Observium, I get "No reply on given community".  I've tried blank and public. I'm also tried Skip Ping on and off, to no avail.

 

So, I wanted to chck the SNMP configuration and I cannot find that anywhere in UnRAID.  Where do I manage/configure SNMP?

1 hour ago, BeaconGroup said:

I have installed the SNMP plugin on UnRAID.  When I try to add the device to Observium, I get "No reply on given community".  I've tried blank and public. I'm also tried Skip Ping on and off, to no avail.

 

So, I wanted to chck the SNMP configuration and I cannot find that anywhere in UnRAID.  Where do I manage/configure SNMP?


The Settings>SNMP page allows you to modify the configuration. You can also edit it directly at /etc/snmp/snmpd.conf (though this will not persist between reboots). See my Github repo for more details https://github.com/kubedzero/unraid-snmp/tree/main

  • 3 weeks later...

Has anyone had any success pulling values over SNMP into Home Assistant? I have the plugin setup and running well, can see info in Observium, but I'd like to integrate everything into my home assistant instance. Unless I'm blind, I can't see what OID Observium is pulling from. Any ideas?

  • 3 months later...
On 4/22/2024 at 3:04 PM, kubed_zero said:


The Settings>SNMP page allows you to modify the configuration. You can also edit it directly at /etc/snmp/snmpd.conf (though this will not persist between reboots). See my Github repo for more details https://github.com/kubedzero/unraid-snmp/tree/main

I went to the Settings | SNMP page and verified it listed public as the community. (rocommunity public)  However, I still do not get any replies when trying to add to Observium.  I am using SNMP v2c, port 161 (default) and public (default) community.

Is this based on SNMP v2c?

I have no issues with Unraid's SNMP support. I am using v2c in my environment. To verify that it is working as expected, I am running this command against it: snmpwalk -v2c -c public <unraid server's ip address>

  • 1 month later...

Anyone having issues on 7.0.0 beta 4?

 

Installation logs:

+============================================================================== | Testing SNMP by listing mounts, /boot should be present +============================================================================== snmpwalk -v 2c localhost -c zabbix@snmp1 hrFSMountPoint snmpwalk failureCouldn't find /boot mount point. SNMP output: snmpwalk: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory plugin: run failed: '/bin/bash' returned 1 Executing hook script: post_plugin_checks

1 hour ago, dgaglioni said:

Anyone having issues on 7.0.0 beta 4?

 

Installation logs:

+============================================================================== | Testing SNMP by listing mounts, /boot should be present +============================================================================== snmpwalk -v 2c localhost -c zabbix@snmp1 hrFSMountPoint snmpwalk failureCouldn't find /boot mount point. SNMP output: snmpwalk: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory plugin: run failed: '/bin/bash' returned 1 Executing hook script: post_plugin_checks

I haven't tried building or running this on 7.x yet but I'll take a look when I have some time and cap the existing version and then release a new version if it's needed. Thanks for reporting this!

The libssl.so.1.1 error is related to SSL v1 not being found, probably because Unraid 7 uses SSL v3 now.

Edited by kubed_zero
added SSL error info

All right @dgaglioni I've updated the plugin to support v7, the trick was to update the SNMP and Perl library dependencies to the latest version. I suspect this will break compatibility with Unraid v6 as it only comes bundled with SSLV1 while Unraid v7 comes with SSLV3, so I've set the minimum version of the update to 7.0.0-beta.1. As always, it can be downloaded from https://github.com/kubedzero/unraid-snmp/raw/refs/heads/main/snmp.plg

 

For those that don't plan to upgrade to v7 and don't want to see the "Update Available" notification that will never succeed due to the old Unraid version, I have an end-of-life branch that can be used instead of the main branch: https://github.com/kubedzero/unraid-snmp/raw/refs/heads/eol/snmp.plg. It was previously pinned to the last release supporting Unraid 6.9.3, but now supports 6.11.0 to 6.12.13

The changes you've made to support v7 are generating a "* snmp.plg Not Compatible with Unraid version 6.12.13" error from the Fix Common Problems plugin.

Not everyone is going to upgrade to v7 straight away and will possibly wait for even 7.0.1. Can you adjust the code so we're not getting this false-positive error on a daily/weekly basis? I'm currently on 6.12.13

Edited by opticon

16 minutes ago, opticon said:

The changes you've made to support v7 are generating a "* snmp.plg Not Compatible with Unraid version 6.12.13" error from the Fix Common Problems plugin.

Not everyone is going to upgrade to v7 straight away and will possibly wait for even 7.0.1. Can you adjust the code so we're not getting this false-positive error on a daily/weekly basis? I'm currently on 6.12.13

@opticon see what I wrote just above your message:

On 11/1/2024 at 8:56 AM, kubed_zero said:

For those that don't plan to upgrade to v7 and don't want to see the "Update Available" notification that will never succeed due to the old Unraid version, I have an end-of-life branch that can be used instead of the main branch: https://github.com/kubedzero/unraid-snmp/raw/refs/heads/eol/snmp.plg

 

I saw that but that doesn't fix the problem lol I said I will upgrade to v7 albeit not straight away and there's not a release date yet so it's a false alert that's being created due to the code change 🤷‍♂️
If I change it to your dead branch then I've got to remember to change it again for v7?

Edited by opticon

6 minutes ago, opticon said:

If I change it to your dead branch then I've got to remember to change it again for v7?

Correct. You'll have to reinstall anyway because the current version will break when upgrading to v7 due to the removed SSL library in the new version, moving it into the "install errors" plugin folder. It would have been nice to have a release of Unraid with both versions so there could be a transition period, but alas.

It's possible to do some switching on the Unraid version number and install different package versions based on the Unraid OS version, but I'm not able to work on that right now. Feel free to submit a pull request if you want! It shouldn't be too bad, the open-vm-tools plugin does something similar. Some switching logic that could install one set of plugins for Unraid 6.x and one set of plugins for Unraid 7.x

  • 3 weeks later...

Hi, I previously installed this and when I checked the plugins page it says incompatible update. I removed it and hoped to see a new compatible version but I got nothing when I searched SNMP in the community apps page. 

Edited by HHUBS

2 hours ago, HHUBS said:

Hi, I previously installed this and when I checked the plugins page it says incompatible update. I removed it and hoped to see a new compatible version but I got nothing when I searched SNMP in the community apps page. 

Yeah, the way Unraid is doing updates, the plugin is in a weird state where it only works with a single version at a time. 

On 11/7/2024 at 6:48 PM, kubed_zero said:

It's possible to do some switching on the Unraid version number and install different package versions based on the Unraid OS version, but I'm not able to work on that right now. Feel free to submit a pull request if you want! It shouldn't be too bad, the open-vm-tools plugin does something similar. Some switching logic that could install one set of plugins for Unraid 6.x and one set of plugins for Unraid 7.x

If you want to try this, I'm fully supportive.

Otherwise, install the 6.x version with https://github.com/kubedzero/unraid-snmp/raw/refs/heads/eol/snmp.plg or the 7.x version with https://raw.githubusercontent.com/kubedzero/unraid-snmp/refs/heads/main/snmp.plg

19 hours ago, kubed_zero said:

Yeah, the way Unraid is doing updates, the plugin is in a weird state where it only works with a single version at a time. 

If you want to try this, I'm fully supportive.

Otherwise, install the 6.x version with https://github.com/kubedzero/unraid-snmp/raw/refs/heads/eol/snmp.plg or the 7.x version with https://raw.githubusercontent.com/kubedzero/unraid-snmp/refs/heads/main/snmp.plg

Thanks. I installed the plugin for unraid 6.x version. 

hi, i had the same problem. I deleted the addon and wanted to reinstall the EOL version for 6.xx.
at the installer i get this error message, had someone the same problem? if yes how did ya fix it.
image.png.8c88d4a92079ea6b1ada5538995c5cd2.png

18 minutes ago, sirgerritlad said:

hi, i had the same problem. I deleted the addon and wanted to reinstall the EOL version for 6.xx.
at the installer i get this error message, had someone the same problem? if yes how did ya fix it.
image.png.8c88d4a92079ea6b1ada5538995c5cd2.png

What version of Unraid are you running? Can you reboot and try to reinstall the plugin?

25 minutes ago, kubed_zero said:

What version of Unraid are you running? Can you reboot and try to reinstall the plugin?

Hey, im running on 6.12.6. 
The restart did resolve the problem, very thank you :).

I really did not want to restart the server because of all the services but everything worked out.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.