From: Oliver M. <tr...@gm...> - 2005-02-22 09:22:25
|
thyx for this hint matthias, In the perfparse.cfg I wrote this: Storage_Modules_Load = "mysql" Storage_Modules_Dir = "/usr/nagios/lib" If I start perfparsed like this: ./perfparsed -e /var/nagios/perfparsed.error.log & cat /usr/nagios/perfparsed.error.log 2005/02/22 10:13:56 [ storage.c:95 13892 ] storage_mysql module successfully loaded 2005/02/22 10:13:56 [ storage.c:307 13892 ] Could not dump modules status 2005/02/22 10:13:56 [ storage.c:264 13892 ] Perfparsed : periodic cleanup 2005/02/22 10:13:56 [clean_tools.c:101 13892 ] Could not open directory '/tmp/perfparse.drop' 2005/02/22 10:14:31 [log_reader.c:547 13892 ] Signal SIGINT abgefangen 2005/02/22 10:14:31 [ storage.c:208 13892 ] Perfparsed stopped 2005/02/22 10:15:03 [ storage.c:95 14071 ] storage_mysql module successfully loaded 2005/02/22 10:15:03 [ storage.c:307 14071 ] Could not dump modules status 2005/02/22 10:15:03 [ storage.c:264 14071 ] Perfparsed : periodic cleanup 2005/02/22 10:15:03 [clean_tools.c:101 14071 ] Could not open directory '/var/nagios/perfparse.drop' 2005/02/22 10:18:00 [log_reader.c:547 14071 ] Signal SIGINT abgefangen 2005/02/22 10:18:00 [ storage.c:208 14071 ] Perfparsed stopped and perfparsed stopped :-( Oliver > per...@li... schrieb am 22.02.2005 > 09:42:37: > > > 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 > > > > Hi Oliver, > > did you start perfparsed? > I think perfparsed is still missing in the docs. > > matthias -- 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 |