From: Mark C. <mca...@it...> - 2005-02-10 01:56:47
|
Hey all, I've spent the afternoon trying to get perfparse to work using "Pipe to perfparsed" method, with no success! Granted that what consumed most of my time beating mysql3 off my machine and mysql4 on. I compiled perfparsed(latest stable) and nagios(nagios-2.0b1) with the following options: ./configure '--prefix=3D/usr/local/nagios' '--with-imagedir=3D/usr/local/nagios/share/images/' '--with-http_image_path=3D/images' '--with-cgidir=3D/cgi-bin' ./configure --prefix=3D/usr/local/nagios --with-cgiurl=3D/cgi-bin --with-htmurl=3D --with-nagios-user=3Dnagios --with-nagios-grp=3Dnagios --with-default-perfdata --enable-embedded-perl --with-perlcache I set the process performance option on in nagios.cfg: process_performance_data=3D1 I commented out process-host-perfdata and process-service-perfdata from my misccommands.cfg file. I set my Service_log variable to=20 Service_Log =3D "|/usr/local/nagios/bin/perfparse.sh/var/serviceperf.log" 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$" } 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$" } I setup a FIFO: [root@spanner var]# ls -ld serviceperf.log prw-r--r-- 1 root root 0 Feb 9 16:18 serviceperf.log I have a feeling the problem is with my Service_Log setting as if I run truss on my ./perfparse.sh binary I get stat64("|/usr/local/nagios/bin/perfparse.sh/var/serviceperf.log", 0xbfffc8d0) =3D -1 ENOENT (No such file or directory) however even if I change it to: |/usr/local/nagios/var/serviceperf.log, I still get the same error: stat64("|/usr/local/nagios/var/serviceperf.log", 0xbfffabd0) =3D -1 = ENOENT (No such file or directory) I can get the web interface, but I can't get a list of hosts and it doesn't' look like any data is being inserted into the database Any assistance is appreciated=20 Mark Mark Campbell |