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

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

ok I will try this thanks and will follow up
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 »

Fantastic. We'll keep the thread open as long as you need.
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

Thanks!
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

Is this what I need to put in the powershell script
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 »

rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

I need to add this into my ini file
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 »

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
is what goes in ncslient.ini.

The full instructions for testing are included at https://github.com/esterniclos/nagios_iis
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

okay 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 »

No problem. Let us know how it goes!
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: Monitoring IIS and httpd connections

Post by rbizzell39 »

One question I want to check multiple app pools can I just replace the the DefaultAppPool with my apps and separate them with commas or semicoln
Locked