howto to count number of files in particular directory on windows server?

scott_yem at agilent.com scott_yem at agilent.com
Tue Sep 14 20:22:39 CEST 2004


I have had a similar experience, but found a version of grep and awk that works on a windows system (both are Free), I just had to put them in the path variable or in the Windows\system32 directory and then would run some custom scripts with the nrpe or some other plugin as I was using another monitoring system at that time.  This worked well for many file system items that we needed to monitor.

Scott Yem
Research Computing Services
Agilent Laboratories
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Bolduc,
Blair
Sent: Tuesday, September 14, 2004 8:34 AM
To: 'Nagios (E-mail)'
Subject: RE: [Nagios-users] howto to count number of files in particular
directory on windows server?


We had this exact problem.
We wrote a small c program (30k) that resides on the fax-server that counts
the tif files in the fax directory and return the appropriate exit code to
nrpe_nt.
This requires that you have the check_nrpe plugin on your nagios server, and
nrpe_nt installed on the windows fax-server.
NSClient doesn't allow you to execute the exe but nrpe_nt does.

If you want more info or a copy of the code let me know.

Blair.



-----Original Message-----
From: Alexander Schaefer [mailto:samogonka at gmx.net]
Sent: Tuesday, September 14, 2004 09:36
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] howto to count number of files in particular
directory on windows server?


Hello,

i am searching for possibility to count the files nuber in the particular
directory on windows server (Win NT, w2k, win2003).
I will trigger the nagios notification if the Fax-Server doesn't send faxes:
unfortunatly the fax-server runs based on windows-server and sometimes the
fax
service hangs, without the services goes down, which will be controlled by
NSClient The only symptom, i can recognize is the growing files numer in the
FAX-OUT directory...

Has anybody solved similar problem?

Thanks for all your ideas!

Alex



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.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


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
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


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
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