Page 1 of 1

[Help] check_windows_ plugin configuration

Posted: Fri Oct 24, 2014 6:39 am
by sh.shekhar89
Hi Friends,

Help me in configuring check_windows_updates.ps1, I am getting error : "Incorrect command line arguments supplied" [ screenshot attached]

But when i am trying to check from nagios server, i m getting the updates details . [screenshot attached]

" ./check_nrpe -H 192.168.160.129 -t 120 -c check_updates" = Getting all the updates avaliable.

Can any one help me in configuring??


Here is my command.cfg details :

define command{
command_name check_nrpe
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -t -c $ARG1$



My service defination :

define service{
use generic-service
host_name winserver
service_description Windows Update
check_command check_nrpe!check_updates
}

Re: [Help] check_windows_ plugin configuration

Posted: Fri Oct 24, 2014 1:28 pm
by Box293
sh.shekhar89 wrote:command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -t -c $ARG1$
You are missing the 120 value after -t

Re: [Help] check_windows_ plugin configuration

Posted: Fri Oct 24, 2014 2:06 pm
by sh.shekhar89
Hi Box293,

Thanx :) its working now