PageRenderTime 41ms CodeModel.GetById 19ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/opennms-base-assembly/src/main/filtered/etc/examples/poller-configuration.xml

https://github.com/ajakubo1/opennms
XML | 743 lines | 666 code | 26 blank | 51 comment | 0 complexity | 4d35a1c09d8ae8991ebb842b961b1123 MD5 | raw file
  1<?xml version="1.0"?>
  2<?castor class-name="org.opennms.netmgt.poller.PollerConfiguration"?>
  3<poller-configuration threads="30" 
  4                      serviceUnresponsiveEnabled="false"
  5                      nextOutageId="SELECT nextval('outageNxtId')"
  6                      xmlrpc="false">
  7  <node-outage status="on" pollAllIfNoCriticalServiceDefined="true">
  8    <critical-service name="ICMP" />
  9  </node-outage>
 10  <package name="example1">
 11    <filter>IPADDR != '0.0.0.0'</filter>
 12    <specific>0.0.0.0</specific>
 13    <include-range begin="1.1.1.1" end="254.254.254.254" />
 14    <include-url>file:${install.etc.dir}/include</include-url>
 15    <rrd step="300">
 16      <rra>RRA:AVERAGE:0.5:1:2016</rra>
 17      <rra>RRA:AVERAGE:0.5:12:1488</rra>
 18      <rra>RRA:AVERAGE:0.5:288:366</rra>
 19      <rra>RRA:MAX:0.5:288:366</rra>
 20      <rra>RRA:MIN:0.5:288:366</rra>
 21    </rrd>
 22    <service name="ICMP" interval="300000" user-defined="false" status="on">
 23      <parameter key="retry" value="2" />
 24      <parameter key="timeout" value="3000" />
 25      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
 26      <parameter key="rrd-base-name" value="icmp" />
 27      <parameter key="ds-name" value="icmp" />
 28    </service>
 29    <service name="DNS" interval="300000" user-defined="false" status="on">
 30      <parameter key="retry" value="2" />
 31      <parameter key="timeout" value="5000" />
 32      <parameter key="port" value="53" />
 33      <parameter key="lookup" value="localhost" />
 34      <parameter key="fatal-response-codes" value="2,3,5" /><!-- ServFail, NXDomain, Refused -->
 35      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
 36      <parameter key="rrd-base-name" value="dns" />
 37      <parameter key="ds-name" value="dns" />
 38    </service>
 39    <service name="SMTP" interval="300000" user-defined="false" status="on">
 40      <parameter key="retry" value="1" />
 41      <parameter key="timeout" value="3000" />
 42      <parameter key="port" value="25" />
 43      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
 44      <parameter key="rrd-base-name" value="smtp" />
 45      <parameter key="ds-name" value="smtp" />
 46    </service>
 47    <service name="FTP" interval="300000" user-defined="false" status="on">
 48      <parameter key="retry" value="1" />
 49      <parameter key="timeout" value="3000" />
 50      <parameter key="port" value="21" />
 51      <parameter key="userid" value="" />
 52      <parameter key="password" value="" />
 53    </service>
 54    <service name="SNMP" interval="300000" user-defined="false" status="off">
 55      <parameter key="oid" value=".1.3.6.1.2.1.1.2.0" />
 56    </service>
 57    <service name="HTTP" interval="300000" user-defined="false" status="on">
 58      <parameter key="retry" value="1" />
 59      <parameter key="timeout" value="3000" />
 60      <parameter key="port" value="80" />
 61      <parameter key="url" value="/" />
 62      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
 63      <parameter key="rrd-base-name" value="http" />
 64      <parameter key="ds-name" value="http" />
 65    </service>
 66    <service name="HTTP-8080" interval="300000" user-defined="false" status="on">
 67      <parameter key="retry" value="1" />
 68      <parameter key="timeout" value="3000" />
 69      <parameter key="port" value="8080" />
 70      <parameter key="url" value="/" />
 71      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
 72      <parameter key="rrd-base-name" value="http-8080" />
 73      <parameter key="ds-name" value="http-8080" />
 74    </service>
 75    <service name="HTTP-8000" interval="300000" user-defined="false" status="on">
 76      <parameter key="retry" value="1" />
 77      <parameter key="timeout" value="3000" />
 78      <parameter key="port" value="8000" />
 79      <parameter key="url" value="/" />
 80      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
 81      <parameter key="rrd-base-name" value="http-8000" />
 82      <parameter key="ds-name" value="http-8000" />
 83    </service>
 84    <service name="HTTP-HostExample" interval="300000" user-defined="false" status="on">
 85      <parameter key="retry" value="1" />
 86      <parameter key="timeout" value="3000" />
 87      <parameter key="port" value="80" />
 88      <parameter key="url" value="/wiki/Main_Page" />
 89      <parameter key="host-name" value="www.opennms.org" />
 90      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
 91      <parameter key="rrd-base-name" value="http-hostexample" />
 92      <parameter key="ds-name" value="http-hostexample" />
 93    </service>
 94    <service name="HTTPS" interval="300000" user-defined="false" status="on">
 95      <parameter key="retry" value="1" />
 96      <parameter key="timeout" value="5000" />
 97      <parameter key="port" value="443" />
 98      <parameter key="url" value="/" />
 99      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
