Re: [Nagios-users] monitor directory size?

2006-02-15 Thread HP Geeza

Hi All,

I am having some difficulty with using nclient++ and was wondering if 
somebody could help??


I have download nslicnet++ (from 
http://nscplus.medin.name/index.php/Main_Page) and installed it on a remote 
windows server.  I then modified the NSC.ini file and added a line:


command[check_cmd]=D:\hello.cmd

I then created a simple .cmd file called hello.cmd which contained the 
following:


@echo off
echo hello world
exit 1

MY QUESTION IS:
what do i need to do/run on the nagios server inorder to run a check against 
hello.cmd for example?




From: Bill Jacqmein [EMAIL PROTECTED]
To: HP Geeza [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 To: HP Geeza [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] wrote:
  
   From what i can tell though check_snmp_storage.pl only allows you to
 check
   for particular kinds of storage settingswhat 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 [EMAIL PROTECTED]
   To: nagios-users@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=lnkkid=103432bid=230486dat=121642
   ___
   Nagios-users mailing list
   Nagios-users@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=lnkkid=103432bid=230486dat=121642
   ___
   Nagios-users mailing list
   Nagios-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/nagios-users
   ::: Please include Nagios version, plugin version (-v) and OS when

Re: [Nagios-users] monitor directory size?

2006-02-15 Thread Toto Capuccino
HiEverything is so well documented in nsclient++ doc that i wonder why you prefer asking here. Anyway you should have first the check_nrpe plugin. Then you just have to define command in checkcommands using ./check_nrpe -H hostname -c check_cmd
define command { 
 command_name Hello 
 command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd 
}Please run check_nrpe -h to get the help of the plugin.cheers2006/2/15, HP Geeza [EMAIL PROTECTED]:
Hi All,I am having some difficulty with using nclient++ and was wondering ifsomebody could help??
I have download nslicnet++ (fromhttp://nscplus.medin.name/index.php/Main_Page) and installed it on a remotewindows server.I then modified the NSC.ini
 file and added a line:command[check_cmd]=D:\hello.cmdI then created a simple .cmd file called hello.cmd which contained thefollowing:@echo offecho hello worldexit 1MY QUESTION IS:
what do i need to do/run on the nagios server inorder to run a check againsthello.cmd for example?From: Bill Jacqmein [EMAIL PROTECTED]To: HP Geeza 
[EMAIL PROTECTED]Subject: Re: [Nagios-users] monitor directory size?Date: Tue, 14 Feb 2006 11:30:52 -0500in NSC.iniin the NRPE handlers section
mycheck=c:\somecheck.batFor coding the batch fileuseful - http://nagiosplug.sourceforge.net/developer-guidelines.html
The main part is the return codesNumeric ValueService StatusStatus Description0OKThe plugin was able to check the service and it appeared to be functioning
properly1WarningThe plugin was able to check the service, but it appeared to be above somewarning threshold or did not appear to be working properly
2CriticalThe plugin detected that either the service was not running or it was abovesome critical threshold3Unknown
Invalid command line arguments were supplied to the plugin or low-levelfailures internal to the plugin (such as unable to fork, or open a tcpsocket) 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 reportedas UNKNOWN states.Hopeful this was enough get you closer to a solution. If not I have to
writeone in the near future so I will send how I went about creating the check.Thanks, BillOn 2/14/06, HP Geeza 
[EMAIL PROTECTED] 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 
[EMAIL PROTECTED]  To: HP Geeza [EMAIL PROTECTED]  Subject: Re: [Nagios-users] monitor directory size?
  Date: Mon, 13 Feb 2006 14:44:40 -0500nsclient++ has the ability to run batch files via check_nrep. Might bean  option to do a dir and parse the filesize out of that.
On 2/13/06, HP Geeza [EMAIL PROTECTED] wrote:   From what i can tell though check_snmp_storage.pl only allows you to
  checkfor particular kinds of storage settingswhat i need to do is  monitorthesize 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  (onlydisk space).Is there a way to monitor a directories size via
  snmp  From: Hendrik Baecker [EMAIL PROTECTED]To: 
nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] monitor directory size?Date: Mon, 13 Feb 2006 12:44:00 +0100Google 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  whenthe 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
  logfilesfor problems?Stop!Download the new AJAX search engine thatmakessearching your log files as easy as surfing theweb.DOWNLOAD
  SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. ::: Messages without supporting info willriskbeingsent to /dev/null
---This SF.net email is sponsored by: Splunk Inc. Do you grep through
  logfilesfor problems?Stop!Download the new AJAX search engine thatmakessearching your log files as easy as surfing

Re: [Nagios-users] monitor directory size?

2006-02-15 Thread HP Geeza

Appologies for the numerous emails!!

I noticed that nsclient++ has a checkDisk.dll which you can use to check the 
size of one of more files or directories.  So this sounds like what i need 
to use.but i still dont know how to check this from the nagios server - 
is there another plugin that i need to run on the nagios serverwhat to 
have in the config files???




From: Bill Jacqmein [EMAIL PROTECTED]
To: HP Geeza [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 To: HP Geeza [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] wrote:
  
   From what i can tell though check_snmp_storage.pl only allows you to
 check
   for particular kinds of storage settingswhat 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 [EMAIL PROTECTED]
   To: nagios-users@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=lnkkid=103432bid=230486dat=121642
   ___
   Nagios-users mailing list
   Nagios-users@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=lnkkid=103432bid=230486dat=121642
   ___
   Nagios-users mailing list
   Nagios-users@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

Re: [Nagios-users] monitor directory size?

2006-02-15 Thread HP Geeza

Hi,

thanks for your relpy! - i have read the documentation but im affraid im 
still having trouble with a particular check.


I have compiled and installed the check_nrpe plugin on my nagios box...i 
then edited the following config files:  ive got a host setup


checkcommands.cfg
define command{
   command_namecheck_directory_size
   command_linecheck_nrpe -H $HOSTADDRESS$ -c CheckFileSize
   }

services.cfg
define service{
   use  generic-service ; Name 
of service template to use

   host_name   testServer
   service_description Directory Size
   check_commandcheck_directory_size
   }

NOW i have read the CheckDisk documentation for the nsclient++.  However i 
dont quiet understand how i setup the check in the NSC.ini file.  There is 
an example in the CheckDisk documentation section which has the following 
(this is what i almost need).


EXAMPLE 1:-

Check the size of the windows directory and make sure it stays below 1 
gigabyte:

CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:WIN=c:\WINDOWS\*.*
WARNING: WIN: 2G (2325339822B)|WIN=2325339822;1073741824;4294967296

define command {
   command_name CheckFileSize
   command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a 
ShowAll MaxWarn=$ARG1$ MaxCrit=$ARG2$ File:$ARG4$=$ARG5$

}

   check_command CheckFileSize!1024M!4096M!WIN!c:\WINDOWS\*.*


I am abit puzzled on what i need to enter in the NSC.ini file.
I have a directory on the 'd' drive called ghosti would like to monitor 
the size of this directory and raise an alert when it reaches say 200GB.


Could you please help me edit the NSC.ini file and perform this check???

your help will be much appreciated




From: Toto Capuccino [EMAIL PROTECTED]
To: HP Geeza [EMAIL PROTECTED]
CC: nagios-users@lists.sourceforge.net, [EMAIL PROTECTED]
Subject: Re: [Nagios-users] monitor directory size?
Date: Wed, 15 Feb 2006 13:54:21 +0100

Hi

Everything is so well documented in nsclient++ doc that i wonder why you
prefer asking here. Anyway you should have first the check_nrpe plugin. 
Then

you just have to define command in checkcommands using ./check_nrpe -H
hostname -c check_cmd

define command {

command_name Hello

command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd

}
Please run check_nrpe -h to get the help of the plugin.

cheers
2006/2/15, HP Geeza [EMAIL PROTECTED]:

 Hi All,

 I am having some difficulty with using nclient++ and was wondering if
 somebody could help??

 I have download nslicnet++ (from
 http://nscplus.medin.name/index.php/Main_Page) and installed it on a
 remote
 windows server.  I then modified the NSC.ini file and added a line:

 command[check_cmd]=D:\hello.cmd

 I then created a simple .cmd file called hello.cmd which contained the
 following:

 @echo off
 echo hello world
 exit 1

 MY QUESTION IS:
 what do i need to do/run on the nagios server inorder to run a check
 against
 hello.cmd for example?


 From: Bill Jacqmein [EMAIL PROTECTED]
 To: HP Geeza [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
   To: HP Geeza [EMAIL PROTECTED]
   Subject: Re: [Nagios-users] monitor directory size?
   Date: Mon, 13 Feb 2006 14:44:40 -0500
   
   nsclient++ has the ability

Re: [Nagios-users] monitor directory size?

2006-02-15 Thread HP Geeza

HI Toto,

I've even tried what you suggested.but when i run: ./check_nrpe -H 
host -c check_cmd


i get a connection refused :-(

i'm even running the nsclient++ on the remote windows server as a local 
admin!


here's a sample of the important bits out of my NSC.ini file:

FileLogger.dll
;CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
;SysTray.dll
;CheckEventLog.dll
;CheckHelpers.dll

;# ALLOWED HOST ADDRESSES
allowed_hosts=i have put the ip address of the nagios server here

[NSClient]
;# NSCLIENT PORT NUMBER
;  This is the port the NSClientListener.dll will listen to.
port=12489

[NRPE]
;# NRPE PORT NUMBER
;  This is the port the NRPEListener.dll will listen to.
port=5666

[NRPE Handlers]
command[check_cmd]=D:\hello.cmd


any suggestions on what im doing wrong???



From: Toto Capuccino [EMAIL PROTECTED]
To: HP Geeza [EMAIL PROTECTED]
CC: nagios-users@lists.sourceforge.net, [EMAIL PROTECTED]
Subject: Re: [Nagios-users] monitor directory size?
Date: Wed, 15 Feb 2006 13:54:21 +0100

Hi

Everything is so well documented in nsclient++ doc that i wonder why you
prefer asking here. Anyway you should have first the check_nrpe plugin. 
Then

you just have to define command in checkcommands using ./check_nrpe -H
hostname -c check_cmd

define command {

command_name Hello

command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd

}
Please run check_nrpe -h to get the help of the plugin.

cheers
2006/2/15, HP Geeza [EMAIL PROTECTED]:

 Hi All,

 I am having some difficulty with using nclient++ and was wondering if
 somebody could help??

 I have download nslicnet++ (from
 http://nscplus.medin.name/index.php/Main_Page) and installed it on a
 remote
 windows server.  I then modified the NSC.ini file and added a line:

 command[check_cmd]=D:\hello.cmd

 I then created a simple .cmd file called hello.cmd which contained the
 following:

 @echo off
 echo hello world
 exit 1

 MY QUESTION IS:
 what do i need to do/run on the nagios server inorder to run a check
 against
 hello.cmd for example?


 From: Bill Jacqmein [EMAIL PROTECTED]
 To: HP Geeza [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
   To: HP Geeza [EMAIL PROTECTED]
   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 [EMAIL PROTECTED] wrote:

 From what i can tell though check_snmp_storage.pl only allows 
you

 to
   check
 for particular kinds of storage settingswhat 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 [EMAIL PROTECTED]
 To: nagios-users@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

Re: [Nagios-users] monitor directory size?

2006-02-15 Thread Toto Capuccino
Not sure, did you check firewall from both side.Is nsclient installed as a service, take a look also at windows logs to see errors.2006/2/15, HP Geeza 
[EMAIL PROTECTED]:HI Toto,I've even tried what you suggested.but when i run: ./check_nrpe -H
host -c check_cmdi get a connection refused :-(i'm even running the nsclient++ on the remote windows server as a localadmin!here's a sample of the important bits out of my NSC.ini file:
FileLogger.dll;CheckSystem.dllCheckDisk.dllNSClientListener.dllNRPEListener.dll;SysTray.dll;CheckEventLog.dll;CheckHelpers.dll;# ALLOWED HOST ADDRESSESallowed_hosts=i have put the ip address of the nagios server here
[NSClient];# NSCLIENT PORT NUMBER;This is the port the NSClientListener.dll will listen to.port=12489[NRPE];# NRPE PORT NUMBER;This is the port the NRPEListener.dll will listen to.
port=5666[NRPE Handlers]command[check_cmd]=D:\hello.cmdany suggestions on what im doing wrong???From: Toto Capuccino [EMAIL PROTECTED]
To: HP Geeza [EMAIL PROTECTED]CC: nagios-users@lists.sourceforge.net, 
[EMAIL PROTECTED]Subject: Re: [Nagios-users] monitor directory size?Date: Wed, 15 Feb 2006 13:54:21 +0100HiEverything is so well documented in nsclient++ doc that i wonder why you
prefer asking here. Anyway you should have first the check_nrpe plugin.Thenyou just have to define command in checkcommands using ./check_nrpe -Hhostname -c check_cmddefine command {
 command_name Hello command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd}Please run check_nrpe -h to get the help of the plugin.cheers2006/2/15, HP Geeza 
[EMAIL PROTECTED]:   Hi All,   I am having some difficulty with using nclient++ and was wondering if  somebody could help??
   I have download nslicnet++ (from  http://nscplus.medin.name/index.php/Main_Page) and installed it on a  remote
  windows server.I then modified the NSC.ini file and added a line:   command[check_cmd]=D:\hello.cmd   I then created a simple .cmd file called hello.cmd which contained the
  following:   @echo off  echo hello world  exit 1   MY QUESTION IS:  what do i need to do/run on the nagios server inorder to run a check
  against  hello.cmd for example?From: Bill Jacqmein [EMAIL PROTECTED]  To: HP Geeza 
[EMAIL PROTECTED]  Subject: Re: [Nagios-users] monitor directory size?  Date: Tue, 14 Feb 2006 11:30:52 -0500in 
NSC.iniin the NRPE handlers sectionmycheck=c:\somecheck.bat  For coding the batch file  useful - 
http://nagiosplug.sourceforge.net/developer-guidelines.html  The main part is the return codesNumeric Value
Service StatusStatus Description0OKThe plugin was able to check the service and it appeared to be
  functioning  properly1WarningThe plugin was able to check the service, but it appeared to be above
  some  warning threshold or did not appear to be working properly2CriticalThe plugin detected that either the service was not running or it was
  above  some critical threshold3UnknownInvalid 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 [EMAIL PROTECTED] wrote:   Hi Bill,   Im affraid im having some trouble with nsclient++ and running a
batchfilesvia check_nrep.Could you please help me with the syntax that ineed  touseto setup the check on both the nagios server and remote windows
  server.   any help would be great!  From: Bill Jacqmein 
[EMAIL PROTECTED]To: HP Geeza [EMAIL PROTECTED]Subject: Re: [Nagios-users] monitor directory size?
Date: Mon, 13 Feb 2006 14:44:40 -0500nsclient++ 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 [EMAIL PROTECTED]
 wrote:   From what i can tell though check_snmp_storage.pl only allowsyou  tocheck  for particular kinds of storage settingswhat 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 viasnmp  
  From: Hendrik Baecker [EMAIL PROTECTED]  To: nagios-users@lists.sourceforge.net
  Subject: Re: [Nagios-users] monitor directory size?  Date: Mon, 13 Feb 2006 12:44:00 +0100Google for: check_snmp_storage.pl
  HP Geeza schrieb:Hi All,
I

Re: [Nagios-users] monitor directory size?

2006-02-15 Thread HP Geeza

nope no firewall getting in the way :-(

is there anything else i can try to fix this problem



From: Toto Capuccino [EMAIL PROTECTED]
To: HP Geeza [EMAIL PROTECTED]
CC: nagios-users@lists.sourceforge.net, [EMAIL PROTECTED]
Subject: Re: [Nagios-users] monitor directory size?
Date: Wed, 15 Feb 2006 18:28:25 +0100

Not sure, did you check firewall from both side.
Is nsclient installed as a service, take a look also at windows logs to see
errors.
2006/2/15, HP Geeza [EMAIL PROTECTED]:

 HI Toto,

 I've even tried what you suggested.but when i run: ./check_nrpe -H
 host -c check_cmd

 i get a connection refused :-(

 i'm even running the nsclient++ on the remote windows server as a local
 admin!

 here's a sample of the important bits out of my NSC.ini file:

 FileLogger.dll
 ;CheckSystem.dll
 CheckDisk.dll
 NSClientListener.dll
 NRPEListener.dll
 ;SysTray.dll
 ;CheckEventLog.dll
 ;CheckHelpers.dll

 ;# ALLOWED HOST ADDRESSES
 allowed_hosts=i have put the ip address of the nagios server here

 [NSClient]
 ;# NSCLIENT PORT NUMBER
 ;  This is the port the NSClientListener.dll will listen to.
 port=12489

 [NRPE]
 ;# NRPE PORT NUMBER
 ;  This is the port the NRPEListener.dll will listen to.
 port=5666

 [NRPE Handlers]
 command[check_cmd]=D:\hello.cmd


 any suggestions on what im doing wrong???


 From: Toto Capuccino [EMAIL PROTECTED]
 To: HP Geeza [EMAIL PROTECTED]
 CC: nagios-users@lists.sourceforge.net, [EMAIL PROTECTED]
 Subject: Re: [Nagios-users] monitor directory size?
 Date: Wed, 15 Feb 2006 13:54:21 +0100
 
 Hi
 
 Everything is so well documented in nsclient++ doc that i wonder why 
you

 prefer asking here. Anyway you should have first the check_nrpe plugin.
 Then
 you just have to define command in checkcommands using ./check_nrpe -H
 hostname -c check_cmd
 
 define command {
 
  command_name Hello
 
  command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd
 
 }
 Please run check_nrpe -h to get the help of the plugin.
 
 cheers
 2006/2/15, HP Geeza [EMAIL PROTECTED]:
  
   Hi All,
  
   I am having some difficulty with using nclient++ and was wondering 
if

   somebody could help??
  
   I have download nslicnet++ (from
   http://nscplus.medin.name/index.php/Main_Page) and installed it on a
   remote
   windows server.  I then modified the NSC.ini file and added a line:
  
   command[check_cmd]=D:\hello.cmd
  
   I then created a simple .cmd file called hello.cmd which contained 
the

   following:
  
   @echo off
   echo hello world
   exit 1
  
   MY QUESTION IS:
   what do i need to do/run on the nagios server inorder to run a check
   against
   hello.cmd for example?
  
  
   From: Bill Jacqmein [EMAIL PROTECTED]
   To: HP Geeza [EMAIL PROTECTED]
   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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 To: HP Geeza [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] wrote:
  
   From what i can tell though

Re: [Nagios-users] monitor directory size?

2006-02-15 Thread Bill Jacqmein
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/CheckFileSizeHope this is helpful, Bill
On 2/14/06, HP Geeza [EMAIL PROTECTED] wrote:
Hi Bill,Im still confused as to what i need to do/run on the nagios serverandthen how that in turn can send an alert if the value returned by the .batfile is over say 500MB?I've installed nsclient++ on the remote windows serverand in 
NSC.ini ivegot:command[check_cmd]=D:\hello.cmdhello.cmd contains:@echo offecho hello world.exit 1now using this as an example im wondering what i need to do/run from thenagios server inorder to check if the value returned by 
hello.cmd is hellowworld and if so have a status of ok.sorry to bother you...but i i could really do with the help!From: Bill Jacqmein [EMAIL PROTECTED]
To: HP Geeza [EMAIL PROTECTED]Subject: Re: [Nagios-users] monitor directory size?Date: Tue, 14 Feb 2006 11:30:52 -0500
in NSC.iniin the NRPE handlers sectionmycheck=c:\somecheck.batFor coding the batch fileuseful - 
http://nagiosplug.sourceforge.net/developer-guidelines.htmlThe main part is the return codesNumeric ValueService StatusStatus Description0
OKThe plugin was able to check the service and it appeared to be functioningproperly1WarningThe plugin was able to check the service, but it appeared to be above some
warning threshold or did not appear to be working properly2CriticalThe plugin detected that either the service was not running or it was abovesome critical threshold
3UnknownInvalid command line arguments were supplied to the plugin or low-levelfailures internal to the plugin (such as unable to fork, or open a tcpsocket) 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 reportedas UNKNOWN states.Hopeful this was enough get you closer to a solution. If not I have to
writeone in the near future so I will send how I went about creating the check.Thanks, BillOn 2/14/06, HP Geeza 
[EMAIL PROTECTED] 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 
[EMAIL PROTECTED]  To: HP Geeza [EMAIL PROTECTED]  Subject: Re: [Nagios-users] monitor directory size?
  Date: Mon, 13 Feb 2006 14:44:40 -0500nsclient++ has the ability to run batch files via check_nrep. Might bean  option to do a dir and parse the filesize out of that.
On 2/13/06, HP Geeza [EMAIL PROTECTED] wrote:   From what i can tell though check_snmp_storage.pl only allows you to
  checkfor particular kinds of storage settingswhat i need to do is  monitorthesize 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  (onlydisk space).Is there a way to monitor a directories size via
  snmp  From: Hendrik Baecker [EMAIL PROTECTED]To: 
nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] monitor directory size?Date: Mon, 13 Feb 2006 12:44:00 +0100Google 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  whenthe 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
  logfilesfor problems?Stop!Download the new AJAX search engine thatmakessearching your log files as easy as surfing theweb.DOWNLOAD
  SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. ::: Messages without supporting info willriskbeingsent to /dev/null
---This SF.net email is sponsored by: Splunk Inc. Do you grep through
  logfilesfor problems?Stop!Download the new AJAX search engine thatmakessearching your log files as easy as surfing theweb.DOWNLOAD
  SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642

Re: [Nagios-users] monitor directory size?

2006-02-14 Thread Dirk H. Schulz

Hi HP,

HP Geeza schrieb:

From what i can tell though check_snmp_storage.pl only allows you to 
check for particular kinds of storage settingswhat 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



As far as I understand SNMP it is quite easy to tell: If there is an 
object for that in the MIB of the SNMP client on this windows machine, 
then it should be fairly easy to rewrite check_snmp_storage.pl (or write 
your own script) to query that object.

So have a look at the MIB of your SNMP service on the winX box.

Dirk





From: Hendrik Baecker [EMAIL PROTECTED]
To: nagios-users@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=lnkkid=103432bid=230486dat=121642 


___
Nagios-users mailing list
Nagios-users@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=lnkkid=103432bid=230486dat=121642
___
Nagios-users mailing list
Nagios-users@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=lnkkid=103432bid=230486dat=121642
___
Nagios-users mailing list
Nagios-users@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=lnkkid=103432bid=230486dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] monitor directory size?

2006-02-13 Thread HP Geeza
From what i can tell though check_snmp_storage.pl only allows you to check 
for particular kinds of storage settingswhat 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 [EMAIL PROTECTED]
To: nagios-users@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=lnkkid=103432bid=230486dat=121642
___
Nagios-users mailing list
Nagios-users@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=lnkkid=103432bid=230486dat=121642
___
Nagios-users mailing list
Nagios-users@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=lnkkid=103432bid=230486dat=121642
___
Nagios-users mailing list
Nagios-users@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