Page 1 of 5

Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 12:48 pm
by rbizzell39
Hello,
I was wondering if there is any information on configuring Nagios the check IIS as well as http connections thanks.

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 1:34 pm
by dwhitfield
Several IIS plugins available at https://exchange.nagios.com/directory/P ... ervers/IIS

Same thing about Apache: https://exchange.nagios.com/directory/P ... ers/Apache

Once you give us a plugin you are trying to setup, we can give more specific information.

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 2:41 pm
by rbizzell39
I was looking at check_iis8_connections

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 2:53 pm
by dwhitfield
Did you have any specific questions about that plugin? We don't maintain it, but we might be able to help you out. I note there's a README at https://github.com/esterniclos/nagios_i ... /README.md. It also looks like the github is better-maintained than our exchange site, but at this point I don't know if there are any bugs fixed in the github version.

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 2:57 pm
by rbizzell39
Which plugin would you recommned I would like to use one that you are familiar and that works with nagios core 4.2.1

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:03 pm
by dwhitfield
I misread that as httpd the first time, so disregard the Apache link.

Anyway, there's check_http which we support. I'll need a little bit more info about what exactly you want to test in IIS to point you in the right direction.

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:05 pm
by rbizzell39
I got a request from one of developers and that ask if I could monitor httpd connections and IIS 8 in general

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:19 pm
by dwhitfield
There are a bunch of ways to check things on Windows, including IIS, but we do not officially support anything for IIS in Nagios Core.

Although it isn't something we support directly, many people use https://exchange.nagios.org/directory/A ... ++/details, so you'll find people are able to help with issues you have there.

Again, if you can be specific on what you want to check in IIS, we can point you something more specific.

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:21 pm
by rbizzell39
I would like to check the app pool status and current http connections

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:29 pm
by dwhitfield
For app pool, please use this page - https://raw.githubusercontent.com/ester ... _state.ps1

For instructions on what to add to your NSClient++ information, look at this page - https://github.com/esterniclos/nagios_iis

Code: Select all

    [/settings/external scripts/scripts]
         # Requires allow arguments=true
          check_iis8_app_pool_state = powershell.exe scripts\check_iis8_app_pool_state.ps1 $ARG1$

          check_default_app_pool = powershell.exe scripts\check_iis8_app_pool_state.ps1 DefaultAppPool

          # Requires allow arguments=true
          check_iis8_website = powershell.exe scripts\check_iis8_site.ps1 $ARG1$
          check_default_website = powershell.exe scripts\check_iis8_site.ps1 'Default Web Site'


          check_connections = powershell.exe scripts\check_iis8_connections.ps1 localhost 'Default Web Site' 3000 4000
Then, you can call to any of those 5 commands using check_nrpe with the -c parameter.

https://github.com/esterniclos/nagios_i ... ctions.ps1 should work for the connections part.

Let us know if that doesn't work for you!