Monitoring IIS and httpd connections

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Monitoring IIS and httpd connections

Post by rbizzell39 »

Hello,
I was wondering if there is any information on configuring Nagios the check IIS as well as http connections thanks.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitoring IIS and httpd connections

Post 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.
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

I was looking at check_iis8_connections
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitoring IIS and httpd connections

Post 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.
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitoring IIS and httpd connections

Post 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.
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

I got a request from one of developers and that ask if I could monitor httpd connections and IIS 8 in general
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitoring IIS and httpd connections

Post 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.
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

I would like to check the app pool status and current http connections
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitoring IIS and httpd connections

Post 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!
Locked