pnp4nagios over nrpe

Leonardo Carneiro lscarneiro at veltrac.com.br
Sat Oct 3 13:39:36 CEST 2009


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
>> <lscarneiro at 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 BlackBerry® 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-12, 2009. Register 
>> now!
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> 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
>>
>
>
>
>

-- 

*Leonardo de Souza Carneiro*
*Veltrac - Tecnologia em Logística.*
lscarneiro at veltrac.com.br <mailto:lscarneiro at 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 BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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





More information about the Users mailing list