From: Yves <yme...@pe...> - 2005-02-10 08:46:27
|
> I compiled perfparsed(latest stable) and nagios(nagios-2.0b1) with the > following options: Please tell us the version number. For example, for nagios, the latest is= nagios-2.0b2 (was released this night) I don't know much about nagios-2.X so it will be only generic comments... > Service_Log "|/usr/local/nagios/bin/perfparse.sh/var/serviceperf.log" This should be Service_Log "|/usr/local/nagios/var/serviceperf.log" Why put "bin/perfparse.sh" inside ? > And I have added the following to my nagios_perfparse.cfg file: > > define command{ > command_name process-service-perfdata > command_line > /usr/local/nagios/bin/perfparse_nagios_command.pl > /usr/local/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" > "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" > } Here you use "/usr/local/nagios/var/perfdata-service.log" > > define command{ > command_name process-host-perfdata > command_line > /usr/local/nagios/bin/perfparse_nagios_command.pl > /usr/local/nagios/var/var/perfdata-host.log "$TIMET$" "$HOSTNAME$" > "$OUTPUT$" "$PERFDATA$" > } perfparse does not parse perfdata from hosts yet, so don't spend too much= on this :) > I setup a FIFO: > > [root@spanner var]# ls -ld serviceperf.log > prw-r--r-- 1 root root 0 Feb 9 16:18 serviceperf.log You must run perfparse before nagios. Perfparse can create the fifo itsel= f, and complains if it cannot. No complains if the file already exists as a fifo= . > |/usr/local/nagios/var/serviceperf.log, I still get the same error: > > stat64("|/usr/local/nagios/var/serviceperf.log", 0xbfffabd0) =3D -1 ENO= ENT > (No such file or directory) I guess that /usr/local/nagios/var exists as a directory. If yes, good, = and no idea why it does not work. If not, create it. Well, the only thing I can say is to use /usr/local/nagios/var/serviceper= f.log everywhere. Check your settings :) 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/ - |