Re: Trouble setting up MS Windows Service monitor

JohnD Blackburn <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <DB6PR0602MB29021E64CD5FF6FCD05E2F9BCBA90@DB6PR0602MB2902.eurprd06.prod.outlook.com>
Thanks Dominic,

This worked perfectly.

Regards,
John






From: Brasted, Dominic [mailto:[email protected]]
Sent: Friday, 9 March 2018 12:19 AM
To: General OpenNMS Discussion <[email protected]>
Subject: Re: [opennms-discuss] Trouble setting up MS Windows Service monitor


John,

Try using parameter key "win32ServiceName" instead of just "serviceName" in your default-foreign-source.xml.

If you do a poller test on that service does it work?

Regards, Dominic



From: JohnD Blackburn [mailto:[email protected]]
Sent: Wednesday, March 07, 2018 8:05 PM
To: General OpenNMS Discussion <[email protected]<mailto:[email protected]>>
Subject: [opennms-discuss] Trouble setting up MS Windows Service monitor

I'm trying to configure a Service Monitor for monitoring Windows Services, but all the online examples I can find show using capsd.

I have enabled SNMP on the windows server, and confirmed that the OpenNMS server is querying data.  I have added the following to poller-configuration.xml and default-foreign-source.xml

Poller-configuration.xml:
   <package name="ABBCS-Microsoft Package">
      <filter>(IPADDR != '0.0.0.0') &amp; (categoryName == 'Microsoft')</filter>
      <include-range begin="1.1.1.1" end="254.254.254.254"/>
      <include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
      <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>
...
      <service name="Print-Spooler" interval="300000" user-defined="false" status="on">
          <parameter key="retry" value="6"/>
          <parameter key="timeout" value="4950"/>
          <parameter key="port" value="161"/>
          <parameter key="service-name" value="Print Spooler"/>
      </service>
...
   <monitor service="Print-Spooler" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor"/>


Default-foreign-source.xml:

      <detector name="Print-Spooler" class="org.opennms.netmgt.provision.detector.snmp.Win32ServiceDetector">
         <parameter key="port" value="161"/>
         <parameter key="serviceName" value="Print Spooler"/>
      </detector>


However this config is not detecting the service on the Windows server which I have confirmed is running.  What am I missing that is stopping this from working?


(Current version of OpenNMS is 21.0.2)

Regards,
John Blackburn

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.