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

That's great. Thank you.

 

  • 1 month later...
  • Replies 391
  • Views 137.4k
  • 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

  • Author
On 3/27/2017 at 4:32 AM, zin105 said:

Timeout: No Response from localhost

 

For some reason your machine can't talk to itself. What happens if you log into the server and run "ping localhost"? If that works, try "curl -I http://localhost/" (that's a capital eye, not an el). It should say "Server: emhttp" on the second line.

  • 2 weeks later...

Coppit,

 

thanks for continuation of this plugin. I much prefer the use of SNMP over other tools.  Is there a list of MIB's or OID definitions somewhere that are used? I am specifically looking to track and monitor CPU temperature. My motherboard and UnRaid do no play well with temp monitoring.  Also anything FAN related would be awesome too - just to monitor speeds and change in speeds.  Motherboard is https://www.supermicro.com/products/motherboard/xeon/c600/x10dai.cfm

Hey Coppit,

 

If you contact me at [email protected], we can have a go at making the sensors and filesystems automatically discovered and monitored.

 

:D

  • Author
On 4/15/2017 at 8:42 AM, adama said:

If you contact me at [email protected], we can have a go at making the sensors and filesystems automatically discovered and monitored.

 

Sounds awesome. Will do.

  • Author
On 4/12/2017 at 9:40 AM, icemansid said:

Is there a list of MIB's or OID definitions somewhere that are used? I am specifically looking to track and monitor CPU temperature.

 

No, sorry. To be honest I'm a bit of an SNMP noob, and just got the basics working for Observium.

  • 2 weeks later...

Has anybody figured out how to get SMART disk temps to be reported to Observium via SNMP?  I'm seeing basically what others in the thread have seen: running the commands manually work and report disk temps, but the temps not showing up in Observium.

 

root@Tower:~# /usr/local/emhttp/plugins/snmp/drive_temps.sh
ST5000LM000-2AN170_WCJ01K50: 29
ST5000LM000-2AN170_WCJ02FA8: 29
ST5000LM000-2AN170_WCJ01JAC: 29
ST5000LM000-2AN170_WCJ02A77: 29
ST5000LM000-2AN170_WCJ02N74: 30
ST5000LM000-2AN170_WCJ01GDL: 29
ST5000LM000-2AN170_WCJ02ANT: 27
ST5000LM000-2AN170_WCJ02QK7: 30
 
Quote

I get this error when trying to install this plugin;

 


+==============================================================================
| Testing SNMP by listing mounts
+==============================================================================
Couldn't find /boot mount point in SNMP output. Output:
Timeout: No Response from localhost


plugin: run failed: /bin/bash retval: 1

 

On 29/03/2017 at 5:47 AM, coppit said:

 

For some reason your machine can't talk to itself. What happens if you log into the server and run "ping localhost"? If that works, try "curl -I http://localhost/" (that's a capital eye, not an el). It should say "Server: emhttp" on the second line.

 

I'm having the same issue as Zin105, however only when I reboot my server.

Once it is up I can install the plugin without problems and it runs correctly. On the next reboot however I get the same error message and the plugin is removed automatically.

 

I can ping localhost and curl I returns the below;

 

Quote

 

~# curl -I http://localhost/

HTTP/1.1 501 Not Implemented

Server: emhttp

Connection: close

Content-Type: text/plain

Content-Length: 19

 

 

Any ideas?

 

***Edit 27/4***

Interesting/strange find: I rebooted my server this morning, the plugin uninstalled automatically (as I expected), but without reinstalling it Observium is seeing the device as online and collecting data from it... 

Edited by FFV

  • 3 months later...

Hello

 

Installation is impossible ...

 

plugin: installing: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg
plugin: downloading https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg
plugin: downloading: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg ... done
This plugin requires perl. The easiest way to get it is to install NerdPack:
http://lime-technology.com/forum/index.php?topic=37541.0

Exiting


plugin: run failed: /bin/bash retval: 1

Tanks for helping

1 hour ago, NY152 said:

Hello

 

Installation is impossible ...

 


plugin: installing: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg
plugin: downloading https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg
plugin: downloading: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg ... done
This plugin requires perl. The easiest way to get it is to install NerdPack:
http://lime-technology.com/forum/index.php?topic=37541.0

