Re: [Nagios-users] pnp4nagios over nrpe

2009-10-03 Thread Leonardo Carneiro
Tks Leveau and Max. Its working now. I had already fixed after max 
email, and answered the mail only to him by mistake.

Leveau Stanislas escreveu:
 hi

 you create a file

 Fichier check_nrpe.php
 #check_command  check_nrpe!check_users!-w 3 ?c 6
 #0___||
 #1__||
 #2__||
 #
 CUSTOM_TEMPLATE = 1


 custom_template with 1 it s for to use the second argument : check_users
 so you use check_users.php

 On Fri, Oct 2, 2009 at 10:49 AM, Leonardo Carneiro
 lscarne...@veltrac.com.br wrote:
 I'm using pnp4nagios in some local services and it's running just fine.
 now i'm trying to get perfdata from a service running on a remote host,
 but doing so via nrpe. the command it's a simple shell script that
 checks how many files exist in a especified folder.

 When i try to see the graph, the last item show me an error:

 RRD
 Database/usr/local/nagios/share/perfdata/gwserver01/MSG_para_o_banco.rrd 

 not found.

 I now i could be thousand of problems. what i wanna know if is possible
 to gather this kind of data via nrpe.

 tks in advance and forgive me for my poor english.

 yes, absolutely NRPE can be used to collect performance data .. does
 your shell script return performance data as part of it's output?  You
 should see a pipe symbol | and then metrics in the output from the
 script, e,g.

 MY-CHECK - OK - Blah blah | 'metric1'=10;90;100 'metric2'=4;80;100'

 - Max

 --
  

 Come build with us! The BlackBerryreg; Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and 
 stay
 ahead of the curve. Join us from November 9#45;12, 2009. Register 
 now#33;
 http://p.sf.net/sfu/devconf
 ___
 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






-- 

*Leonardo de Souza Carneiro*
*Veltrac - Tecnologia em Logística.*
lscarne...@veltrac.com.br mailto:lscarne...@veltrac.com.br
http://www.veltrac.com.br http://www.veltrac.com.br/
/Fone Com.: (43)2105-5601/
/Av. Higienópolis 1601 Ed. Eurocenter Sl. 803/
/Londrina- PR/
/Cep: 86015-010/




--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] Using Nagios to monitor Exchange 2007 Queues, etc.. ??

2009-10-03 Thread Anthony Montibello
Hi,

I thought Exchange had some performance counters.


Tony (Author of NC_Net)

On Fri, Oct 2, 2009 at 3:17 PM, Mirza Dedic mi...@oppy.com wrote:

 I cannot seem to find any solid information with Google.com on how to
 monitor my Exchange 2007 server, I am interested in knowing the send/receive
 queues, mainly to know the load at any certain time...

 On the box, I have NSClient++ installed (0.3.7) and I am already monitoring
 windows services, disk/memory/cpu; but I would like to have nagios look
 under the roof of the exchange server, and get me some #s for queue lengths.

 I guess this would be accomplished by WMI? I have not used WMI with
 NSClient++ before, does anyone have this setup in their environment for
 Exchange (or even IIS/ISA)?

 Please give some examples.

 Thank you..


 --
 Come build with us! The BlackBerryreg; Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
 http://p.sf.net/sfu/devconf
 ___
 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

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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] nsclient++ and nrpe commands

2009-10-03 Thread Natxo Asenjo
On Fri, Oct 2, 2009 at 4:58 PM, Marco Borsani m.bors...@it.net wrote:

 Hi all

 I use nsclient++ with standard commands via check_nt, all is ok.

 Now I need to run some commands/plug-in (like checl_openmanage.exe), but I
 don't find the correct sintax.

 Right now I prepare a command inside NSC.ini file like these:
 command[nsc_openmanage]=c:\nagios\check_openmanage.exe
 nsc_open=scripts\check_openmanage.exe -v

 When I try to call it from nagios server with: ./check_nrpe -H IPADDRESS -c
 nsc_openmanage
 I receive following error: CHECK_NRPE: Socket timeout after 10 seconds.


a socket timeout means it could not connect the nrpe port.

If you try this

nag...@nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01
I (0.3.2.9 2008-05-17) seem to be doing fine...

so without any commands to be run, it just checks whether the nrpe service
is ok.

If you try a not defined command in nsc.ini, like this:
nag...@nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 -c test
UNKNOWN: No handler for that command

there is no 'test' command defined, so it gives me an UNKNOWN.

in your nsc.ini check that the NRPEListener.dll is enabled, the [NRPE]
section should look (at least) like this;

[NRPE]

port=5666

command_timeout=60

allow_arguments=1

socket_timeout=30

and your [NRPE Handlers] section should contain your allowed checks (here
only services and disks):

nrpe_CheckService=inject checkServiceState CheckAll exclude=SysmonLog

nrpe_CheckDriveSize=inject CheckDriveSize MinWarn=10% MinCrit=5% CheckAll
FilterType=FIXED FilterType=REMOTE


your nagios server must be allowed to query the nrpe server (check firewall
and allowed_hosts settings in nsc.ini)




 NSClient++ works correctly with :
 check_nt -H IPADDRESS -v 
 check_nrpe -H IPADDRESS -c CheckCPU -a warn=80 crit=90 time=20m time=10s
 time=4

 My versions are:
 Nsclient++ = 0.2.7 2007-03-06
 Check_nrpe = 2.7.1

 May you show me any NSC.ini files ?


your nsclient++ is quite old, you should try a newer one. For quesions about
nsclient++ the proper forum is the one at nsclient.org
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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] NRPE question

2009-10-03 Thread Natxo Asenjo
you could use check_ssh, I suppose, but nrpe is way better
-- 
Groeten,
J.Asenjo


On Wed, Sep 30, 2009 at 4:36 PM, akp geek akpg...@gmail.com wrote:

 Hi -

 I have installed nagios on one solaris server(Server1). I would
 like to , if I need to check/monitor an other Server ( Server2 ) from
 Server1. Do I need to have the NRPE running on the server2?  or is there any
 other means that I can monitor server2 from server1 using Nagios


 Regards



 --
 Come build with us! The BlackBerryreg; Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
 http://p.sf.net/sfu/devconf
 ___
 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

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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] Using Nagios to monitor Exchange 2007 Queues, etc.. ??

2009-10-03 Thread Kevin Keane
Check out my TNTMonitoringPlugin project on Sourceforge. There is a
plugin specifically to monitor Exchange. It handles both Exchange 2003
and Exchange 2007. It does monitor queue lengths as well as a few other
factors, but the focus is not really so much on load. Queue length
primarily is an indicator of network problems. A long send queue, in
particular, tells me that the Internet connection is down, or something
along those lines.

If you look at the source code for the plugin, you can also see the WMI
query used.

Mirza Dedic wrote:
 I cannot seem to find any solid information with Google.com on how to monitor 
 my Exchange 2007 server, I am interested in knowing the send/receive queues, 
 mainly to know the load at any certain time...

 On the box, I have NSClient++ installed (0.3.7) and I am already monitoring 
 windows services, disk/memory/cpu; but I would like to have nagios look under 
 the roof of the exchange server, and get me some #s for queue lengths.

 I guess this would be accomplished by WMI? I have not used WMI with 
 NSClient++ before, does anyone have this setup in their environment for 
 Exchange (or even IIS/ISA)?

 Please give some examples.

 Thank you..
   
-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to 
Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information 
herein is intended only for use by the intended recipient(s) named 
above. If you have received this transmission in error, please notify 
the sender immediately and permanently delete the e-mail and any copies, 
printouts or attachments thereof.

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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