xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
Hallo,
habe folgendes Problem möchte die Prozessor - Auslastung mit NSClient++
von einem Windows XP System ermitteln und Graphisch anzeigen lassen.
NSClient habe ich installiert und kann auch Tests Local ausführen wie auf dem Bild nsclienttest.jpg zu sehen ist.
Über die WebUI habe ich ein Scheduled Outage erstellt wie auf outage.jpg zu sehen ist.
Wenn ich das Prinzip richtig verstanden habe, dann werden die Daten im Verzeichnis
RRD gespeichert.
In Diesem Verzeichnis gibt es 2 Unterordner 1. Responce und 2. Snmp
Leider werden die ermittelten Daten nicht in diesem Verzeichnis angezeigt.
Weis jemand warum nicht ?
Gruß Sascha Matz
CAPSD-configuration.xml
<protocol-plugin protocol="WMI-NSClientpp_Run" class-name="org.opennms.netmgt.capsd.plugins.WmiPlugin"
<property key="timeout" value="2000" />
<property key="retry" value="1" />
<property key="matchType" value="all"/>
<property key="wql" value="Select State From Win32_Service Where Name='NSClientpp'" />
<property key="wmiObject" value="State" />
<property key="compareOp" value="EQ" />
<property key="compareValue" value="Running" />
<property key="service-name" value="WMI-NSClientpp-Run" />
</protocol-plugin>
<protocol-plugin protocol="NSClientpp" class-name="org.opennms.netmgt.capsd.plugins.NsclientPlugin"
<property key="banner" value="*" />
<property key="port" value="12489" />
<property key="timeout" value="3000" />
<property key="retry" value="1" />
</protocol-plugin>
Poller-configuration.xml
<?xml version="1.0" encoding="UTF-8"?>
<poller-configuration xmlns="http://xmlns.opennms.org/xsd/config/poller"
threads="30" nextOutageId="SELECT nextval('outageNxtId')"
serviceUnresponsiveEnabled="false" xmlrpc="false" pathOutageEnabled="false">
<node-outage status="on" pollAllIfNoCriticalServiceDefined="true">
<critical-service name="ICMP"/>
</node-outage>
<package name="example1">
<filter>IPADDR != '0.0.0.0'</filter>
<include-range begin="192.12.146.1" end="192.12.146.254"/>
<rrd step="300">
<rra xmlns="">RRA:AVERAGE:0.5:1:2016</rra>
<rra xmlns="">RRA:AVERAGE:0.5:12:1488</rra>
<rra xmlns="">RRA:AVERAGE:0.5:288:366</rra>
<rra xmlns="">RRA:MAX:0.5:288:366</rra>
<rra xmlns="">RRA:MIN:0.5:288:366</rra>
</rrd>
<service name="WMI-NSClientpp-Run" interval="300000"
user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="matchType" value="all"/>
<parameter key="wql" value="Select State From Win32_Service Where Name='NSClientpp'"/>
<parameter key="wmiObject" value="State"/>
<parameter key="compareOp" value="EQ"/>
<parameter key="compareValue" value="Running"/>
<parameter key="service-name" value="WMI-NSClientpp-Run"/>
</service>
<service name="NSClientpp" interval="300000"
user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="port" value="12489"/>
<parameter key="timeout" value="3000"/>
</service>
......
......
<monitor service="WMI-NSClientpp-Run" class-name="org.opennms.netmgt.poller.monitors.WMIMonitor"/>
<monitor service="NSClientpp" class-name="org.opennms.netmgt.poller.monitors.NsclientMonitor"/>
nsclient-config.xml
<?xml version="1.0"?>
<nsclient-config port="12489" retry="3" timeout="3000" password=""
</nsclient-config>
collectd-configuration
<?xml version="1.0" encoding="UTF-8"?>
<collectd-configuration threads="50">
<package name="example1">
<filter>IPADDR != '0.0.0.0'</filter>
<include-range begin="192.12.146.1" end="192.12.146.254"/>
<storeByIfAlias>true</storeByIfAlias>
<storeByNodeID>normal</storeByNodeID>
<service name="SNMP" interval="300000" user-defined="false" status="on">
<parameter key="collection" value="default"/>
<parameter key="port" value="161"/>
<parameter key="retry" value="3"/>
<parameter key="timeout" value="3000"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
<service name="WMI" interval="300000" user-defined="false" status="on">
<parameter key="collection" value="default"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
<service name="XMP" interval="300000" user-defined="false" status="on">
<parameter key="collection" value="default"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
<service name="OpenNMS-JVM" interval="300000"
user-defined="false" status="on">
<parameter key="port" value="18980"/>
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="protocol" value="rmi"/>
<parameter key="urlPath" value="/jmxrmi"/>
<parameter key="rrd-base-name" value="java"/>
<parameter key="ds-name" value="opennms-jvm"/>
<parameter key="friendly-name" value="opennms-jvm"/>
<parameter key="collection" value="jsr160"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
</package>
<package name="NSClient">
<filter>IPADDR IPLIKE != '0.0.0.0'</filter>
<include-range begin="192.12.146.1" end="192.12.146.254"/>
<service name="NSClientpp" interval="300000"
user-defined="false" status="on">
<parameter key="nsclient-collection" value="default"/>
<parameter key="port" value="12489"/>
<parameter key="retry" value="3"/>
<parameter key="timeout" value="5000"/>
</service>
</package>
<collector service="SNMP" class-name="org.opennms.netmgt.collectd.SnmpCollector"/>
<collector service="WMI" class-name="org.opennms.netmgt.collectd.WmiCollector"/>
<collector service="XMP" class-name="org.opennms.netmgt.collectd.XmpCollector"/>
<collector service="OpenNMS-JVM" class-name="org.opennms.netmgt.collectd.Jsr160Collector"/>
<collector service="NSClientpp" class-name="org.opennms.netmgt.collected.NSClientCollector"/>
</collectd-configuration>
nsclient-datacollection-config.xml
<?xml version="1.0"?>
<nsclient-datacollection-config rrdRepository="/var/lib/opennms/rrd/snmp/">
<nsclient-collection name="default">
<rrd step="300">
<rra>RRA:AVERAGE:0.5:1:2016</rra>
<rra>RRA:AVERAGE:0.5:12:1488</rra>
<rra>RRA:AVERAGE:0.5:288:366</rra>
<rra>RRA:MAX:0.5:288:366</rra>
<rra>RRA:MIN:0.5:288:366</rra>
</rrd>
<wpms>
<wpm name="LDCFreeSpace" keyvalue="\LogicalDisk(c:)\% Free Space" recheckInterval="300000">
<attrib name="\LogicalDisk(c:)\% Free Space" alias="LD_C_FreeSpace" type="Gauge"/>
</wpm>
<wpm name="ProzessorProc" keyvalue="\Prozessor(_Total)\Prozessorzeit (%)" recheckInterval="3600000">
<attrib name="\Prozessor(_Total)\Prozessorzeit (%)" alias="cpuProcTime" type="Gauge"/>
</wpm>
<wpm name="ProzessorIntr" keyvalue="\Prozessor(_Total)\Interruptzeit (%)" recheckInterval="3600000">
<attrib name="\Prozessor(_Total)\Interruptzeit (%)" alias="cpuIntrTime" type="Gauge"/>
</wpm>
<wpm name="ProzessorPriv" keyvalue="\Prozessor(_Total)\Privilegierte Zeit (%)" recheckInterval="36000
<attrib name="\Prozessor(_Total)\Privilegierte Zeit (%)" alias="cpuPrivTime" type="Gauge"/>
</wpm>
<wpm name="ProzessorUser" keyvalue="\Prozessor(_Total)\Leerlaufzeit (%)" recheckInterval="3600000">
<attrib name="\Prozessor(_Total)\Leerlaufzeit (%)" alias="cpuUserTime" type="Gauge"/>
</wpm>
<wpm name="Processor" keyvalue="\Processor(_Total)\% Processor Time" recheckInterval="86400000">
<><!-- Collect these attributes. Name is the name to pass to NSClient..
<>Alias is the local name for the RRD file.
<>Type is used to convert values around
<>maxval/minval are optional-->
<><attrib name="\Processor(_Total)\% Processor Time" alias="cpuProcTime" type="Gauge"/>
<><attrib name="\Processor(_Total)\% Interrupt Time" alias="cpuIntrTime" type="Gauge"/>
<><attrib name="\Processor(_Total)\% Privileged Time" alias="cpuPrivTime" type="Gauge"/>
<><attrib name="\Processor(_Total)\% User Time" alias="cpuUserTime" type="Gauge"/>
</wpm>
<wpm name="System" keyvalue="\System\ProcessorQueueLength" recheckInterval="86400000">
<><attrib name="\System\ProcessorQueueLength" alias="winProcQueueLength" type="Gauge"/>
<><attrib name="\System\Processes" alias="winProcesses" type="Gauge"/>
<><attrib name="\System\Threads" alias="winThreads" type="Gauge"/>
</wpm>
<!-- IIS stats -->
<wpm name="IIS" keyvalue="\Web Service(_Total)\Bytes Total/sec" recheckInterval="86400000">
<><attrib name="\Web Service(_Total)\Total Bytes Transfered" alias="iisbytes" type="Counter"/>
<><attrib name="\Web Service(_Total)\Total CGI Requests" alias="iiscgireq" type="Counter"/>
<><attrib name="\Web Service(_Total)\Total Get Requests" alias="iisgetreq" type="Counter"/>
><attrib name="\Web Service(_Total)\Total Head Requests" alias="iisheadreq" type="Counter"/>
<><attrib name="\Web Service(_Total)\Total Post Requests" alias="iispostreq" type="Counter"/>
<><attrib name="\Web Service(_Total)\Maximum Connections" alias="iismaxconn" type="Gauge"/>
</wpm>
<wpm name="Exchange" keyvalue="\SMTP Server(_Total)\Message Bytes Sent Total" recheckInterval="864000
<------><attrib name="\SMTP Server(_Total)\Message Bytes Sent Total" alias="exchangebytessent" type="Counte
<------><attrib name="\SMTP Server(_Total)\Message Bytes Received Total" alias="exchangebytesrecv" type="Co
<------><attrib name="\SMTP Server(_Total)\Messages Sent Total" alias="exchangemsgsent" type="Counter"/>
<------><attrib name="\SMTP Server(_Total)\Messages Received Total" alias="exchangemsgrecv" type="Counter"/
<------><attrib name="\SMTP Server(_Total)\Messages Delivered Total" alias="exchangemsgdeliv" type="Counter
<------><attrib name="\SMTP Server(_Total)\% Recipients Local" alias="exchangereciplocal" type="Gauge"/>
<------><attrib name="\SMTP Server(_Total)\% Recipients Remote" alias="exchangerecipremote" type="Gauge"/>
</wpm>
<wpm name="DNS" keyvalue="\DNS\Total Query Received" recheckInterval="86400000">
<------><attrib name="\DNS\Total Query Received" alias="dnsqueryrecv" type="Counter"/>
<------><attrib name="\DNS\Total Response Sent" alias="dnsresponsesent" type="Counter"/>
</wpm>
</wpms>
</nsclient-collection>
</nsclient-datacollection-config>