Exiting


plugin: run failed: /bin/bash retval: 1

Tanks for helping

 

Did you install the NerdPack plugin and set it to install Perl?

Yes

  • 2 weeks later...

I've got this done so much. I'm stuck. what i need do to add my device?

unraidobservium.png

  • 4 weeks later...

so i've got the plugin installed, but where do i configure it? ACL, permissions, community string, etc..

tldr; it appears the information is static?

 

 

The plugin's icon doesn't display in the Plugins page of the webGUI now that I've installed unRAID 6.4.0rc8q. I've tried un-installing and re-installing via Community Applications but that didn't help. It displays properly on unRAID 6.3.5.

 

Plugins.png

 

EDIT: I'm seeing this in my syslog:

 

Sep 17 22:25:37 Mandaue nginx: 2017/09/17 22:25:37 [crit] 12080#12080: *4445 stat() "/usr/local/emhttp/plugins/snmp/snmp.png" failed (13: Permission denied), client: fe80::812:3b1f:ad19:da87, server: , request: "GET /plugins/snmp/snmp.png HTTP/1.1", host: "mandaue.local", referrer: "http://mandaue.local/Plugins"

 

so it looks like a permissions issue. I'll investigate further.

 

EDIT 2:

 

The permissions of the /usr/local/emhttp/plugins/snmp directory are different from its siblings:

 

drwxr-xr-x  7 root    root  300 Sep 17 22:33 preclear.disk/

drwxrwx---  2 root    root  140 Sep  7 17:24 snmp/

drwxr-xr-x  6 root    root  240 Jul 22 12:47 tips.and.tweaks/

 

meaning that only root can read its contents. Changing the mode to 755 fixed the problem but it will return when I reboot. I can't find what needs to be edited on the boot flash device. Perhaps the difference is that the old web server ran with UID root while nginx runs with a UID with fewer permissions?

 

Edited by John_M
Added error message. Added results of further investigation.

  • 3 weeks later...

FWIW, it's exactly the same after upgrading to unRAID 6.4.0-rc9f.

  • 4 weeks later...

And also with -rc10b. I've added

chmod 755 /usr/local/emhttp/plugins/snmp

to my go file to get rid of the error messages.

  • 3 months later...
And also with -rc10b. I've added
chmod 755 /usr/local/emhttp/plugins/snmp

to my go file to get rid of the error messages.

Is it the same with 6.4.1?

Sent from my LG-H990 using Tapatalk

15 hours ago, ars92 said:

Is it the same with 6.4.1?
 

 

Yes, it is. I upgraded one server directly from 6.3.5 to 6.4.1 and had to add the same line to my go file to stop the error messages in my syslog.

  • 4 months later...

I've tried to install this plugin, but each time I get the following error.  

 

Couldn't find /boot mount point in SNMP out.  Output:

End of MIB

 

plugin: run failed: /bin/bash retval: 1

 

Anyone familiar with this error or how to fix it?  I've scoured the internet, I have perl installed.

snmp install error.png

 

2 hours ago, Squid said:

Shot in the dark, but can you access your flash drive?

 

yessir.  

I’ve just upgraded to 6.5.3 and plugin wont run now

