Jump to content
coppit

[Plug-In] SNMP

125 posts in this topic Last Reply

Recommended Posts

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.

Share this post


Link to post

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

Share this post


Link to post

Hey Coppit,

 

If you contact me at adama@observium.org, we can have a go at making the sensors and filesystems automatically discovered and monitored.

 

:D

  • Upvote 1

Share this post


Link to post
On 4/15/2017 at 8:42 AM, adama said:

If you contact me at adama@observium.org, we can have a go at making the sensors and filesystems automatically discovered and monitored.

 

Sounds awesome. Will do.

Share this post


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

Share this post


Link to post

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
 

Share this post


Link to post
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

Share this post


Link to post

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

Share this post


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

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post
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

Share this post


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

Share this post


Link to post

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

Share this post


Link to post

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

Share this post


Link to post

 

2 hours ago, Squid said:

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

 

yessir.  

Share this post


Link to post
Posted (edited)

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

Share this post


Link to post

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)

 

Share this post


Link to post

 

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

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now