From: <tr...@gm...> - 2005-02-22 08:42:46
|
Hi, I use Nagios 1.2, MySQL 4.0.22 on a Gentoo-Box. I do this in nagios.cfg: cfg_file=/usr/nagios/etc/nagios_perfparse.cfg process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata in /usr/nagios/etc/nagios_perfparse.cfg: define command{ command_name process-service-perfdata command_line $USER2$/bin/perfparse_nagios_pipe_command.pl /var/nagios/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } The $USER2$ is added an points to: "/usr/nagios" In /usr/nagios/etc/perfparse.cfg: Service_Log = "|/var/nagios/perfdata-service.log" Use_Storage_Mysql = "yes" I created a mysql database and a user with the correct rights and put this in the perfparse.cfg. The file /var/nagios/perfdata-service.log grows and grows but all I found in the database are the Hosts. I think the Pipe-To-PerfParse is the right for me. Can anybody help me with storage the data? what did I wrong with the config? thx mate! Oliver -- Was ist das denn? Das sind Beschleunigungslöcher, die machen den Computer schneller. ( Frei nach Homer J. Simpson ) Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail |