NRPE Plug-in to count files

Kent Saunders kgs at uvm.edu
Thu Jun 26 19:41:35 CEST 2008


Put this in the remote systems nrpe.cfg file... (and restart nrpe)
command[check_numoffiles]=/usr/local/nagios/libexec/check_numoffiles.sh

Then from the Nagios host call that script by running...
/usr/local/nagios/libexec/check_nrpe -H hostname -c check_numoffiles

-kent

Hart, Harry M. CTR USJFCOM SUPPORT.SUPPORT JTC-I wrote:
>  
>
>
> Harry M. Hart Systems integrator
> (757) 203-7422
> DSN 668-7422
> Harry.Hart at intel.jwfc.jfcom.smil.mil
> Harry.Hart at jwfc.ic.gov
>
> -----Original Message-----
> From: Aaron M. Segura [mailto:aaron.segura at cabelas.com] 
> Sent: Thursday, June 26, 2008 1:25 PM
> To: Hart, Harry M. CTR USJFCOM SUPPORT.SUPPORT JTC-I
> Cc: nagios Mailinglist
> Subject: Re: [Nagios-users] NRPE Plug-in to count files
>
>   
>> This seems like the kind of thing nagiosexchange was built for.  Have
>>     
> you checked there yet?
>
> I downloaded the check_numoffiles.sh script and modified it for use but
> that only works on the local machine. I need to count on remote systems.
>
>
> On Thu, 2008-06-26 at 12:59 -0400, Hart, Harry M. CTR USJFCOM
> SUPPORT.SUPPORT JTC-I wrote:
>   
>> I am resending this because I neglected to say that I wanted to 
>> monitor file numbers on remote hosts.
>>
>>
>> Hello all
>>
>> Does anyone know of a plug-in that I can get that will count files in 
>> a directory? (Linux and Win)
>>
>> Thanks
>> Harry
>>
>> Harry M. Hart Systems integrator
>> SAIC
>> USJFCOM JIOC DCGS-A
>> (757) 203-7422
>> DSN 668-7422
>> Harry.Hart at intel.jwfc.jfcom.smil.mil
>> Harry.Hart at jwfc.ic.gov
>>
>>
>>
>> ----------------------------------------------------------------------
>> --- Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for just about anything 
>> Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>>     
> reporting any issue. 
>   
>> ::: Messages without supporting info will risk being sent to /dev/null
>>     
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>   


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list