IIS sites monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: IIS sites monitoring

Post by Naveed »

Its not been working for me from even command line..

Please help me...

[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a 'Sites 0 sites01,oldsite'
CRITICAL: Argument: Sites Value: 0 Error: Illegal arguments detected: Sites
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a 'Sites sites01,oldsite'
CRITICAL: Argument: Sites Value: sites01 oldsite Error: Illegal arguments detected: Sites
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a 'Sites RealTimeService'
CRITICAL: Argument: Sites Value: RealTimeService Error: Illegal arguments detected: Sites
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a 'AppPool RealTimeService'
CRITICAL: Argument: AppPool Value: RealTimeService Error: Illegal arguments detected: AppPool
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a 'AppPool' RealTimeService
CRITICAL: Script needs mandatory parameters to work.
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a AppPool RealTimeService
CRITICAL: Script needs mandatory parameters to work.
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a AppPool 'RealTimeService'
CRITICAL: Script needs mandatory parameters to work.
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a 'Sites RealTimeService'
CRITICAL: Argument: Sites Value: RealTimeService Error: Illegal arguments detected: Sites
[root@Nagios-VM libexec]# ./check_nrpe -H 1.2.3.4 -t 30 -c check_iis -a 'Sites 0 MagentoAPICheck ,RealTimeService'
CRITICAL: Argument: Sites Value: 0 Error: Illegal arguments detected: Sites
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: IIS sites monitoring

Post by rkennedy »

Please show us your testing over the command line on the Windows machine, if you cannot get it working here then we're a bit stuck for the help we can provide, as this is a third party plugin.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: IIS sites monitoring

Post by Naveed »

command on client side..

.\check_iis.ps1 -checktype AppPool -Exclude AXREALTIMESTATUS -Debugmode $true

OK: All Application Pools are running. [33]

command on nagios xi is also attached.

result is not printing on nagios xi screen.
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: IIS sites monitoring

Post by avandemore »

Can you show the output client side with the same arguments your trying to pass?

What does your nsclient.log show?
Previous Nagios employee
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: IIS sites monitoring

Post by tgriep »

Can you login to the Nagios server, run the following command and post the output? Replace xxx.xxx.xxx.xxx with the IP address of the windows server.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -t 30 -c check_iis -a '-checktype AppPool -Exclude AXREALTIMESTATUS -Debugmode $true'
Be sure to check out our Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: IIS sites monitoring

Post by Naveed »

Hello,

This issue was resolved.

Thanks alot for your help.

You may close this thread.
Locked