Monitoring IIS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaara
Posts: 2
Joined: Wed Aug 10, 2011 9:52 am

Monitoring IIS

Post by zaara »

I need to monitor IIS to determine whether its running, stopped, etc. I've been looking at plugins, however they arent many available for this task. One plugin I looked at was the check_iis_site. However, this monitors an iis site rather than iis itself. Is there a way to monitor IIS through Nagios?

CentOS 5.6, 32 Bit,VMware
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Monitoring IIS

Post by nscott »

The WMI plugin has the capability to monitor running services, such as IIS.

Or if you want to go a different route you can follow this doc:

http://assets.nagios.com/downloads/nagi ... _Agent.pdf

And then use the bundled Windows Server wizard to monitor services.
Nicholas Scott
Former Nagios employee
zaara
Posts: 2
Joined: Wed Aug 10, 2011 9:52 am

Re: Monitoring IIS

Post by zaara »

Hi,

When I use WMI to monitor running services, the status for all the services shows 'Critical' with a status information of 'null.'
How can I fix this?

Thanks,
Zaara
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring IIS

Post by lmiltchev »

Run in terminal as root:

Code: Select all

# yum -qy install perl-DateTime
# yum -qy install perl-Config-IniFiles
# yum -qy install perl-List-MoreUtils
Let us know if this fixed your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
txwomansu
Posts: 36
Joined: Mon Oct 10, 2011 9:05 am

Re: Monitoring IIS

Post by txwomansu »

We have similar 'null' Information with WMI checks. I installed the client on NagiosXI server as described in docs, but I noticed that the client is for centos and we have rhel6. Could that be the problem? Also tried to install perl-DateTime and perl-List_MoreUtils but yum cannot find such packages... Please help. (The WMI service is running and 135 TCP port is open.)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring IIS

Post by lmiltchev »

The WMI client must be installed successfully first in order to be able to monitor Windows machines. The process is described here:

http://assets.nagios.com/downloads/nagi ... For_XI.pdf

If you receive any errors during the installation, it would not work. Installing the perl Date::Time module could be a pain in a neck on some distros but it has to be done first.

Only after you installed the WMI client successfully, you can install the WMI wizard:

http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf

If you installed the wizard with a failed WMI client installation you will have to fix this by:

1. Installing the WMI client
2. Re-installing the WMI wizard

If you fail to do so, you will receive "critical" and "null status" errors.
Be sure to check out our Knowledgebase for helpful articles and solutions!
txwomansu
Posts: 36
Joined: Mon Oct 10, 2011 9:05 am

Re: Monitoring IIS

Post by txwomansu »

I did not receive any errors during WMI client install on rhel6 (32-bit). I noticed, though, that the installed package is for CentOS. How can I make sure perl Date::Time module is installed?

Thank you.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring IIS

Post by lmiltchev »

Without the perl Date::Time module installed, it will not work. Try running in terminal:

Code: Select all

# yum install perl-DateTime.i686
Then re-install the WMI client and finally re-install the WMI wizard.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked