|
From: Veiko K. <ve...@pa...> - 2004-12-14 16:01:01
|
Yves wrote:
> If you run nagios without perfparsed, nagios should create a file called PERFDATA. And
> that file is a plain text file.
You mean - before perfparsed? Documentation doesn't speak anything about
perfparsed in method 4...
> Now, remove that file. And in the perfparse.cfg config, set Service_Log as "|PERFDATA".
> Don't create that file yourself.
> Then run perfparsed : it will create that file as a FIFO (eg: a named pipe). Run nagios
> and nagios will output the data in the fifo.
When I run perfparsed, I get log named perfparse.log.20041214.log:
2004/12/14 17:48:06 [perfparsed.c:171 3680 ] No module was loaded.
Check the Storage_Module_Load config option.
I couldn't find anything about storage modul loading and method 4 in
documentation.
And it doesn't create pipe.
> I also noticed that if your command *appends* data to the pipe, it does not work for me.
> WRONG : echo data >> pipe
> OK : echo data > pipe
>
> Other questions ? :)
Yes, what *my* command?
I have in perfparse.cfg line.
Service_Log = "|/var/log/nagios/perfdata-service.log"
and in nagios_perfparse.cfg the following lines:
define command{
command_name process-service-perfdata
command_line /usr/local/bin/perfparse_nagios_pipe_command.pl
/var/log/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$"
"$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$"
}
define command{
command_name process-host-perfdata
command_line /usr/local/bin/perfparse_nagios_pipe_command.pl
/var/log/nagios/perfdata-host.log "$TIMET$" "$HOSTNAME$" "$OUTPUT$"
"$PERFDATA$"
}
Its still not working for me.
--
Veiko
|