From: robert <wk-...@pe...> - 2006-07-11 09:28:50
|
nagios invokes perfparse, but perfparse just dumps data to file without logging to database! Hi every one!! First time I post here, so I must say thanks for your work around this project! I have been trying to get perfparse to work, using the second method described in installation guide...(nagios invokes perfparse)... No errors in compilation or installation, recompiled nagios fine, nothing to say about that, but when running, database stay's clear, no error logs from Mysql, neither from perfparse, just big dump to /tmp/perfparse.dump. In consequence, no graphs! no hosts or anything in perfparse interface. I'm a bit stuck, and am wondering where the problem could come from, I triple checked the installation method, but I can't find any obvious errors. here's the output from "perfparse-log2mysql --show_config" Perfparse-log2* [options] Error_Log = "-" Error_Log_Rotate = "yes" Drop_File = "/tmp/perfparse.drop" Drop_File_Rotate = "no" Service_Log = "/usr/local/nagios/var/serviceperf.log" Service_Log_Save_Position = "no" Service_Log_Position_Mark_Path = "" History_Start_Tm = "-86400" History_End_Tm = "-30" Show_Status_Bar = "yes" Do_Report = "no" Dummy_Hostname = "meteo" No_Raw_Data = "no" No_Bin_Data = "no" Storage_Modules_Dir = "/usr/local/nagios/lib" Storage_Modules_Load = "mysql" DB_User = "xxxx" DB_Pass = "xxxx" DB_Name = "xxxxx" DB_Host = "localhost" and here's what perfparse-log2mysql -r gives me: 00:00:01 read 4338 @ 0.0 l/sec. Met 0 @ 0.00 Met/l. Drop 4338. | Generic statistics | | Nb Log Lines : 1 | | Nb lines parsed : 4338 | | Nb lines dropped : 4338 | | Start date : 2006-07-11 | | Elapsed time : 00:00:01 | | Start time : 11:25:04 | | Rate : (line/sec) 4338.00 | | MySQL storage statistics | | | | New Hosts : 0 | | Metric/line : 0.00 | | New Metrics : 0 | | Metrics Recorded : 0 | | New Services : 0 | | Summary Rec Added : 0 | | New Summary Group : 0 | | SQL Queries : 19 | So I suppose that perfparse is just dropping everything !!! note: database is empty Some help would be delighted |