Page 2 of 5

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:40 pm
by rbizzell39
ok I will try this thanks and will follow up

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:42 pm
by dwhitfield
Fantastic. We'll keep the thread open as long as you need.

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:45 pm
by rbizzell39
Thanks!

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:46 pm
by rbizzell39
Is this what I need to put in the powershell script

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:48 pm
by dwhitfield

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:48 pm
by rbizzell39
I need to add this into my ini file

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:52 pm
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

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:53 pm
by rbizzell39
okay thanks!

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 3:53 pm
by dwhitfield
No problem. Let us know how it goes!

Re: Monitoring IIS and httpd connections

Posted: Mon Nov 07, 2016 4:06 pm
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