From: Tim W. <tim...@pi...> - 2004-10-25 08:51:54
|
All, I tried to get "method 2" to work, as described in the install_guide found in the /doc directory. After a few hours getting nowhere, I found out a small but important detail. The doc reads: <quote> Method 2 : Launch perfparse-log2db Edit misccommands.cfg and add the following : define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$" | $USER2$/bin/perfparse-log2db -c $USER2$/etc/perfparse.cfg } </quote> Unfortunately, the 'printf' command is missing a '\n' causing pp to never store the line. The correct entry is: define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" | $USER2$/bin/perfparse-log2db -c $USER2$/etc/perfparse.cfg } Happy perfparsing.... Tim |