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

Bolduc, Blair BolducB at brandonrha.mb.ca
Tue Sep 14 17:33:41 CEST 2004


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





More information about the Users mailing list