Page 2 of 2

Re: Need help In Configuring check_winfile

Posted: Mon Oct 20, 2014 12:44 pm
by sh.shekhar89
Hi Box293,

how can we define the service in the client?? can you share me so that i can test it??

Re: Need help In Configuring check_winfile

Posted: Mon Oct 20, 2014 1:12 pm
by slansing
Are you asking about how to hard code that argument on the NRPE host's end? Or setting up the service in Core? The How-To-Monitor sections here do a great job of showing examples:

http://nagios.sourceforge.net/docs/3_0/toc.html

Re: Need help In Configuring check_winfile

Posted: Mon Oct 20, 2014 1:14 pm
by Box293
In your command file

Code: Select all

define command{
        command_name check_nrpe
        command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$
        }
In your service file

Code: Select all

define service{
       use                     generic-service
       host_name               winserver
       service_description     Files Check
       check_command           check_nrpe!CheckFiles!-a path='C:\\Program Files\\NSClient++\\' pattern=*.* 'master-syntax={%total% Files Found}' MaxWarn=500 MaxCrit=3000
       }

Re: Need help In Configuring check_winfile

Posted: Mon Oct 20, 2014 1:31 pm
by sh.shekhar89
Hi Box293,

Thanks a lot for the help :) it finally it worked.


Thanks a lot for the help guys :)

Re: Need help In Configuring check_winfile

Posted: Mon Oct 20, 2014 1:50 pm
by Box293
Excellent, glad we were able to help you out.