<br>Not sure, did you check firewall from both side.<br>Is nsclient installed as a service, take a look also at windows logs to see errors.<br><div><span class="gmail_quote">2006/2/15, HP Geeza <<a href="mailto:getbacktome3@hotmail.com">
getbacktome3@hotmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HI Toto,<br><br>I've even tried what you suggested.....but when i run: ./check_nrpe -H
<br><host> -c check_cmd<br><br>i get a connection refused :-(<br><br>i'm even running the nsclient++ on the remote windows server as a local<br>admin!<br><br>here's a sample of the important bits out of my NSC.ini file:
<br><br>FileLogger.dll<br>;CheckSystem.dll<br>CheckDisk.dll<br>NSClientListener.dll<br>NRPEListener.dll<br>;SysTray.dll<br>;CheckEventLog.dll<br>;CheckHelpers.dll<br><br>;# ALLOWED HOST ADDRESSES<br>allowed_hosts=<i have put the ip address of the nagios server here>
<br><br>[NSClient]<br>;# NSCLIENT PORT NUMBER<br>;  This is the port the NSClientListener.dll will listen to.<br>port=12489<br><br>[NRPE]<br>;# NRPE PORT NUMBER<br>;  This is the port the NRPEListener.dll will listen to.<br>
port=5666<br><br>[NRPE Handlers]<br>command[check_cmd]=D:\hello.cmd<br><br><br>any suggestions on what im doing wrong???<br><br><br>>From: Toto Capuccino <<a href="mailto:shoktai@gmail.com">shoktai@gmail.com</a>>
<br>>To: HP Geeza <<a href="mailto:getbacktome3@hotmail.com">getbacktome3@hotmail.com</a>><br>>CC: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>, <a href="mailto:b00mer@gmx.net">
b00mer@gmx.net</a><br>>Subject: Re: [Nagios-users] monitor directory size?<br>>Date: Wed, 15 Feb 2006 13:54:21 +0100<br>><br>>Hi<br>><br>>Everything is so well documented in nsclient++ doc that i wonder why you
<br>>prefer asking here. Anyway you should have first the check_nrpe plugin.<br>>Then<br>>you just have to define command in checkcommands using ./check_nrpe -H<br>>hostname -c check_cmd<br>><br>>define command {
<br>><br>>     command_name Hello<br>><br>>     command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd<br>><br>>}<br>>Please run check_nrpe -h to get the help of the plugin.<br>><br>>cheers<br>>2006/2/15, HP Geeza <
<a href="mailto:getbacktome3@hotmail.com">getbacktome3@hotmail.com</a>>:<br>> ><br>> > Hi All,<br>> ><br>> > I am having some difficulty with using nclient++ and was wondering if<br>> > somebody could help??
<br>> ><br>> > I have download nslicnet++ (from<br>> > <a href="http://nscplus.medin.name/index.php/Main_Page">http://nscplus.medin.name/index.php/Main_Page</a>) and installed it on a<br>> > remote
<br>> > windows server.  I then modified the NSC.ini file and added a line:<br>> ><br>> > command[check_cmd]=D:\hello.cmd<br>> ><br>> > I then created a simple .cmd file called hello.cmd which contained the
<br>> > following:<br>> ><br>> > @echo off<br>> > echo hello world<br>> > exit 1<br>> ><br>> > MY QUESTION IS:<br>> > what do i need to do/run on the nagios server inorder to run a check
<br>> > against<br>> > hello.cmd for example?<br>> ><br>> ><br>> > >From: Bill Jacqmein <<a href="mailto:wrjacqmein@gmail.com">wrjacqmein@gmail.com</a>><br>> > >To: HP Geeza <
<a href="mailto:getbacktome3@hotmail.com">getbacktome3@hotmail.com</a>><br>> > >Subject: Re: [Nagios-users] monitor directory size?<br>> > >Date: Tue, 14 Feb 2006 11:30:52 -0500<br>> > ><br>> > >in 
NSC.ini<br>> > ><br>> > >in the NRPE handlers section<br>> > ><br>> > >mycheck=c:\somecheck.bat<br>> > ><br>> > ><br>> > >For coding the batch file<br>> > >useful - 
<a href="http://nagiosplug.sourceforge.net/developer-guidelines.html">http://nagiosplug.sourceforge.net/developer-guidelines.html</a><br>> > >The main part is the return codes<br>> > ><br>> > >Numeric Value
<br>> > ><br>> > >Service Status<br>> > ><br>> > >Status Description<br>> > ><br>> > >0<br>> > ><br>> > >OK<br>> > ><br>> > >The plugin was able to check the service and it appeared to be
<br>> > functioning<br>> > >properly<br>> > ><br>> > >1<br>> > ><br>> > >Warning<br>> > ><br>> > >The plugin was able to check the service, but it appeared to be above
<br>> > some<br>> > >"warning" threshold or did not appear to be working properly<br>> > ><br>> > >2<br>> > ><br>> > >Critical<br>> > ><br>> > >The plugin detected that either the service was not running or it was
<br>> > above<br>> > >some "critical" threshold<br>> > ><br>> > >3<br>> > ><br>> > >Unknown<br>> > ><br>> > >Invalid command line arguments were supplied to the plugin or low-level
<br>> > >failures internal to the plugin (such as unable to fork, or open a tcp<br>> > >socket) that prevent it from performing the specified operation.<br>> > >Higher-level errors (such as name resolution errors, socket timeouts,
<br>> > etc)<br>> > >are outside of the control of plugins and should generally NOT be<br>> > reported<br>> > >as UNKNOWN states.<br>> > ><br>> > >Hopeful this was enough get you closer to a solution. If not I have to
<br>> > >write<br>> > >one in the near future so I will send how I went about creating the<br>> > check.<br>> > ><br>> > >Thanks,<br>> > ><br>> > >       Bill<br>
> > ><br>> > >On 2/14/06, HP Geeza <<a href="mailto:getbacktome3@hotmail.com">getbacktome3@hotmail.com</a>> wrote:<br>> > > ><br>> > > > Hi Bill,<br>> > > ><br>> > > > Im affraid im having some trouble with nsclient++ and running a
<br>>batch<br>> > > > files<br>> > > > via check_nrep.  Could you please help me with the syntax that i<br>>need<br>> > to<br>> > > > use<br>> > > > to setup the check on both the nagios server and remote windows
<br>> > server.<br>> > > ><br>> > > > any help would be great!<br>> > > ><br>> > > ><br>> > > > >From: Bill Jacqmein <<a href="mailto:wrjacqmein@gmail.com">
wrjacqmein@gmail.com</a>><br>> > > > >To: HP Geeza <<a href="mailto:getbacktome3@hotmail.com">getbacktome3@hotmail.com</a>><br>> > > > >Subject: Re: [Nagios-users] monitor directory size?
<br>> > > > >Date: Mon, 13 Feb 2006 14:44:40 -0500<br>> > > > ><br>> > > > >nsclient++ has the ability to run batch files via check_nrep. Might<br>> > be<br>> > >an
<br>> > > > >option to do a dir and parse the filesize out of that.<br>> > > > ><br>> > > > >On 2/13/06, HP Geeza <<a href="mailto:getbacktome3@hotmail.com">getbacktome3@hotmail.com
</a>> wrote:<br>> > > > > ><br>> > > > > > From what i can tell though check_snmp_storage.pl only allows<br>>you<br>> > to<br>> > > > >check<br>> > > > > > for particular kinds of storage settings....what i need to do is
<br>> > > > monitor<br>> > > > > > the<br>> > > > > > size of a directory on a remote windows server for example,<br>> > d:\data<br>> > > > > ><br>> > > > > > i am using nsclient at the moment but can't monitor directory
<br>>size<br>> > > > (only<br>> > > > > > disk space).  Is there a way to monitor a directories size via<br>> > > > snmp????<br>> > > > > ><br>> > > > > >
<br>> > > > > > >From: Hendrik Baecker <<a href="mailto:b00mer@gmx.net">b00mer@gmx.net</a>><br>> > > > > > >To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net
</a><br>> > > > > > >Subject: Re: [Nagios-users] monitor directory size?<br>> > > > > > >Date: Mon, 13 Feb 2006 12:44:00 +0100<br>> > > > > > ><br>> > > > > > >Google for: "check_snmp_storage.pl"
<br>> > > > > > ><br>> > > > > > ><br>> > > > > > >HP Geeza schrieb:<br>> > > > > > ><br>> > > > > > >>Hi All,<br>
> > > > > > >><br>> > > > > > >>I was wondering whether it is possible to monitor the size of<br>>a<br>> > > > > > directory<br>> > > > > > >>(eg find out how big it is in in MB or GBs) and then send an
<br>> > alert<br>> > > > >when<br>> > > > > > >>the size goes over a certain threshold?<br>> > > > > > >><br>> > > > > > >>Any help would be great!
<br>> > > > > > >><br>> > > > > ><br>> > >>_________________________________________________________________<br>> > > > > > >>The new MSN Search Toolbar now includes Desktop search!
<br>> > > > > > >><a href="http://toolbar.msn.co.uk/">http://toolbar.msn.co.uk/</a><br>> > > > > > >><br>> > > > > > >><br>> > > > > > >>
<br>> > > > > > >>-------------------------------------------------------<br>> > > > > > >>This SF.net email is sponsored by: Splunk Inc. Do you grep<br>> > through<br>
> > > > log<br>> > > > > > >>files<br>> > > > > > >>for problems?  Stop!  Download the new AJAX search engine that<br>> > >makes<br>> > > > > > >>searching your log files as easy as surfing the  web.
<br>>DOWNLOAD<br>> > > > >SPLUNK!<br>> > > > > ><br>> > > > > >><br>> > > ><br>> > <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</a><br>> > > > > > >>_______________________________________________<br>> > > > > > >>Nagios-users mailing list
<br>> > > > > > >><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>> > > > > > >><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> > > > > > >>::: Please include Nagios version, plugin version (-v) and OS<br>> > when<br>> > > > > > >>reporting any issue. ::: Messages without supporting info will
<br>> > >risk<br>> > > > > > being<br>> > > > > > >>sent to /dev/null<br>> > > > > > >><br>> > > > > > >><br>> > > > > > >
<br>> > > > > > ><br>> > > > > > ><br>> > > > > > >-------------------------------------------------------<br>> > > > > > >This SF.net email is sponsored by: Splunk Inc. Do you grep
<br>> > through<br>> > > > log<br>> > > > > > >files<br>> > > > > > >for problems?  Stop!  Download the new AJAX search engine that<br>> > >makes<br>> > > > > > >searching your log files as easy as surfing the  web.  DOWNLOAD
<br>> > > > SPLUNK!<br>> > > > > ><br>> > > > > ><br>> > > ><br>> > <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</a><br>> > > > > > >_______________________________________________<br>> > > > > > >Nagios-users mailing list
<br>> > > > > > ><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>> > > > > > ><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> > > > > > >::: Please include Nagios version, plugin version (-v) and OS<br>> > when<br>> > > > > > >reporting any issue. ::: Messages without supporting info will
<br>> > risk<br>> > > > >being<br>> > > > > > >sent to /dev/null<br>> > > > > ><br>> > > > > ><br>>_________________________________________________________________
<br>> > > > > > Are you using the latest version of MSN Messenger? Download MSN<br>> > > > >Messenger<br>> > > > > > 7.5 today! <a href="http://messenger.msn.co.uk">http://messenger.msn.co.uk
</a><br>> > > > > ><br>> > > > > ><br>> > > > > ><br>> > > > > > -------------------------------------------------------<br>> > > > > > This 
SF.net email is sponsored by: Splunk Inc. Do you grep<br>>through<br>> > >log<br>> > > > > > files<br>> > > > > > for problems?  Stop!  Download the new AJAX search engine that
<br>> > makes<br>> > > > > > searching your log files as easy as surfing the  web.  DOWNLOAD<br>> > > > SPLUNK!<br>> > > > > ><br>> > > ><br>> > <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</a><br>> > > > > > _______________________________________________<br>> > > > > > Nagios-users mailing list
<br>> > > > > > <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>> > > > > > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> > > > > > ::: Please include Nagios version, plugin version (-v) and OS<br>>when<br>> > > > > > reporting any issue.
<br>> > > > > > ::: Messages without supporting info will risk being sent to<br>> > >/dev/null<br>> > > > > ><br>> > > ><br>> > > > _________________________________________________________________
<br>> > > > The new MSN Search Toolbar now includes Desktop search!<br>> > > > <a href="http://toolbar.msn.co.uk/">http://toolbar.msn.co.uk/</a><br>> > > ><br>> > > ><br>> >
<br>> > _________________________________________________________________<br>> > Are you using the latest version of MSN Messenger? Download MSN<br>>Messenger<br>> > 7.5 today! <a href="http://messenger.msn.co.uk">
http://messenger.msn.co.uk</a><br>> ><br>> ><br>> ><br>> > -------------------------------------------------------<br>> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
<br>> > files<br>> > for problems?  Stop!  Download the new AJAX search engine that makes<br>> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!<br>> > <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</a><br>> > _______________________________________________<br>> > Nagios-users mailing list<br>> > <a href="mailto:Nagios-users@lists.sourceforge.net">
Nagios-users@lists.sourceforge.net</a><br>> > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> > ::: Please include Nagios version, plugin version (-v) and OS when
<br>> > reporting any issue.<br>> > ::: Messages without supporting info will risk being sent to /dev/null<br>> ><br>><br>><br>><br>>--<br>>Le bon sens est la chose du monde la mieux partag�e.
<br><br>_________________________________________________________________<br>The new MSN Search Toolbar now includes Desktop search!<br><a href="http://toolbar.msn.co.uk/">http://toolbar.msn.co.uk/</a><br><br><br><br>-------------------------------------------------------
<br>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files<br>for problems?  Stop!  Download the new AJAX search engine that makes<br>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</a><br>_______________________________________________
<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><br>-- <br>
Le bon sens est la chose du monde la mieux partagée.