|
From: Tong Y. <To...@in...> - 2005-02-10 19:39:17
|
Here is my config for my nagios_perfparse.cfg. I only use the =
process-service one because I have no need to graph host data. For the =
host one, instead of adding SERVICE you add HOST to each variable. I =
have only tested this with a few plugins (check_load check_disk) but it =
seems to work for those and I am able to get a graph back. As I add-in =
more checks I will let you know if I run into any problems.
define command{
command_name process-service-perfdata
command_line =
/usr/local/nagios/bin/perfparse_nagios_pipe_command.pl =
/usr/local/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" =
"$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$"
}=20
-----Original Message-----
From: Ben Clewett [mailto:bcl...@pe...]=20
Sent: Thursday, February 10, 2005 2:22 AM
To: Tong Young
Cc: yme...@pe...; per...@li...
Subject: Re: [Perfparse-users] Perparse Method 4 (pipe)
The document you mention I believe is:
http://wiki.perfparse.org/tiki-index.php?page=3DBuildingMethod4Example
Supplied kindly by Alex Peeters.
If you have found this useful, I'll link this from our FAQ.
Thanks for the advise on Nagios 2.x. PerfParse is not 'officially' able =
to read this, but only because I don't use Nagios 2.x and I have yet to =
get back comments about how this works.
I am after any such comments in order to update our documentation, so =
thanks for your observations. Would you have a tested example of a =
configuration?
Regards,
Ben.
Tong Young wrote:
> Thanks. Just want to say that someone posted a link to a document on =
installing Perfparse with the pipe method and I followed the =
instructions contained there and it works perfectly. So if anyone is =
having problems they should have a look at that link. It was posted =
within the last two days I believe. The subject line is Good =
Documentation or something similar.
> =20
> And someone posted that they are getting perfdata written to the =
perfdata-service.log in the form of $ signs. I would guess that you are =
using Nagios 2.0.. The variables $PERFDATA$ and one other has changed =
to $SERVICEPERFDATA$ and so forth.. Check out the documentation for =
Nagios 2.0 or the sample config files. One of them contains the changes =
made to the variables.
>=20
> ________________________________
>=20
> From: per...@li... on behalf of Yves
> Sent: Thu 2/10/2005 12:50 AM
> To: per...@li...
> Subject: Re: [Perfparse-users] Perparse Method 4 (pipe)
>=20
>=20
>=20
>=20
>=20
>>I have read through the documentation and groups and got it working,=20
>>but I need to manually run ./perfparsed before the=20
>>service-perfdata.log file is created by nagios. Is this by design?
>=20
>=20
>=20
> If you are running nagios-1.2, yes, this is by design.
> Perfparsed reads from a pipe, and creates it if necessary. If you run=20
> nagios-1.2 before, it will write to whatever the file is, and if it =
does not exist, write a new file.
> If the design was to run perfparsed after nagios, you would loose the=20
> data written in that file, or have perfparsed block because of that =
regular file.
>=20
> Yves
>=20
> --
> - 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/ -
>=20
>=20
>=20
> -------------------------------------------------------
> 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
>=20
>=20
>=20
> -------------------------------------------------------
> 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=CCk
> _______________________________________________
> Perfparse-users mailing list
> Per...@li...
> https://lists.sourceforge.net/lists/listinfo/perfparse-users
>=20
|