Need help In Configuring check_winfile

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.
sh.shekhar89
Posts: 52
Joined: Fri Oct 10, 2014 3:17 pm

Re: Need help In Configuring check_winfile

Post by sh.shekhar89 »

Hi Box293,

how can we define the service in the client?? can you share me so that i can test it??
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need help In Configuring check_winfile

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Need help In Configuring check_winfile

Post 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
       }
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: Need help In Configuring check_winfile

Post by sh.shekhar89 »

Hi Box293,

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


Thanks a lot for the help guys :)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Need help In Configuring check_winfile

Post by Box293 »

Excellent, glad we were able to help you out.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked