From: Yves <yme...@pe...> - 2004-12-14 13:33:11
|
> I'm confused. How to configure perfparse and nagios to use method 4? I'= v > read perfparse manual, but its confusing. > > FIRST: > It says: > > With nagios-1.2, edit misccommands.cfg and add the following : > > define command{ > command_name process-service-perfdata > command_line $USER2$/bin/perfparse_nagios_pipe_command.pl > $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" > "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > } > > But do I really need to duplicate command definition for > process-service-perfdata? I already have that definition in file > PREFIX/etc/nagios_perfparse.cfg and nagios.cfg has line > cfg_file=3DPREFIX/etc/nagios_perfparse.cfg In latest version of the install guide (in perfparse-0.104.3), I read "ed= it misccommands.cfg and comment out the following definitions for host and s= ervice performance data". And I confirm that you should have only one definition like that. > > SECOND: > Manual says: In perfparse.cfg, Service_Log must be defined as > "|/path/to/the/pipe". > > Where is that pipe and how can I define it and where? Just give a file name and perfparsed will create it as a pipe. If the file already exists and is not a pipe, perfparsed will refuse to r= un and you will read a message in the log. If you have perfparse installed in /opt/perfparse (e.g. $USER2 is /opt/pe= rfparse), write this for the pipe : "|/opt/perfparse/var/perfdata-service.log". I will do some minor change in the install guide for the 2nd point. Thanks for the feedback (the best questions go into the FAQ on http://wik= i.perfparse.org :) 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/ - |