un 12 20:08:23 Nas root: plugin: skipping: /boot/packages/net-snmp-5.7.3-x86_64-4.txz already exists
Jun 12 20:08:23 Nas root: plugin: running: /boot/packages/net-snmp-5.7.3-x86_64-4.txz
Jun 12 20:08:23 Nas root: 
Jun 12 20:08:23 Nas root: +==============================================================================
Jun 12 20:08:23 Nas root: | Installing new package /boot/packages/net-snmp-5.7.3-x86_64-4.txz
Jun 12 20:08:23 Nas root: +==============================================================================
Jun 12 20:08:23 Nas root: 
Jun 12 20:08:23 Nas root: Verifying package net-snmp-5.7.3-x86_64-4.txz.
Jun 12 20:08:23 Nas root: Installing package net-snmp-5.7.3-x86_64-4.txz:
Jun 12 20:08:23 Nas root: PACKAGE DESCRIPTION:
Jun 12 20:08:23 Nas root: # net-snmp (Simple Network Management Protocol tools)
Jun 12 20:08:23 Nas root: #
Jun 12 20:08:23 Nas root: # Various tools relating to the Simple Network Management Protocol:
Jun 12 20:08:23 Nas root: #
Jun 12 20:08:23 Nas root: # An extensible agent
Jun 12 20:08:23 Nas root: # An SNMP library
Jun 12 20:08:23 Nas root: # Tools to request or set information from SNMP agents
Jun 12 20:08:23 Nas root: # Tools to generate and handle SNMP traps
Jun 12 20:08:23 Nas root: # A version of the UNIX 'netstat' command using SNMP
Jun 12 20:08:23 Nas root: # A graphical Perl/Tk/SNMP based mib browser
Jun 12 20:08:23 Nas root: #
Jun 12 20:08:24 Nas root: Executing install script for net-snmp-5.7.3-x86_64-4.txz.
Jun 12 20:08:24 Nas root: Package net-snmp-5.7.3-x86_64-4.txz installed.
Jun 12 20:08:24 Nas root: 
Jun 12 20:08:24 Nas root: 
Jun 12 20:08:24 Nas root: plugin: creating: /usr/local/emhttp/plugins/snmp/snmp.png - downloading from URL https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.png
Jun 12 20:08:34 Nas root: plugin: downloading: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.png ...#015plugin: downloading: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.png ... failed (Network failure)
Jun 12 20:08:34 Nas root: plugin: wget: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.png download failure (Network failure)
Jun 12 20:0

 

Edited by rorton
edit to code

Ive deleted the plugin marked as bad, and then reinstalled it from community applications, and its working now, odd..

 

Still have the issue with the image not appearing that needs permission change (cant remember what it was)

 

  • 2 weeks later...

 

I'm also getting the " Timeout: No Response from localhost" error. Plugin stopped working a few days ago, and now I can't re-install it. I was able to removepkg the dependencies in case it was an issue with net-snmp or something, but a fresh install fails (see below). DNS resolution is just fine (ping localhost works without issue).

 

 plugin: installing: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg
plugin: downloading https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg
plugin: downloading: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg ... done

+==============================================================================
| Installing new package /boot/packages/libnl-1.1.4-x86_64-1.txz
+==============================================================================

Verifying package libnl-1.1.4-x86_64-1.txz.
Installing package libnl-1.1.4-x86_64-1.txz:
PACKAGE DESCRIPTION:
# libnl (netlink socket library)
#
# libnl is a library for applications dealing with netlink sockets.
# The library provides an interface for raw netlink messaging and
# various netlink family specific interfaces.
#
# Homepage: http://people.suug.ch/~tgr/libnl/
#
#
Executing install script for libnl-1.1.4-x86_64-1.txz.
Package libnl-1.1.4-x86_64-1.txz installed.



+==============================================================================
| Installing new package /boot/packages/net-snmp-5.7.3-x86_64-4.txz
+==============================================================================

Verifying package net-snmp-5.7.3-x86_64-4.txz.
Installing package net-snmp-5.7.3-x86_64-4.txz:
PACKAGE DESCRIPTION:
# net-snmp (Simple Network Management Protocol tools)
#
# Various tools relating to the Simple Network Management Protocol:
#
# An extensible agent
# An SNMP library
# Tools to request or set information from SNMP agents
# Tools to generate and handle SNMP traps
# A version of the UNIX 'netstat' command using SNMP
# A graphical Perl/Tk/SNMP based mib browser
#
Executing install script for net-snmp-5.7.3-x86_64-4.txz.
Package net-snmp-5.7.3-x86_64-4.txz installed.


+==============================================================================
| Updating /etc/rc.d/rc.snmpd to use our config file, and to reduce logging
+==============================================================================
Shutting down snmpd: .............................. DONE
Starting snmpd: /usr/sbin/snmpd -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -LF w /var/log/snmpd.log -A -p /var/run/snmpd -a -c /usr/local/emhttp/plugins/snmp/snmpd.conf


+==============================================================================
| Testing SNMP by listing mounts
+==============================================================================
Couldn't find /boot mount point in SNMP output. Output:
Timeout: No Response from localhost


plugin: run failed: /bin/bash retval: 1

 

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.