Hi everyone, I encounter some problems with perfparse, and after 3 days of googling I finally decided to post here :) I hope that someone will have an answer. The problem is that no information is logged to database :
My server is a CentOS 4.5 with Nagios 2.10, perfparse 0.106.1, Centreon 1.4 These are my config files : ################ ## Perfparse.cfg ## ################ Server_Port = "1976" Service_Log = "-" Service_Log_Position_Mark_Path = "/usr/local/nagios/var/serviceperf.log" Error_Log = "/usr/local/nagios/var/perfparse.log" Error_Log_Rotate = "Yes" Error_Log_Keep_N_Days = "7" Drop_File = "/tmp/perfparse.drop" Drop_File_Rotate = "Yes" Drop_File_Keep_N_Days = "7" Lock_File = "/usr/local/nagios/var/perfparse.lock" Show_Status_Bar = "Yes" Do_Report = "Yes" Default_user_permissions_Policy = "rw" Default_user_permissions_Host_groups = "rw" Default_user_permissions_Summary = "rw" Output_Log_File = "Yes" Output_Log_Filename = "/usr/local/nagios/var/perfparse_output_log" Output_Log_Rotate = "Yes" Output_Log_Keep_N_Days = "7" Use_Storage_Socket_Output = "Yes" Storage_Socket_Output_Host_Name = "127.0.0.1" Storage_Socket_Output_Port = "1974" Use_Storage_Mysql = "Yes" No_Raw_Data = "Yes" No_Bin_Data = "No" DB_User = "perfparse" DB_Pass = "perfparse" DB_Name = "perfparse" DB_Host = "127.0.0.1" Dummy_Hostname = "dummy" Storage_Modules_Load = "mysql" ############################## ## Output in perfdata_host.dat ## ############################## 1197363588 ServeurJBossN3 check_host_alive PING CRITICAL - Paquets perdus = 100% DOWN 1197363598 ServeurJBossN3 check_host_alive PING CRITICAL - Paquets perdus = 100% DOWN 1197363618 ServeurJBossN4 check_host_alive PING CRITICAL - Paquets perdus = 100% DOWN 1197363628 ServeurJBossN4 check_host_alive PING CRITICAL - Paquets perdus = 100% DOWN 1197363638 ServeurJBossN4 check_host_alive PING CRITICAL - Paquets perdus = 100% DOWN 1197363648 ServeurJBossN4 check_host_alive PING CRITICAL - Paquets perdus = 100% DOWN ####################### ## When I force parsing ## ####################### [EMAIL PROTECTED] bin]# /bin/cat /usr/local/nagios/var/perfdata-host.dat | /usr/local/nagios/bin/perfparse-log2mysql -c /usr/local/nagios/etc/perfparse.cfg 00:00:00 lu 105 @ 0,0 l/sec. Met 0 @ 0,00 Met/l. Rej 105. +-----------------------------+ +-----------------------------+ | Generic statistics | | Nb Log Lines : 1 | | Nb lines parsed : 105 | | Nb lines dropped : 105 | | Start date : 2007-12-11 | | Elapsed time : 00:00:00 | | Start time : 10:02:05 | | Rate : (line/sec) 0,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 | +-----------------------------+ +-----------------------------+ ############## ## nagios.cfg ## ############## process_performance_data=1 host_perfdata_file=/usr/local/nagios/var/perfdata-host.dat service_perfdata_file=/usr/local/nagios/var/perfdata-service.dat host_perfdata_file_template=$TIMET$ $HOSTNAME$ $HOSTCHECKCOMMAND$ $HOSTOUTPUT$ $HOSTSTATE$ $HOSTPERFDATA$ service_perfdata_file_template=$TIMET$ $HOSTNAME$ $SERVICEDESC$ $SERVICEOUTPUT$ $SERVICESTATE$ $SERVICEPERFDATA$ host_perfdata_file_mode=2 service_perfdata_file_mode=2 host_perfdata_file_processing_interval=10 service_perfdata_file_processing_interval=10 host_perfdata_file_processing_command=process2mysql_host_data service_perfdata_file_processing_command=process2mysql_service_data ############## ## commands ## ############## define command{ command_name process2mysql_host_data command_line /bin/cat /usr/local/nagios/var/perfdata-host.dat | /usr/local/nagios/bin/perfparse-log2mysql -c /usr/local/nagios/etc/perfparse.cfg } define command{ command_name process2mysql_service_data command_line /bin/cat /usr/local/nagios/var/perfdata-service.dat | /usr/local/nagios/bin/perfparse-log2mysql -c /usr/local/nagios/etc/perfparse.cfg } ############## The output is correct (with tabs, not spaces) but i don't see any information for $HOSTPERFDATA$ or $SERVICEPERFDATA$ I don't get any logs in /usr/local/nagios/var for perfparse. If i forgot something let me know :) If you have some clues thanks in advance for your replies. Regards, Sébastien ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null