Page 3 of 3

Re: IIS sites monitoring

Posted: Fri Dec 16, 2016 12:22 am
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

Re: IIS sites monitoring

Posted: Fri Dec 16, 2016 11:22 am
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.

Re: IIS sites monitoring

Posted: Tue Dec 20, 2016 9:32 am
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.

Re: IIS sites monitoring

Posted: Tue Dec 20, 2016 4:49 pm
by avandemore
Can you show the output client side with the same arguments your trying to pass?

What does your nsclient.log show?

Re: IIS sites monitoring

Posted: Tue Dec 20, 2016 4:53 pm
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'

Re: IIS sites monitoring

Posted: Thu Dec 22, 2016 11:30 am
by Naveed
Hello,

This issue was resolved.

Thanks alot for your help.

You may close this thread.