monitor directory size?

Bill Jacqmein wrjacqmein at gmail.com
Wed Feb 15 23:56:46 CET 2006


HP,

     Lets take the easier route. nsclient++ (
http://sourceforge.net/project/showfiles.php?group_id=131326) added checks
for Filesize since this thread started.
     checkout http://nscplus.medin.name/index.php/CheckFileSize

Hope this is helpful,

     Bill



On 2/14/06, HP Geeza <getbacktome3 at hotmail.com> wrote:
>
> Hi Bill,
>
> Im still confused as to what i need to do/run on the nagios server....and
> then how that in turn can send an alert if the value returned by the .bat
> file is over say 500MB?
>
> I've installed nsclient++ on the remote windows server....and in NSC.iniive
> got:
> command[check_cmd]=D:\hello.cmd
>
> hello.cmd contains:
> @echo off
> echo hello world.
> exit 1
>
> now using this as an example im wondering what i need to do/run from the
> nagios server inorder to check if the value returned by hello.cmd is
> "hellow
> world" and if so have a status of ok.
>
> sorry to bother you...but i i could really do with the help!
>
> >From: Bill Jacqmein <wrjacqmein at gmail.com>
> >To: HP Geeza <getbacktome3 at hotmail.com>
> >Subject: Re: [Nagios-users] monitor directory size?
> >Date: Tue, 14 Feb 2006 11:30:52 -0500
> >
> >in NSC.ini
> >
> >in the NRPE handlers section
> >
> >mycheck=c:\somecheck.bat
> >
> >
> >For coding the batch file
> >useful - http://nagiosplug.sourceforge.net/developer-guidelines.html
> >The main part is the return codes
> >
> >Numeric Value
> >
> >Service Status
> >
> >Status Description
> >
> >0
> >
> >OK
> >
> >The plugin was able to check the service and it appeared to be
> functioning
> >properly
> >
> >1
> >
> >Warning
> >
> >The plugin was able to check the service, but it appeared to be above
> some
> >"warning" threshold or did not appear to be working properly
> >
> >2
> >
> >Critical
> >
> >The plugin detected that either the service was not running or it was
> above
> >some "critical" threshold
> >
> >3
> >
> >Unknown
> >
> >Invalid command line arguments were supplied to the plugin or low-level
> >failures internal to the plugin (such as unable to fork, or open a tcp
> >socket) that prevent it from performing the specified operation.
> >Higher-level errors (such as name resolution errors, socket timeouts,
> etc)
> >are outside of the control of plugins and should generally NOT be
> reported
> >as UNKNOWN states.
> >
> >Hopeful this was enough get you closer to a solution. If not I have to
> >write
> >one in the near future so I will send how I went about creating the
> check.
> >
> >Thanks,
> >
> >       Bill
> >
> >On 2/14/06, HP Geeza <getbacktome3 at hotmail.com> wrote:
> > >
> > > Hi Bill,
> > >
> > > Im affraid im having some trouble with nsclient++ and running a batch
> > > files
> > > via check_nrep.  Could you please help me with the syntax that i need
> to
> > > use
> > > to setup the check on both the nagios server and remote windows
> server.
> > >
> > > any help would be great!
> > >
> > >
> > > >From: Bill Jacqmein <wrjacqmein at gmail.com>
> > > >To: HP Geeza <getbacktome3 at hotmail.com>
> > > >Subject: Re: [Nagios-users] monitor directory size?
> > > >Date: Mon, 13 Feb 2006 14:44:40 -0500
> > > >
> > > >nsclient++ has the ability to run batch files via check_nrep. Might
> be
> >an
> > > >option to do a dir and parse the filesize out of that.
> > > >
> > > >On 2/13/06, HP Geeza <getbacktome3 at hotmail.com> wrote:
> > > > >
> > > > > From what i can tell though check_snmp_storage.pl only allows you
> to
> > > >check
> > > > > for particular kinds of storage settings....what i need to do is
> > > monitor
> > > > > the
> > > > > size of a directory on a remote windows server for example,
> d:\data
> > > > >
> > > > > i am using nsclient at the moment but can't monitor directory size
> > > (only
> > > > > disk space).  Is there a way to monitor a directories size via
> > > snmp????
> > > > >
> > > > >
> > > > > >From: Hendrik Baecker <b00mer at gmx.net>
> > > > > >To: nagios-users at lists.sourceforge.net
> > > > > >Subject: Re: [Nagios-users] monitor directory size?
> > > > > >Date: Mon, 13 Feb 2006 12:44:00 +0100
> > > > > >
> > > > > >Google for: "check_snmp_storage.pl"
> > > > > >
> > > > > >
> > > > > >HP Geeza schrieb:
> > > > > >
> > > > > >>Hi All,
> > > > > >>
> > > > > >>I was wondering whether it is possible to monitor the size of a
> > > > > directory
> > > > > >>(eg find out how big it is in in MB or GBs) and then send an
> alert
> > > >when
> > > > > >>the size goes over a certain threshold?
> > > > > >>
> > > > > >>Any help would be great!
> > > > > >>
> > > > >
> >>_________________________________________________________________
> > > > > >>The new MSN Search Toolbar now includes Desktop search!
> > > > > >>http://toolbar.msn.co.uk/
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>-------------------------------------------------------
> > > > > >>This SF.net email is sponsored by: Splunk Inc. Do you grep
> through
> > > log
> > > > > >>files
> > > > > >>for problems?  Stop!  Download the new AJAX search engine that
> >makes
> > > > > >>searching your log files as easy as surfing the  web.  DOWNLOAD
> > > >SPLUNK!
> > > > >
> > > > >>
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > > >>_______________________________________________
> > > > > >>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: Splunk Inc. Do you grep
> through
> > > log
> > > > > >files
> > > > > >for problems?  Stop!  Download the new AJAX search engine that
> >makes
> > > > > >searching your log files as easy as surfing the  web.  DOWNLOAD
> > > SPLUNK!
> > > > >
> > > > >
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > > >_______________________________________________
> > > > > >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
> > > > >
> > > > > _________________________________________________________________
> > > > > Are you using the latest version of MSN Messenger? Download MSN
> > > >Messenger
> > > > > 7.5 today! http://messenger.msn.co.uk
> > > > >
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> >log
> > > > > files
> > > > > for problems?  Stop!  Download the new AJAX search engine that
> makes
> > > > > searching your log files as easy as surfing the  web.  DOWNLOAD
> > > SPLUNK!
> > > > >
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > > _______________________________________________
> > > > > 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
> > > > >
> > >
> > > _________________________________________________________________
> > > The new MSN Search Toolbar now includes Desktop search!
> > > http://toolbar.msn.co.uk/
> > >
> > >
>
> _________________________________________________________________
> Are you using the latest version of MSN Messenger? Download MSN Messenger
> 7.5 today! http://messenger.msn.co.uk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060215/fceb50f4/attachment.html>


More information about the Users mailing list