Monitoring Windows Services with Opsview
- 3. Introduction
This presentation takes you through the steps required to
monitor Windows Services using Opsview.
If you don’t already have Opsview installed, visit our website and
download Opsview Core (free), Opsview Pro (30 day trial) or
request a trial to Opsview Enterprise.
3
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence
- 4. Introduction
• Opsview can be used to monitor any service that is
installed on an already configured Windows host. By
service, we mean anything listed in the MMC of
“services.msc”. Opsview can monitor the status, and
confirm whether it is in the state it should be – i.e.
started or not started.
• In this example we will be using Microsoft Exchange
2010’s IMAP4 service and we will be monitoring to make
sure that the service is started (running)
4
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence
- 5. Introduction
• There are default service checks already in Opsview for
Microsoft Exchange 2007 which can be enabled and added as
"Monitors" under the Host configuration. It is noteworthy that
some of the names of the Services have changed between
Exchange versions, for example POP3 and IMAP4 services.
5
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence
- 6. Configuration
• As the service name has changed for IMAP4 in Microsoft
Exchange 2010, we will go and create a new service check and
apply it to our host running MS Exchange 2010 as below
• Go to run and type "services.msc"
• Find the service you are looking for, i.e. "Microsoft Exchange
IMAP4", and double click on it
6
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence
- 7. Configuration
• Within the new window, there will be a "Service Name", in
this case it is "MSExchangeImap4". This is the service we will
be monitoring.
7
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence
- 8. Configuration
• Now, within Opsview, go to "SETTINGS > SERVICE CHECKS",
and click the green 'plus' icon in the top right.
8
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence
- 9. Configuration
• We will now create our Windows service check, to monitor
the status of IMAP4 on our server. In the text boxes, populate
the fields accordingly:
• Name is the name of the service, i.e. " Microsoft Exchange
IMAP service "
• Service group is "Windows - Exchange Server 2010", for
example.
• Set the check intervals and re-check intervals applicably.
• Make sure we set the plugin to "check_nrpe".
Wednesday, 05 September 9
© Opsview Ltd. Commercial in Confidence
2012
- 10. Configuration
• In the arguments section, change it to
"-H $HOSTADDRESS$ -c nsc_check_servicestate -a 'ShowAll
MSExchangeImap4=started'.
• “Started” is underlined, as this is the STATE of the service we
want the service to be. When the service is in this state, we
will report green (i.e. good), when it is NOT in this state, we
will report red (i.e. bad).
Wednesday, 05 September 10
© Opsview Ltd. Commercial in Confidence
2012
- 12. Configuration
• Press Submit, and the new service check to monitor IMAP4 on
MS Exchange 2010 servers is now created. Now all we need
to do is apply this new check to our MS host which is running
Exchange 2010.
• Go to "SETTINGS > HOSTS > HOST" (where HOST is the name
of your Windows Server).
• In the HOST, click on "Monitors", and then scroll down to our
new group - in this case "Windows - Exchange Server 2010",
and enable the new check we created "Microsoft Exchange
IMAP service".
• Press submit again, and the new service check is applied to
our host.
Wednesday, 05 September 12
© Opsview Ltd. Commercial in Confidence
2012
- 13. Configuration
• Now we just need to re-load the configuration; "SETTINGS ->
APPLY CONFIGURATION".
• Opsview will now be monitoring your IMAP4 service!
13
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence
- 14. About Opsview
Opsview delivers a single unified view of the health of all your distributed physical,
virtual and hybrid cloud systems.
We give DevOps staff all the tools they need to get their jobs done faster, easier and
for less.
• Opsview Enterprise offers large enterprises (+100 devices) and MSPs a certified,
professionally supported system with enhanced functionality such as dynamic
dashboards and reports
• SMEs looking for feature-rich dashboards to monitor the performance of their on-
premise, virtualized or cloud apps choose Opsview Pro
• Opsview Core is our free, open source monitoring tool - you can test and
customize it how you want
www.opsview.com
14
Wednesday, 05 September 2012 © Opsview Ltd. Commercial in Confidence