MS IIS Application Pool

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: MS IIS Application Pool

Post by jkinning »

I tested out your new code but got an error.

Code: Select all

./check_nrpe -H eas3t -t 30 -c check_ms_iis_application_pool -a '-A EasServices'
At C:\Program
Files\NSClient++\scripts\powershell\check_ms_iis_application_pool.ps1:19
char:13
+ #Requires ▒?"Version 2.0
+             ~~~~~~~~~~~~
The string is missing the terminator: ".
At C:\Program
Files\NSClient++\scripts\powershell\check_ms_iis_application_pool.ps1:19
char:11
+ #Requires ▒?"Version 2.0
+           ~~~~~~~~~~~~~~
Cannot process the #requires statement because it is not in the correct format.
The #requires statement must be in one of the following formats:
 "#requires -shellid <shellID>"
 "#requires -version <major.minor>"
 "#requires -pssnapin <psSnapInName> [-version <major.minor>]"
 "#requires -modules <ModuleSpecification>"
 "#requires -runasadministrator"
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
Changed line to #Requires –Version 2.0 and no more errors. I downloaded the tar.gz version of the latest code.

Thanks for this and the quick modification to the code! I don't know what issues or the differences between OnDemand and AlwaysRunning but I did just change the startup type to fix the problem originally. I am using the latest code with OnDemand so I'll give it a couple days and if any issues I'll report them here. Otherwise, I'll post it is safe to close this one.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: MS IIS Application Pool

Post by mcapra »

Keep us posted for sure!
Former Nagios employee
https://www.mcapra.com/
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: MS IIS Application Pool

Post by WillemDH »

Weird, I'm using

Code: Select all

#Requires –Version 2.0
in alot of my scripts. Never had any issues with it. I just tested this latest verion and I'm not seeing that error.

Grtz
Nagios XI 5.8.1
https://outsideit.net
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: MS IIS Application Pool

Post by rkennedy »

I'll leave this open should anything else come up over the weekend!
Former Nagios Employee
Locked