From: Yves <yme...@pe...> - 2004-12-14 15:17:09
|
> Yves wrote: >> In latest version of the install guide (in perfparse-0.104.3), I read = "edit >> misccommands.cfg and comment out the following definitions for host an= d service >> performance data". > > Ok, I thought that supreme RTFM place is > http://perfparse.sourceforge.net/docs.php Well, it's being reorganized. Today, http://wiki.perfparse.org is a good place to go :) And because the install guide source is in doc/, that version is often th= e latest one. But it happens that we do some modifications in the development version a= nd put it on http://perfparse.sourceforge.net/docs.php before the next release. It's being reorganized... > >> If you have perfparse installed in /opt/perfparse (e.g. $USER2 is /opt= /perfparse), >> write >> this for the pipe : "|/opt/perfparse/var/perfdata-service.log". > > So it must *not* be the same file as perfdata-service.log in > nagios_perfparse.cfg? Yes, it has :) Same player plays again :) edit nagios.cfg (and other cfg files for nagios) and in the perfdata comm= and definition for services, define a file (let's call it PERFDATA here) where to write = the perfdata. If you run nagios without perfparsed, nagios should create a file called = PERFDATA. And that file is a plain text file. Now, remove that file. And in the perfparse.cfg config, set Service_Log a= s "|PERFDATA". Don't create that file yourself. Then run perfparsed : it will create that file as a FIFO (eg: a named pip= e). Run nagios and nagios will output the data in the fifo. Note : If you run nagios and perfparsed just after, nagios will not output data = in the second it was launched, and it lets time to perfparsed to create the pipe. If perfparsed runs and the file is not a pipe, it will not run (read the = logs) I also noticed that if your command *appends* data to the pipe, it does n= ot work for me. WRONG : echo data >> pipe OK : echo data > pipe Other questions ? :) 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://perfparse.sf.net/ - |