100      <!--  an example of using a different dsName and rrd file name -->
101      <parameter key="rrd-base-name" value="https" />
102      <parameter key="ds-name" value="responseTime" />
103    </service>
104    <service name="HTTP-MGMT" interval="300000" user-defined="false" status="on">
105      <parameter key="retry" value="1" />
106      <parameter key="timeout" value="3000" />
107      <parameter key="port" value="280" />
108      <parameter key="url" value="/" />
109    </service>
110    <service name="HypericAgent" interval="300000" user-defined="false" status="on">
111      <parameter key="retry" value="1" />
112      <parameter key="timeout" value="2200" />
113      <parameter key="port" value="2144" />
114    </service>
115    <service name="HypericHQ" interval="300000" user-defined="false" status="on">
116      <parameter key="retry" value="1" />
117      <parameter key="timeout" value="3000" />
118      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
119      <parameter key="rrd-base-name" value="hyperic-hq" />
120      <parameter key="ds-name" value="hyperic-hq" />
121      <parameter key="page-sequence">
122        <page-sequence>
123          <page path="/Login.do" port="7080" successMatch="(HQ Login)|(Sign in to Hyperic HQ)" />
124          <page path="/j_security_check.do" port="7080" method="POST"
125            failureMatch="(?s)(The username or password provided does not match our records)|(You are not signed in)" failureMessage="HQ Login in Failed"
126            successMatch="HQ Dashboard">
127            <parameter key="j_username" value="hqadmin" />
128            <parameter key="j_password" value="hqadmin" />
129          </page>
130          <page path="/Logout.do" port="7080" successMatch="HQ Login" />
131        </page-sequence>
132      </parameter>
133    </service>
134    <service name="MySQL" interval="300000" user-defined="false" status="on">
135      <parameter key="retry" value="1" />
136      <parameter key="timeout" value="3000" />
137      <parameter key="port" value="3306" />
138      <parameter key="banner" value="*" />
139    </service>
140    <service name="SQLServer" interval="300000" user-defined="false" status="on">
141      <parameter key="retry" value="1" />
142      <parameter key="timeout" value="3000" />
143      <parameter key="port" value="1433" />
144      <parameter key="banner" value="*" />
145    </service>
146    <service name="Oracle" interval="300000" user-defined="false" status="on">
147      <parameter key="retry" value="1" />
148      <parameter key="timeout" value="3000" />
149      <parameter key="port" value="1521" />
150      <parameter key="banner" value="*" />
151    </service>
152    <service name="Postgres" interval="300000" user-defined="false" status="on">
153      <parameter key="retry" value="1" />
154      <parameter key="banner" value="*" />
155      <parameter key="port" value="5432" />
156      <parameter key="timeout" value="3000" />
157    </service>
158    <service name="Sybase" interval="300000" user-defined="false" status="on">
159      <parameter key="retry" value="1" />
160      <parameter key="timeout" value="3000" />
161      <parameter key="port" value="1498" />
162      <parameter key="banner" value="*" />
163    </service>
164    <service name="Informix" interval="300000" user-defined="false" status="on">
165      <parameter key="retry" value="1" />
166      <parameter key="timeout" value="3000" />
167      <parameter key="port" value="1536" />
168      <parameter key="banner" value="*" />
169    </service>
170    <service name="SSH" interval="300000" user-defined="false" status="on">
171      <parameter key="retry" value="1" />
172      <parameter key="banner" value="SSH" />
173      <parameter key="port" value="22" />
174      <parameter key="timeout" value="3000" />
175      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
176      <parameter key="rrd-base-name" value="ssh" />
177      <parameter key="ds-name" value="ssh" />
178    </service>
179    <service name="IMAP" interval="300000" user-defined="false" status="on">
180      <parameter key="retry" value="1" />
181      <parameter key="port" value="143" />
182      <parameter key="timeout" value="3000" />
183    </service>
184    <service name="POP3" interval="300000" user-defined="false" status="on">
185      <parameter key="retry" value="1" />
186      <parameter key="port" value="110" />
187      <parameter key="timeout" value="3000" />
188      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
189      <parameter key="rrd-base-name" value="pop3" />
190      <parameter key="ds-name" value="pop3" />
191    </service>
192    <service name="NSClient" interval="300000" user-defined="false" status="on">
193      <parameter key="retry" value="2" />
194      <parameter key="port" value="1248" />
195      <parameter key="timeout" value="3000" />
196    </service>
197    <service name="NSClientpp" interval="300000" user-defined="false" status="on">
198      <parameter key="retry" value="2" />
199      <parameter key="port" value="12489" />
200      <parameter key="timeout" value="3000" />
201    </service>
202    <service name="NRPE" interval="300000" user-defined="false" status="on">
203      <parameter key="retry" value="3" />
204      <parameter key="timeout" value="3000" />
205      <parameter key="port" value="5666" />
206      <parameter key="command" value="_NRPE_CHECK" />
207      <parameter key="padding" value="2" />
208      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
209      <parameter key="ds-name" value="nrpe" />
210    </service>
211    <service name="NRPE-NoSSL" interval="300000" user-defined="false" status="on">
212      <parameter key="retry" value="3" />
213      <parameter key="timeout" value="3000" />
214      <parameter key="port" value="5666" />
215      <parameter key="command" value="_NRPE_CHECK" />
216      <parameter key="usessl" value="false" />
217      <parameter key="padding" value="2" />
218      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
219      <parameter key="ds-name" value="nrpe" />
220    </service>
221    <service name="Windows-Task-Scheduler" interval="300000" user-defined="false" status="on">
222      <parameter key="service-name" value="Task Scheduler" />
223    </service>
224    <service name="OpenNMS-JVM" interval="300000" user-defined="false" status="on">
225      <parameter key="port" value="18980"/>
226      <parameter key="factory" value="PASSWORD-CLEAR"/>
227      <parameter key="username" value="admin"/>
228      <parameter key="password" value="admin"/>
229      <parameter key="retry" value="2"/>
230      <parameter key="timeout" value="3000"/>
231      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
232      <parameter key="ds-name" value="opennms-jvm"/>
233      <parameter key="friendly-name" value="opennms-jvm"/>
234    </service>
235    <service name="DominoIIOP" interval="300000" user-defined="false" status="on">
236      <parameter key="retry" value="2" />
237      <parameter key="timeout" value="3000" />
238      <parameter key="ior-port" value="80" />
239      <parameter key="port" value="63148" />
240    </service>
241    <service name="Citrix" interval="300000" user-defined="false" status="on">
242      <parameter key="retry" value="2" />
243      <parameter key="timeout" value="3000" />
244    </service>
245    <service name="LDAP" interval="300000" user-defined="false" status="on">
246      <parameter key="port" value="389" />
247      <parameter key="version" value="3" />
248      <parameter key="searchbase" value="DC=example,DC=org,OU=users" />
249      <parameter key="searchfilter" value="CN=testuser" />
250      <parameter key="dn" value="DN=example,DN=org,OU=users,CN=opennms" />
251      <parameter key="password" value="passwordforopennmsuser" />
252      <parameter key="retry" value="2" />
253      <parameter key="timeout" value="3000" />
254    </service>
255    <service name="Memcached" interval="300000" user-defined="false" status="on">
256      <parameter key="port" value="11211" />
257      <parameter key="retry" value="2" />
258      <parameter key="timeout" value="3000" />
259      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
260      <parameter key="ds-name" value="memcached" />
261      <parameter key="rrd-base-name" value="memcached" />
262    </service>
263    <service name="NTP" interval="300000" user-defined="false" status="off">
264      <parameter key="retry" value="2" />
265      <parameter key="timeout" value="5000" />
266      <parameter key="port" value="123" />
267      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
268      <parameter key="ds-name" value="ntp" />
269    </service>
270    <service name="RadiusAuth" interval="300000" user-defined="false" status="on">
271      <parameter key="retry" value="3" />
272      <parameter key="timeout" value="3000" />
273      <parameter key="user" value="TEST" />
274      <parameter key="password" value="test" />
275      <parameter key="secret" value="opennms" />
276      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
277      <parameter key="ds-name" value="radiusauth" />
278    </service>
279    <service name="JBoss4" interval="300000" user-defined="false" status="on">
280      <parameter key="version" value="4" />
281      <parameter key="port" value="1099" />
282      <parameter key="retry" value="2" />
283      <parameter key="timeout" value="3000" />
284      <parameter key="factory" value="RMI" />
285      <!-- if you set the factory to HTTP (necessary when monitoring through a firewall) then you 
286          need to ensure the port matches the port specified in the InvokerURLSuffix for the Naming Service entry in 
287          <jboss-home>/server/default/deploy/http-invoker/META-INF/jboss-service.xml
288          The default port is 8080
289      -->
290      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
291      <parameter key="ds-name" value="jboss" />
292    </service>
293    <service name="JBoss32" interval="300000" user-defined="false" status="on">
294      <parameter key="port" value="1099" />
295      <parameter key="version" value="32" />
296      <parameter key="retry" value="2" />
297      <parameter key="timeout" value="3000" />
298      <parameter key="factory" value="RMI" />
299      <!-- if you set the factory to HTTP (necessary when monitoring through a firewall) then you 
300          need to ensure the port matches the port specified in the InvokerURLSuffix for the Naming Service entry in 
301          <jboss-home>/server/default/deploy/http-invoker/META-INF/jboss-service.xml
302          The default port is 8080
303      -->
304      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
305      <parameter key="ds-name" value="jboss" />
306    </service>
307    <service name="JVM" interval="300000" user-defined="false" status="on">
308      <parameter key="port" value="9003" />
309      <parameter key="retry" value="2" />
310      <parameter key="timeout" value="3000" />
311      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
312      <parameter key="ds-name" value="jmx" />
313      <parameter key="friendly-name" value="jvm" />
314    </service>
315    <service name="NRPE" interval="300000" user-defined="false" status="on">
316      <parameter key="retry" value="3" />
317      <parameter key="timeout" value="3000" />
318      <parameter key="port" value="5666" />
319      <parameter key="command" value="_NRPE_CHECK" />
320      <parameter key="usessl" value="true" />
321      <parameter key="padding" value="2" />
322      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
323      <parameter key="ds-name" value="nrpe" />
324    </service>
325    <service name="DbTestExample" interval="300000" user-defined="false" status="on">
326      <parameter key="retry" value="3" />
327      <parameter key="timeout" value="3000" />
328      <parameter key="user" value="dbtest" />
329      <parameter key="password" value="onetwothree" />
330      <parameter key="stored-procedure" value="is_db_consistent" />
331      <parameter key="schema" value="test" />
332      <parameter key="url" value="jdbc:postgresql://dbserver.example.com/dbname" />
333      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
334      <parameter key="ds-name" value="dbtransaction" />
335    </service>
336    <service name="DiskUsage-root" interval="300000" user-defined="false" status="on">
337      <parameter key="timeout" value="3000" />
338      <parameter key="retry" value="2" />
339      <parameter key="disk" value="/" />
340      <parameter key="match-type" value="exact" /><!-- This is the default if "match-type" is omitted -->
341      <parameter key="free" value="15" /><!-- At least 15% of space must be free -->
342    </service>
343    <service name="DiskUsage-home" interval="300000" user-defined="false" status="on">
344      <parameter key="timeout" value="3000" />
345      <parameter key="retry" value="2" />
346      <parameter key="disk" value="/home" />
347      <parameter key="match-type" value="endsWith" /><!-- Would catch either "/home" or "/export/home" -->
348      <parameter key="free" value="15" /><!-- At least 15% of space must be free -->
349    </service>
350    <service name="DiskUsage-CDrive" interval="300000" user-defined="false" status="on">
351      <parameter key="timeout" value="3000" />
352      <parameter key="retry" value="2" />
353      <parameter key="disk" value="C:" />
354      <parameter key="match-type" value="startsWith" /><!-- Needed for Windows SNMP service, which appends label and serial number -->
355      <parameter key="free" value="15" /><!-- At least 15% of space must be free -->
356    </service>
357    <service name="DiskUsage-BootDisk" interval="300000" user-defined="false" status="on">
358      <parameter key="timeout" value="3000" />
359      <parameter key="retry" value="2" />
360      <parameter key="disk" value="Label:Boot Disk" />
361      <parameter key="match-type" value="regex" /><!-- For finding a Windows drive with a given label regardless of letter -->
362      <parameter key="free" value="15" /><!-- At least 15% of space must be free -->
363    </service>
364    <service name="UnixTime" interval="300000" user-defined="false" status="on">
365      <parameter key="timeout" value="3000" />
366      <parameter key="retry" value="1" />
367      <parameter key="protocol" value="tcp" /><!-- UDP also supported -->
368      <parameter key="port" value="37" />
369      <parameter key="allowed-skew" value="300" /><!-- Seconds, i.e. 5 minutes -->
370      <parameter key="persist-skew" value="true" /><!-- If true, return a multi-valued PollStatus with skew included -->
371    </service>
372    <!--
373    Use this monitor when testing.  Set the is-supported parm to control "Up/Down" status during the poll.
374    <service name="LOOP-BACK" interval="300000" user-defined="false" status="on">
375      <parameter key="ip-match" value="169.254.*.*" />
376      <parameter key="is-supported" value="true" />
377    </service>
378    -->
379    <outage-calendar>zzz from poll-outages.xml zzz</outage-calendar>
380
381    <downtime interval="30000" begin="0" end="300000" /><!-- 30s, 0, 5m -->
382    <downtime interval="300000" begin="300000" end="43200000" /><!-- 5m, 5m, 12h -->
383    <downtime interval="600000" begin="43200000" end="432000000" /><!-- 10m, 12h, 5d -->
384    <downtime begin="432000000" delete="true" /><!-- anything after 5 days delete -->
385
386  </package>
387
388  <!-- Moved StrafePing to its own package.  This allows for more flexible configuration of which interfaces
389    will have StrafePing statistical analysis rather than being on for or off for all interfaces.  Change
390    this package's filter / ranges for directing the StrafePinger to choice interfaces.  Note: Strafing all
391    of your network interface may create high loads on the NMS file system.  -->
392
393  <package name="strafer">
394    <filter>IPADDR != '0.0.0.0'</filter>
395    <include-range begin="10.1.1.1" end="10.1.1.10" />
396    <rrd step="300">
397      <rra>RRA:AVERAGE:0.5:1:2016</rra>
398      <rra>RRA:AVERAGE:0.5:12:1488</rra>
399      <rra>RRA:AVERAGE:0.5:288:366</rra>
400      <rra>RRA:MAX:0.5:288:366</rra>
401      <rra>RRA:MIN:0.5:288:366</rra>
402    </rrd>
403    <service name="StrafePing" interval="300000" user-defined="false" status="on">
404      <parameter key="retry" value="0" />
405      <parameter key="timeout" value="3000" />
406      <parameter key="ping-count" value="20" />
407      <parameter key="failure-ping-count" value="20" />
408      <parameter key="wait-interval" value="50" />
409      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
410      <parameter key="rrd-base-name" value="strafeping" />
411    </service>
412    <downtime interval="300000" begin="0" end="432000000"/><!-- 5m, 0, 5d -->
413    <downtime begin="432000000" delete="true" /><!-- anything after 5 days delete -->
414  </package>
415
416  <package name="passive-service-example1">
417    <filter>IPADDR != '0.0.0.0'</filter>
418    <include-range begin="1.1.1.1" end="254.254.254.254" />
419    <rrd step="300">
420      <rra>RRA:AVERAGE:0.5:1:2016</rra>
421      <rra>RRA:AVERAGE:0.5:12:1488</rra>
422      <rra>RRA:AVERAGE:0.5:288:366</rra>
423      <rra>RRA:MAX:0.5:288:366</rra>
424      <rra>RRA:MIN:0.5:288:366</rra>
425    </rrd>
426    <service name="NON-IP" interval="30000" user-defined="false" status="on" />
427    <downtime interval="15000" begin="0" end="300000" />		<!-- 15s, 0, 5m -->
428    <downtime interval="30000" begin="300000" end="43200000" />	<!-- 30s, 5m, 12h -->
429    <downtime interval="300000" begin="43200000" end="432000000" />	<!-- 5m, 12h, 5d -->
430    <downtime begin="432000000" delete="true" />			<!-- anything after 5 days delete -->
431  </package>
432  <package name="raleigh" remote="true">
433    <filter>IPADDR != '0.0.0.0'</filter>
434    <include-range begin="1.1.1.1" end="254.254.254.254" />
435    <rrd step="300">
436      <rra>RRA:AVERAGE:0.5:1:2016</rra>
437      <rra>RRA:AVERAGE:0.5:12:1488</rra>
438      <rra>RRA:AVERAGE:0.5:288:366</rra>
439      <rra>RRA:MAX:0.5:288:366</rra>
440      <rra>RRA:MIN:0.5:288:366</rra>
441    </rrd>
442    <service name="HTTP" interval="30000" user-defined="false" status="on">
443      <parameter key="retry" value="1" />
444      <parameter key="timeout" value="3000" />
445      <parameter key="port" value="80" />
446      <parameter key="url" value="/" />
447      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
448      <parameter key="ds-name" value="http" />
449    </service>
450
451    <outage-calendar>zzz from poll-outages.xml zzz</outage-calendar>
452
453    <downtime interval="30000" begin="0" end="300000" /><!-- 30s, 0, 5m -->
454    <downtime interval="300000" begin="300000" end="43200000" /><!-- 5m, 5m, 12h -->
455    <downtime interval="600000" begin="43200000" end="432000000" /><!-- 10m, 12h, 5d -->
456    <downtime begin="432000000" delete="true" /><!-- anything after 5 days delete -->
457  </package>
458  <package name="GoogleMailTest">
459    <filter>IPADDR != '0.0.0.0'</filter>
460    <specific>66.249.83.107</specific>
461    <rrd step="300">
462      <rra>RRA:AVERAGE:0.5:1:2016</rra>
463      <rra>RRA:AVERAGE:0.5:12:1488</rra>
464      <rra>RRA:AVERAGE:0.5:288:366</rra>
465      <rra>RRA:MAX:0.5:288:366</rra>
466      <rra>RRA:MIN:0.5:288:366</rra>
467    </rrd>
468    <service name="MAIL" interval="30000" user-defined="false" status="on">
469    <parameter key="mail-transport-test">
470      <mail-transport-test>
471        <mail-test>
472          <sendmail-test attempt-interval="3000" debug="true" use-authentication="false" use-jmta="false">
473            <!-- These 2 properties are passed directly to the javamailer class.  The will
474                be overridden if they are the same properties that are derived based on the
475                other configuration elements.  Mainly here for convenience allowing properties
476                to be set that don't get set by the configuration. -->
477            <javamail-property name="mail.smtp.userset" value="false" />
478            <javamail-property name="mail.smtp.ehlo" value="true" />
479
480            <!-- Connect to local MTA and send... no auth required but the configuration
481                requires auth be configured.  Disable with use-authentication attribute above. -->
482            <sendmail-host host="127.0.0.1" port="25" />
483            <sendmail-protocol char-set="us-ascii" mailer="smtpsend" message-content-type="text/plain" message-encoding="7-bit"
484                quit-wait="true" ssl-enable="false" start-tls="false" transport="smtp" />
485            <sendmail-message to="foo@gmail.com" from="root@[127.0.0.1]" subject="OpenNMS Test Message "
486                body="This is an OpenNMS test message." />
487            <user-auth user-name="opennms" password="rulz" />
488          </sendmail-test>
489
490          <!-- Read portion of the test.  Check to see if local MTA has delivered mail to Google Gmail account.  The
491          attempt interval gives a delay between send and read test as well as between each retry. -->
492          <readmail-test attempt-interval="5000" debug="true" mail-folder="INBOX" subject-match="OpenNMS Test Message" delete-all-mail="true">
493            <!-- Sample properties that you may want to set... these examples are the javamail defaults. -->
494            <javamail-property name="mail.pop3.apop.enable" value="false" />
495            <javamail-property name="mail.pop3.rsetbeforequit" value="false" />
496
497            <readmail-host host="pop.gmail.com" port="995">
498              <readmail-protocol ssl-enable="true" start-tls="false" transport="pop3s" />
499            </readmail-host>
500            <user-auth user-name="bar" password="foo" />
501          </readmail-test>
502        </mail-test>
503      </mail-transport-test>
504    </parameter>
505    </service>
506
507    <downtime interval="15000" begin="0" end="300000" /> <!-- 15s, 0, 5m -->
508    <downtime interval="30000" begin="300000" end="43200000" /> <!-- 30s, 5m, 12h -->
509    <downtime interval="300000" begin="43200000" end="432000000" /> <!-- 5m, 12h, 5d -->
510    <downtime begin="432000000" delete="true" /> <!-- anything after 5 days delete -->
511  </package>
512
513  <package name="end2endSameServer">
514    <filter>IPADDR != '0.0.0.0'</filter>
515    <include-range begin="1.1.1.1" end="254.254.254.254" />
516    <rrd step = "300">
517      <rra>RRA:AVERAGE:0.5:1:2016</rra>
518      <rra>RRA:AVERAGE:0.5:12:1488</rra>
519      <rra>RRA:AVERAGE:0.5:288:366</rra>
520      <rra>RRA:MAX:0.5:288:366</rra>
521      <rra>RRA:MIN:0.5:288:366</rra>
522    </rrd>
523    <service name="MAIL" interval="30000" user-defined="false" status="on">
524    <parameter key="mail-transport-test">
525      <mail-transport-test>
526      <mail-test>
527        <sendmail-test attempt-interval="3000" debug="true" use-authentication="false" use-jmta="false">
528        <!-- These 2 properties are passed directly to the javamailer class.  The will
529          be overridden if they are the same properties that are derived based on the
530          other configuration elements.  Mainly here for convenience allowing properties
531          to be set that don't get set by the configuration. -->
532        <javamail-property name="mail.smtp.userset" value="false" />
533        <javamail-property name="mail.smtp.ehlo" value="true" />
534
535        <!-- Connect to local MTA and send... no auth required but the configuration
536          requires auth be configured.  Disable with use-authentication attribute above. -->
537        <sendmail-host host="${ipaddr}" port="25" />
538        <sendmail-protocol char-set="us-ascii" mailer="smtpsend" message-content-type="text/plain" message-encoding="7-bit"
539          quit-wait="true" ssl-enable="false" start-tls="false" transport="smtp" />
540        <sendmail-message to="root" from="root@[127.0.0.1]" subject="OpenNMS Test Message "
541          body="This is an OpenNMS test message." />
542        <user-auth user-name="opennms" password="rulz" />
543        </sendmail-test>
544
545        <!-- Read portion of the test.  Check to see if local MTA has delivered mail to root's account on ${ipaddr}.  The
546        attempt interval gives a delay between send and read test as well as between each retry. -->
547        <readmail-test attempt-interval="5000" debug="true" mail-folder="INBOX" subject-match="OpenNMS Test Message"
548        delete-all-mail="true">
549
550        <!-- Sample properties that you may want to set... these examples are the javamail defaults. -->
551        <javamail-property name="mail.pop3.apop.enable" value="false" />
552        <javamail-property name="mail.pop3.rsetbeforequit" value="false" />
553
554        <readmail-host host="${ipaddr}" port="995">
555          <readmail-protocol ssl-enable="true" start-tls="false" transport="pop3s" />
556        </readmail-host>
557        <user-auth user-name="bar" password="foo" />
558        </readmail-test>
559      </mail-test>
560      </mail-transport-test>
561    </parameter>
562    </service>
563
564    <downtime interval="15000" begin="0" end="300000" />     <!-- 15s, 0, 5m -->
565    <downtime interval="30000" begin="300000" end="43200000" />  <!-- 30s, 5m, 12h -->
566    <downtime interval="300000" begin="43200000" end="432000000" />  <!-- 5m, 12h, 5d -->
567    <downtime begin="432000000" delete="true" />         <!-- anything after 5 days delete -->
568  </package>
569  
570  <package name="Windows Services">
571    <filter>IPADDR != '0.0.0.0'</filter>
572    <specific>0.0.0.0</specific>
573    <include-range begin="1.1.1.1" end="254.254.254.254" />
574    <include-url>file:${install.etc.dir}/include</include-url>
575    <rrd step = "300">
576      <rra>RRA:AVERAGE:0.5:1:2016</rra>
577      <rra>RRA:AVERAGE:0.5:12:1488</rra>
578      <rra>RRA:AVERAGE:0.5:288:366</rra>
579      <rra>RRA:MAX:0.5:288:366</rra>
580      <rra>RRA:MIN:0.5:288:366</rra>
581    </rrd>
582    <service name="MSExchangeSA" interval="3000000"
583      user-defined="false" status="on">
584      <parameter key="service-name" value="MSExchangeSA" />
585    </service>
586    <service name="MSExchangeIS" interval="3000000"
587      user-defined="false" status="on">
588      <parameter key="service-name" value="MSExchangeIS" />
589    </service>
590    <service name="MSExchangeMailboxAssistants" interval="3000000"
591      user-defined="false" status="on">
592      <parameter key="service-name" value="MSExchangeMailboxAssistants" />
593    </service>
594    <service name="MSExchangeMailSubmission" interval="3000000"
595      user-defined="false" status="on">
596      <parameter key="service-name" value="MSExchangeMailSubmission" />
597    </service>
598    <service name="MSExchangeADTopology" interval="3000000"
599      user-defined="false" status="on">
600      <parameter key="service-name" value="MSExchangeADTopology" />
601    </service>
602    <service name="MSExchangeAntispamUpdate" interval="3000000"
603      user-defined="false" status="on">
604      <parameter key="service-name" value="MSExchangeAntispamUpdate" />
605    </service>
606    <service name="MSExchangeEdgeSync" interval="3000000"
607      user-defined="false" status="on">
608      <parameter key="service-name" value="MSExchangeEdgeSync" />
609    </service>
610    <service name="MSExchangeFDS" interval="3000000"
611      user-defined="false" status="on">
612      <parameter key="service-name" value="MSExchangeFDS" />
613    </service>
614    <service name="MSExchangeServiceHost" interval="3000000"
615      user-defined="false" status="on">
616      <parameter key="service-name" value="MSExchangeServiceHost" />
617    </service>
618    <service name="MSExchangeTransport" interval="3000000"
619      user-defined="false" status="on">
620      <parameter key="service-name" value="MSExchangeTransport" />
621    </service>
622    <service name="XMP" interval="300000" user-defined="false" status="off">
623      <parameter key="retry" value="1" />
624      <parameter key="timeout" value="3000" />
625    </service>
626    <!-- XMP/Cartographer plugin: see http://www.krupczak.org/index.php/Cartographer for more information -->
627    <service name="WMI" interval="300000" user-defined="false" status="on">
628      <parameter key="retry" value="2" />
629      <parameter key="timeout" value="3000" />
630      <parameter key="matchType" value="all" />
631      <parameter key="wmiNamespace" value="root/cimv2" />
632      <parameter key="wmiClass" value="Win32_ComputerSystem" />
633      <parameter key="wmiObject" value="Status" />
634      <parameter key="compareOp" value="EQ" />
635      <parameter key="compareValue" value="OK" />
636      <parameter key="service-name" value="WMI" />
637    </service>
638
639    <downtime interval="15000" begin="0" end="300000" />     <!-- 15s, 0, 5m -->
640    <downtime interval="30000" begin="300000" end="43200000" />  <!-- 30s, 5m, 12h -->
641    <downtime interval="300000" begin="43200000" end="432000000" />  <!-- 5m, 12h, 5d -->
642    <downtime begin="432000000" delete="true" />         <!-- anything after 5 days delete -->
643  </package>
644
645  <package name="DHCP">
646    <filter>IPADDR != '0.0.0.0'</filter>
647    <specific>0.0.0.0</specific>
648    <include-range begin="1.1.1.1" end="254.254.254.254" />
649    <include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" />
650    <include-url>file:${install.etc.dir}/include</include-url>
651    <rrd step = "300">
652      <rra>RRA:AVERAGE:0.5:1:2016</rra>
653      <rra>RRA:AVERAGE:0.5:12:1488</rra>
654      <rra>RRA:AVERAGE:0.5:288:366</rra>
655      <rra>RRA:MAX:0.5:288:366</rra>
656      <rra>RRA:MIN:0.5:288:366</rra>
657    </rrd>
658    <service name="DHCP" interval="300000" user-defined="false" status="on">
659      <parameter key="retry" value="2" />
660      <parameter key="timeout" value="3000" />
661      <parameter key="rrd-repository" value="${install.share.dir}/rrd/response" />
662      <parameter key="rrd-base-name" value="dhcp" />
663      <parameter key="ds-name" value="dhcp" />
664    </service>
665
666    <downtime interval="15000" begin="0" end="300000" />     <!-- 15s, 0, 5m -->
667    <downtime interval="30000" begin="300000" end="43200000" />  <!-- 30s, 5m, 12h -->
668    <downtime interval="300000" begin="43200000" end="432000000" />  <!-- 5m, 12h, 5d -->
669    <downtime begin="432000000" delete="true" />         <!-- anything after 5 days delete -->
670  </package>
671
672  <monitor service="ICMP" class-name="org.opennms.netmgt.poller.monitors.IcmpMonitor" />
673  <monitor service="StrafePing" class-name="org.opennms.netmgt.poller.monitors.StrafePingMonitor" />
674  <monitor service="HTTP" class-name="org.opennms.netmgt.poller.monitors.HttpMonitor" />
675  <monitor service="HTTP-8080" class-name="org.opennms.netmgt.poller.monitors.HttpMonitor" />
676  <monitor service="HTTP-8000" class-name="org.opennms.netmgt.poller.monitors.HttpMonitor" />
677  <monitor service="HTTP-HostExample" class-name="org.opennms.netmgt.poller.monitors.HttpMonitor" />
678  <monitor service="HTTPS" class-name="org.opennms.netmgt.poller.monitors.HttpsMonitor" />
679  <monitor service="HypericAgent" class-name="org.opennms.netmgt.poller.monitors.TcpMonitor" />
680  <monitor service="HypericHQ" class-name="org.opennms.netmgt.poller.monitors.PageSequenceMonitor" />
681  <monitor service="SMTP" class-name="org.opennms.netmgt.poller.monitors.SmtpMonitor" />
682  <monitor service="DNS" class-name="org.opennms.netmgt.poller.monitors.DnsMonitor" />
683  <monitor service="FTP" class-name="org.opennms.netmgt.poller.monitors.FtpMonitor" />
684  <monitor service="SNMP" class-name="org.opennms.netmgt.poller.monitors.SnmpMonitor" />
685  <monitor service="Oracle" class-name="org.opennms.netmgt.poller.monitors.TcpMonitor" />
686  <monitor service="Postgres" class-name="org.opennms.netmgt.poller.monitors.TcpMonitor" />
687  <monitor service="MySQL" class-name="org.opennms.netmgt.poller.monitors.TcpMonitor" />
688  <monitor service="SQLServer" class-name="org.opennms.netmgt.poller.monitors.TcpMonitor" />
689  <monitor service="SSH" class-name="org.opennms.netmgt.poller.monitors.SshMonitor" />
690  <monitor service="IMAP" class-name="org.opennms.netmgt.poller.monitors.ImapMonitor" />
691  <monitor service="POP3" class-name="org.opennms.netmgt.poller.monitors.Pop3Monitor" />
692  <monitor service="NRPE" class-name="org.opennms.netmgt.poller.monitors.NrpeMonitor" />
693  <monitor service="NRPE-NoSSL" class-name="org.opennms.netmgt.poller.monitors.NrpeMonitor" />
694  <monitor service="Windows-Task-Scheduler" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
695  <monitor service="OpenNMS-JVM" class-name="org.opennms.netmgt.poller.monitors.Jsr160Monitor" />
696
697  <!-- Example monitors added in this example file -->
698
699  <monitor service="DominoIIOP" class-name="org.opennms.netmgt.poller.monitors.DominoIIOPMonitor" />
700  <monitor service="Citrix" class-name="org.opennms.netmgt.poller.monitors.CitrixMonitor" />
701  <monitor service="LDAP" class-name="org.opennms.netmgt.poller.monitors.LdapMonitor" />
702  <monitor service="Memcached" class-name="org.opennms.netmgt.poller.monitors.MemcachedMonitor" />
703  <monitor service="HTTP-MGMT" class-name="org.opennms.netmgt.poller.monitors.HttpMonitor" />
704  <monitor service="JBoss4" class-name="org.opennms.netmgt.poller.monitors.JBossMonitor" />
705  <monitor service="JBoss32" class-name="org.opennms.netmgt.poller.monitors.JBossMonitor" />
706  <monitor service="JVM" class-name="org.opennms.netmgt.poller.monitors.Jsr160Monitor" />
707  <monitor service="NTP" class-name="org.opennms.netmgt.poller.monitors.NtpMonitor" />
708  <monitor service="Sybase" class-name="org.opennms.netmgt.poller.monitors.TcpMonitor" />
709  <monitor service="Informix" class-name="org.opennms.netmgt.poller.monitors.TcpMonitor" />
710  <monitor service="DbTestExample" class-name="org.opennms.netmgt.poller.monitors.JDBCStoredProcedureMonitor" />
711  <monitor service="DiskUsage-root" class-name="org.opennms.netmgt.poller.monitors.DiskUsageMonitor" />
712  <monitor service="DiskUsage-home" class-name="org.opennms.netmgt.poller.monitors.DiskUsageMonitor" />
713  <!--
714  <monitor service="DiskUsage-CDrive" class-name="org.opennms.netmgt.poller.monitors.DiskUsageMonitor" />
715  <monitor service="DiskUsage-BootDisk" class-name="org.opennms.netmgt.poller.monitors.DiskUsageMonitor" />
716  -->
717  <monitor service="UnixTime" class-name="org.opennms.netmgt.poller.monitors.TrivialTimeMonitor" />
718  <!-- 
719  <monitor service="LOOP-BACK" class-name="org.opennms.netmgt.poller.monitors.LooMonitor" />
720  -->
721  <monitor service="NON-IP" class-name="org.opennms.netmgt.poller.monitors.PassiveServiceMonitor" />
722  <monitor service="MAIL" class-name="org.opennms.netmgt.poller.monitors.MailTransportMonitor" />
723  <!-- Windows Exchange Services -->
724  <monitor service="MSExchangeSA" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
725  <monitor service="MSExchangeIS" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
726  <monitor service="MSExchangeMailboxAssistants" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
727  <monitor service="MSExchangeMailSubmission" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
728  <monitor service="MSExchangeADTopology" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
729  <monitor service="MSExchangeAntispamUpdate" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
730  <monitor service="MSExchangeEdgeSync" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
731  <monitor service="MSExchangeFDS" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
732  <monitor service="MSExchangeServiceHost" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
733  <monitor service="MSExchangeTransport" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor" />
734  <monitor service="WMI" class-name="org.opennms.netmgt.poller.monitors.WmiMonitor" />
735  
736  <!-- These monitors are now distributed separately.  They must be installed before enabling the following: -->
737  <monitor service="DHCP" class-name="org.opennms.protocols.dhcp.monitor.DhcpMonitor" />
738  <monitor service="NSClient" class-name="org.opennms.protocols.nsclient.monitor.NsclientMonitor" />
739  <monitor service="NSClientpp" class-name="org.opennms.protocols.nsclient.monitor.NsclientMonitor" />
740  <monitor service="RadiusAuth" class-name="org.opennms.protocols.radius.monitor.RadiusAuthMonitor" />
741  <monitor service="XMP" class-name="org.opennms.protocols.xmp.monitor.XmpMonitor" />
742
743</poller-configuration>