[Help] check_windows_ plugin configuration

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sh.shekhar89
Posts: 52
Joined: Fri Oct 10, 2014 3:17 pm

[Help] check_windows_ plugin configuration

Post 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
}
Attachments
Error
Error
From Nagios Server,Its working Fine
From Nagios Server,Its working Fine
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: [Help] check_windows_ plugin configuration

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sh.shekhar89
Posts: 52
Joined: Fri Oct 10, 2014 3:17 pm

Re: [Help] check_windows_ plugin configuration

Post by sh.shekhar89 »

Hi Box293,

Thanx :) its working now
Locked