DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:snmplive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:snmplive [2010-10-09 10:11] gturriplugin:snmplive [2017-11-25 21:16] (current) Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Fetches SNMP values on the network and displays them live through ajax.+description: Fetches SNMP values on the network and displays them live through Ajax
 author     : Michael Luggen author     : Michael Luggen
 email      : michael.luggen@unifr.ch email      : michael.luggen@unifr.ch
Line 15: Line 15:
 ---- ----
  
-//based on the [[plugin:xfortune|xfortune-plugin]]//+//Based on the [[plugin:xfortune|xfortune-plugin]].//
  
-It gets the actual [[http://en.wikipedia.org/wiki/Simple_Network_Management_Protocol|SNMP]] values out of any by the server reachable device (e.g. servers, printers, temp. sensors). I wrote this plugin to realize an easy to set-up server-admin dashboard.+It gets the actual [[wp>Simple_Network_Management_Protocol|SNMP]] values out of any by the server reachable device (e.g. servers, printers, temp. sensors). I wrote this plugin to realize an easy to set-up server-admin dashboard.
  
 ===== Usage ===== ===== Usage =====
 +
 You need the IP of the device and the exact oid... NEW: You can now also set the community. You need the IP of the device and the exact oid... NEW: You can now also set the community.
  
Line 25: Line 26:
  
 ==== Collection of interesting OID's ==== ==== Collection of interesting OID's ====
 +
   * http://www.oidview.com/mibs/0/Printer-MIB.html   * http://www.oidview.com/mibs/0/Printer-MIB.html
   * .1.3.6.1.2.1.43.16.5.1.2.1.1 as example shows whats on the Display  of a Brother HL-2700CN   * .1.3.6.1.2.1.43.16.5.1.2.1.1 as example shows whats on the Display  of a Brother HL-2700CN
Line 66: Line 68:
             'name'   => 'SNMPlive Plugin',             'name'   => 'SNMPlive Plugin',
             'desc'   => 'Updates various SNMP data live.',             'desc'   => 'Updates various SNMP data live.',
-            'url'    => 'http://www.dokuwiki.org/plugin:gallery',+            'url'    => 'http://www.dokuwiki.org/plugin:snmplive',
         );         );
     }     }
Line 270: Line 272:
  
  --- //[[glen@alkohol.ee|Elan Ruusamäe]] 2007-08-29//  --- //[[glen@alkohol.ee|Elan Ruusamäe]] 2007-08-29//
 +
 +A prerequisite for this plugin is the snmp package for php5.
 +On a Debian system you could do
 +
 +  apt-get install php5-snmp
 +
 + --- //[[p002748@googlemail.com|Robert S.]] 2011-08-30//
 +  
 +Can anyone guide me how to sum several snmplive outputs in dokuwiki? 
 +
 + --- //[[w*@yahoo.com|lolo]] 2015-03-14//
 +
 +I finally figured it out. You will need [[plugin:tablecalc|tablecalc plugin]] or something similar:
 +   ~~NOCACHE~~
 +  |**PDU1**|<snmplive ip="192.168.1.61" oid=".1.3.6.1.4.1.1718.3.2.2.1.12.1.1" community="public"><html>&nbsp;</html> watts|
 +  |**PDU2**|<snmplive ip="192.168.1.62" oid=".1.3.6.1.4.1.1718.3.2.2.1.12.2.1" community="public"><html>&nbsp;</html> watts|
 +  |**PDU3**|<snmplive ip="192.168.1.63" oid=".1.3.6.1.4.1.1718.3.2.2.1.12.1.1" community="public"><html>&nbsp;</html> watts|
 +  |**PDU4**|<snmplive ip="192.168.1.64" oid=".1.3.6.1.4.1.1718.3.2.2.1.12.2.1" community="public"><html>&nbsp;</html> watts|
 +  |**Total input feed:**| ~~=r0c1+r1c1+r2c1+r3c1~~<html>&nbsp;</html> watts|
 +  |**Annual cost estimate based on the total power consumption of the system at this load (11¢/kW):**|$~~=round(r4c1*24*0.365*0.11,2)~~/year|
 +  
 + --- //[[w*@yahoo.com|lolo]] 2015-05-1//
 +
 +  --- //[[na@googlemail.com|leeb]] 2015-06-17//
 +
 +I am struggling to get any output. If I run the command for SNMPGET from command line I get the expected result\\
 +But running in Dokuwiki I get\\
 +Warning: snmpget(): No response from xxxxx in /var/www/dokuwiki/lib/plugins/snmplive/syntax.php on line 104\\
 +
 +  --- //[[na@googlemail.com|leeb]] 2015-06-17//
plugin/snmplive.1286611889.txt.gz · Last modified: 2010-10-09 10:11 by gturri

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki