» tagged pages
» logout

(Feed found, click Add Page to syndicate.) Error finding feed, please try again » Find feed title

A Blog Page allows you to add entries, for news or other time sensitive postings

(Login required to save to your tagged pages.)
(or Cancel)

Make further edits, (or Cancel)

(Login required to save to your tagged pages.)
(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

Change Page Permissions? Changing these permissions will adjust who can modify this page.

Anonymous (change)
Swik Users (change)
(or Cancel)
Upload an image from your computer:
or Copy an image from a URL:
or Erase the current icon:
Icon Preview:

or Cancel

Erase opennms? The contents of opennms page and all pages directly attached to opennms will be erased.

or Cancel

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:
opennms

OpenNMS(tm)

Tags Applied to opennms

No one has tagged this page.

OpenNMS is the first enterprise-grade network management platform developed using the open source model.

The OpenNMS Community
www.opennms.org
GNU General Public License (GPL)

sorted by: recent | see : popular
Content Tagged opennms

Thresholding

add a simple node based threshold example

opennms: OpenNMS - Recent Changes

Performance tuning

fixed outage deletion

opennms: OpenNMS - Recent Changes

HostResourcesSwRunMonitor

Initial revision

opennms: OpenNMS - Recent Changes

HostResourcesSwRunMonitor

Jeffg: Initial revision


== Description ==
This poller monitor's job is to monitor the running state of one or more processes. It does this via SNMP by inspecting the ''hrSwRunTable'' of the [http://www.ietf.org/rfc/rfc2790 HOST-RESOURCES-MIB], matching values of ''hrSwRunName'' against a configured string, and for rows that match comparing the value of ''hrSwRunState'' against an optional numeric value.

== Prerequisites ==
This monitor uses SNMP to accomplish its work. Therefore systems against which it is to be used must have an SNMP agent installed and configured. If OpenNMS is able to discover and collect data from the SNMP service on a given node, then that first requirement has almost certainly been met. Furthermore, the SNMP agent on the system must support the HOST-RESOURCES-MIB; most modern SNMP agents (including most distributions of the Net-SNMP agent and the SNMP service that ships with Microsoft Windows) support this MIB. Out-of-box support for HOST-RESOURCES-MIB among commercial Unix operating systems may be somewhat spotty.

==HostResourceSwRunMonitor Parameters ==

=== Monitor-specific required parameters ===
; service-name : The name of the process to be monitored. This parameter's value is case-sensitive.

=== Monitor-specific optional parameters ===
; match-all : If the process name appears multiple times in the ''hrSwRunTable'', and this parameter is set to ''true'', then all instances of the named process must match the value specified for ''run-level''.
; run-level : The maximum allowable value of ''hrSWRunStatus'' among '''{running(1), runnable(2) = waiting for resource, notRunnable(3) = loaded but waiting for event, invalid(4) = not loaded}'''. Defaults to ''2'' ('''runnable''').
; service-name-oid : The numeric object identifier (OID) from which process names are queried. Defaults to ''hrSwRunName'' == '''.1.3.6.1.2.1.25.4.2.1.2''' and should never be changed under normal circumstances.
; service-status-oid : The numeric object identifier (OID) from which run status is queried. Defaults to ''hrSwRunStatus'' = '''.1.3.6.1.2.1.25.4.2.1.7''' and should never be changed under normal circumstances.

=== Parameters common to all monitors ===
; ds-name
; rrd-repository
; port
; timeout
; retry

== Example config ==
As an example, let's check for a process called ''httpd'' using this monitor.

=== capsd-configuration.xml ===

Currently the SnmpPlugin lacks a way to discover the presence of processes for polling with this monitor . It's possible, however, to use the LoopPlugin to force the appearance of such a service on one or more interfaces. For instance, to make the service described above appear on all interfaces with IP addresses in the range 192.168.42.50 through 192.168.42.69, and on 192.168.42.42:

<pre>
<protocol-plugin protocol="Process_httpd"
class-name="org.opennms.netmgt.capsd.LoopPlugin"
scan="off" user-defined="false">
<protocol-configuration scan="enable" user-defined="false">
<include-range begin="192.168.42.50" end="192.168.42.69" />
<specific>192.168.42.42</specific>
</protocol-configuration>
</protocol-plugin>
</pre>

As an alternative to Capsd, provisioning groups may be used. In this case the service will still need to be defined in '''capsd-configuration.xml''', but it need not be forced onto any interfaces.

=== poller-configuration.xml ===

To test that at least one process called ''httpd'' in a running or runnable state, the following service definition will work:

<pre>
<service name="Process_httpd" interval="300000" user-defined="false" status="on">
<parameter key="retry" value="1"/>
<parameter key="timeout" value="3000"/>
<parameter key="service-name" value="httpd"/>
</service>
</pre>


For a slightly more advanced example, let's test that at least one process called ''httpd'' exists, and that all processes with that name are in a valid state, i.e. have a run-level no higher than ''notRunnable(3)'':
<pre>
<service name="Process_httpd" interval="300000" user-defined="false" status="on">
<parameter key="retry" value="1"/>
<parameter key="timeout" value="3000"/>
<parameter key="service-name" value="httpd"/>
<parameter key="run-level" value="3"/>
<parameter key="match-all" value="true"/>
</service>
</pre>

Important Notes:

* The name attribute of the service in poller-configuration.xml needs to match the protocol attribute of the protocol-plugin in capsd-configuration.xml.
* You'll also need a line to map the new service to a monitor class (see at the end of the file):

<pre>
<monitor service="Process_httpd" class-name="org.opennms.netmgt.poller.monitors.HostResourcesSwRunMonitor"/>
</pre>


[[Category:Monitors]]
[[Category:Configuration]]
{{New Feature In|1.5.94}}

opennms: OpenNMS - New Pages

SourceForge.net: OpenNMS

OpenNMS是一个企业级基于Java/XML的分布式网络和系统监控管理平台。OpenNMS是你管理网络的绝好工具,它能够显示你网络中各中终端和服务器的状态和配置,为你方便地管理网络提供有效的信息。

opensource: del.icio.us tag/opensource

Wall of cards

Added a new postcard

opennms: OpenNMS - Recent Changes

Image:Wallofcards.jpg

uploaded a new version of "[[Image:Wallofcards.jpg]]"

opennms: OpenNMS - Recent Changes

Template:QuickStart

Create the opennms Database:

opennms: OpenNMS - Recent Changes

Releases

opennms: OpenNMS - Recent Changes

Windows Event Log Traps

Calling it art, time for bed

opennms: OpenNMS - Recent Changes

Image:Evntwin Edit Mode Event Selected.png

uploaded "[[Image:Evntwin Edit Mode Event Selected.png]]" A screenshot of the Windows evntwin utility in edit mode for a custom configuration, with an event of interest highlighted

opennms: OpenNMS - Recent Changes

Windows Event Log Traps

Checkpoint save, hate to lose it now :)

opennms: OpenNMS - Recent Changes

Image:Evntwin Exporting Mappings.png

uploaded "[[Image:Evntwin Exporting Mappings.png]]" The Windows evntwin utility with one event-to-trap mapping defined, and the export file dialog open

opennms: OpenNMS - Recent Changes

Page 1 | Next >>
Username:
Password:
(or Cancel)