Page 1 of 1
Monitoring IIS
Posted: Wed Aug 10, 2011 12:25 pm
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
Re: Monitoring IIS
Posted: Wed Aug 10, 2011 3:52 pm
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.
Re: Monitoring IIS
Posted: Thu Aug 11, 2011 9:58 am
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
Re: Monitoring IIS
Posted: Fri Aug 12, 2011 11:53 am
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.
Re: Monitoring IIS
Posted: Thu Oct 13, 2011 12:15 pm
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.)
Re: Monitoring IIS
Posted: Thu Oct 13, 2011 3:18 pm
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.
Re: Monitoring IIS
Posted: Thu Oct 13, 2011 4:46 pm
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.
Re: Monitoring IIS
Posted: Fri Oct 14, 2011 12:06 pm
by lmiltchev
Without the perl Date::Time module installed, it will not work. Try running in terminal:
Then re-install the WMI client and finally re-install the WMI wizard.