Hi<br><br>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
<br><p>define command { </p>
<p> command_name Hello </p>
<p> command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd </p>
<p>}</p>Please run check_nrpe -h to get the help of the plugin.<br><br>cheers<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 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 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 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 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 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 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, etc)<br>>are outside of the control of plugins and should generally NOT be 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 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 batch<br>> > files<br>> > via check_nrep. Could you please help me with the syntax that i need to
<br>> > use<br>> > to setup the check on both the nagios server and remote windows 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 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 you 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, d:\data
<br>> > > ><br>> > > > i am using nsclient at the moment but can't monitor directory 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 a
<br>> > > > directory<br>> > > > >>(eg find out how big it is in in MB or GBs) and then send an alert<br>> > >when<br>> > > > >>the size goes over a certain threshold?
<br>> > > > >><br>> > > > >>Any help would be great!<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<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 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 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 when
<br>> > > > >reporting any issue. ::: Messages without supporting info will risk<br>> > >being<br>> > > > >sent to /dev/null<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<br>>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<br>> > SPLUNK!
<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 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 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 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.