JSPWiki plugin for visualize SNMP status#

D.Yacenko plugins#

Please note that the community is a kind of password to access the service SNMP. I.e. it is desirable to limit the number of persons having access to the pages. Besides information about servers should be limited in terms of security.
This plugin based on framework snmp6_0.jar(info) provided Westhawk

This plugin intended for convenient display SNMP values from nodes. With this plugin, you can also build Diagram and timetables for some server values.

Parameters.#

  • host - host address from one us get SNMP statistics (by default 127.0.0.1)
  • port - UDP port on host, who listens to SNMP daemon (by default 161)
  • comm - SNMP community (by default public)
  • oid - OID information to collect (default .1.3.6.1.2.1.1.1.0). The attention we get from this node only 'value' (not subtree and so on)!
  • nonvalue - value returned if not have return value (by default - service not available).

Install.#

  1. copy files snmpplugin.jar(info) and snmp6_0.jar(info) to directory WEB-INF/lib
  2. append org.itx.jspwiki.plugin.snmp into file WEB-INF/jspwiki.properties in parameter jspwiki.plugin.searchPath
  3. restart JSPWiki

Example.#

[{SnmpStatus host='192.168.1.254' oid='1.3.6.1.2.1.1.1.0' nonvalue='server is down!!!'}]

Screenshot.#

On the screenshot shows the use of SNMPplugin conjunction with the JSPWiki: ImageGenJFreeChart for dynamic load servers charts.
[{ BarChartPlugin title='Servers load (LoadAverage 1min)' threed=true imap=true

:Servers|String, Load
office-hq1,[{SnmpStatus host='192.168.1.252' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
office-hq2,[{SnmpStatus host='192.168.1.253' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
office-hq3,[{SnmpStatus host='192.168.1.231' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
r-hq1,[{SnmpStatus host='192.168.1.254' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
r-hq2,[{SnmpStatus host='192.168.1.227' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
r-hq3,[{SnmpStatus host='192.168.1.235' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
r-hq4,[{SnmpStatus host='192.168.1.232' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
r-hq5,[{SnmpStatus host='192.168.1.233' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
r-hq6,[{SnmpStatus host='192.168.1.234' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]
r-gw1,[{SnmpStatus host='192.168.1.4' oid='.1.3.6.1.4.1.2021.10.1.3.1' nonvalue='0'}]

}]

screenshot.png

Additional.#

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
java
SnmpStatus.java 3.1 kB 1 17-Apr-2009 13:26 D.Yacenko
png
screenshot.png 15.0 kB 1 17-Apr-2009 13:18 D.Yacenko
jar
snmp6_0.jar 254.6 kB 1 17-Apr-2009 13:24 D.Yacenko
jar
snmpplugin.jar 3.4 kB 1 17-Apr-2009 13:25 D.Yacenko
« This page (revision-12) was last changed on 19-Sep-2009 20:16 by 86.110.183.146