From: Tim W. <tim...@gm...> - 2004-12-14 18:08:25
|
And now reply All :) ---------- Forwarded message ---------- From: Tim Wuyts <tim...@gm...> Date: Tue, 14 Dec 2004 14:41:43 +0100 Subject: Re: [Perfparse-users] perfparse method 4 To: Veiko Kukk <ve...@pa...> Veiko, 1. misccommands.cfg: Nagios doesn't really care in which file you define things. So you can keep it in your nagios_perfparse.cfg file, as long as it is read by Nagios (as you did). 2. the path to the pipe This is $USER2$/var/perfdata-service.log ($USER2$ must be defined in one of the nagios cfg files, and point to your perfparse installation directory). In addition (I haven't checked if this was changed in 104.3) you should update perfparse_nagios_pipe_command.pl as shown below, so that the file does not get created as a regular file before perfparse can create it. Tim #! /usr/bin/perl -w use strict; my $file = shift @ARGV; die("Pipe $file not found!") unless (-p $file); open FH, ">$file" or die "'$file' could not be opened for appending\n"; print FH join("\t", @ARGV); print FH "\n"; close FH; On Tue, 14 Dec 2004 15:18:30 +0200, Veiko Kukk <ve...@pa...> wrote: > 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=PREFIX/etc/nagios_perfparse.cfg > > 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? > > -- > Veiko > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.296 / Virus Database: 265.5.2 - Release Date: 13.12.2004 > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |