[Plug-In] SNMP


Recommended Posts

  • 1 month later...
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.

Link to comment
  • 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

Link to comment
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.

Link to comment
  • 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
 
Link to comment
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
Link to comment
  • 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

Link to comment
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?

Link to comment
  • 2 weeks later...
  • 4 weeks later...

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.
Link to comment
  • 3 weeks later...
  • 4 weeks later...
  • 3 months later...
  • 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

Link to comment

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
Link to comment
  • 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

 

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.