|
From: Tong Y. <To...@in...> - 2005-02-19 01:58:15
|
Here is the part I modified from my nagios_perfparse.cfg:
command_line
/usr/local/nagios/bin/perfparse_nagios_pipe_command.pl
/usr/local/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$"
"$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$"
}
I am using nagios 2.0b1 on Debian Sarge.=20
-----Original Message-----
From: Eduardo Martinez [mailto:ema...@bs...]=20
Sent: Friday, February 18, 2005 11:59 AM
To: Tong Young
Cc: yme...@pe...; per...@li...
Subject: Re: [Perfparse-users] Install method 4 and error I am
receiving.
Can you please tell me what version of nagios you were using, what os
you built it on and what variables are needed in nagios_perfparse.cfg
for nagios version 2.x?
Did you use --with-default-perfdata ?
I followed this
http://wiki.perfparse.org/tiki-index.php?page=3DBuildingMethod4Example =
as
well but it is not working for me.
-Eduardo
Tong Young wrote:
>You should refer everyone here first: =20
>http://wiki.perfparse.org/tiki-index.php?page=3DBuildingMethod4Example
>=20
>I am using Nagiox 2.x and I followed this document almost exactly and=20
>got mine working. I didn't change the no raw data field to yes like=20
>the document said. Oh and you'll need to change some of the fields in=20
>your nagios_perfparse.cfg due to name changes in variables in 2.x
>
>=20
>________________________________
>
>From: per...@li... on behalf of Yves
>Sent: Fri 2/18/2005 10:01 AM
>To: Eduardo Martinez
>Cc: per...@li...
>Subject: Re: [Perfparse-users] Install method 4 and error I am
receiving.
>
>
>
>Eduardo, your mail is excellent. I'm sorry to answer too short. I hope=20
>some will answer longer.
>My answer is short because I don't know much at nagios-2.X;
>
>However, I know that with nagios-2.X, you can compile it to write the=20
>perfdata directly to a pipe. So you don't need
perfparse_nagios_pipe_command.pl.
>
>When you compile nagios, I see that you use --with-default-perfdata.=20
>Isn't there another option to use the pipe ?
>
> =20
>
>><SHELL>./configure --prefix=3D/opt/nagios \ --with-template-objects \=20
>>--with-template-extinfo \ --with-init-dir=3D/etc/rc.d/init.d/ \=20
>>--with-default-status \ --with-default-comments \=20
>>--with-default-retention \ --with-default-downtime \=20
>>--with-default-perfdata \ --with-nagios-user=3Dnagios \=20
>>--with-nagios-group=3Dnagios \ --with-gd-inc=3D/opt/local/include \=20
>>--with-gd-lib=3D/opt/local/lib
>> =20
>>
>
>I saw that command twice in your mail. This is probably why nagios
complains.
>
>
> =20
>
>> command_name process-service-perfdata
>> =20
>>
>
> =20
>
>><SHELL>/opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
>>Error: Command 'process-service-perfdata' has already been defined
>>Error: Could not register command (config file=20
>>'/opt/nagios/etc/nagios_perfparse.cfg', starting on line 19)
>> =20
>>
>
>I won't help you more on that because the solution is different :=20
>configure your nagios-2.X to write directly to a pipe. Don't use=20
>process-service-perfdata :)
>
>Those who use nagios-2.X, please help Eduardo because both Ben and I
are using nagios-1.2.
>Eduardo or anybody else, could you write a document on how to best=20
>install
>nagios+perfparse when nagios is 2.0 ?
>
>Yves
>
>--
>- Homepage - http://ymettier.free.fr - http://www.logicacmg.com -
>- GPG key - http://ymettier.free.fr/gpg.txt -
>- Maitretarot - http://www.nongnu.org/maitretarot/ -
>- Perfparse - http://www.perfparse.org/ -
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide Read honest & candid=20
>reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick
>_______________________________________________
>Perfparse-users mailing list
>Per...@li...
>https://lists.sourceforge.net/lists/listinfo/perfparse-users
>
>
>
>
>
> =20
>
|