From: Horvath T. <zs...@ax...> - 2005-05-18 17:28:42
|
Hi List! I installed PP 0.105.6 with method#3. I have Nagios 1.2 on Debian Woody 3.1. I think I did everything which were in the documentation. I dig in the FAQ about this issue and did what it suggested (remove ' from illegal_macro_output_chars directive). I have no data in my DBS. I have some questions: 1. There are some directive (fe: Error_Log_Rotate = "Y"), for which the pattern before it suggests "Y" or "N". However in the original example cfg file their values are "no" or "yes". Which are the correct? 2. I don't know exactly how to interpret the No_Raw_Data and the No_Bin_Data directives. I think if their values are "N" then raw and binary data is written to the database. Is it correct? 3. How can I interpret the History_Start_Tm = "-86400" and the History_End_Tm = "-30" directives? I found that when I run "perfdata-log2mysql --show_config" command there would be an entry int he Error_Log file, which says: mysql module successfully loaded. But no data in my DBS. It seems to me, that Nagios does not run process-service-perfdata command. I inlcuded my perfdata.cfg - it was created with the "perfdata-log2mysql --show_config" command. Any help, suggestion would be appreciated. Thanky in advance! Bye, Tamas! ======= BEGIN OF FILE ======= Perfparse-log2* [options] # File where Perfparse logs messages # Error_Log = "string" Error_Log = "/var/log/perfparse/perfparse.log" # Rotate Perfparse log files # Error_Log_Rotate = "Y/N" Error_Log_Rotate = "Y" # When perfparse cannot parse a line, it drops it to that file # Drop_File = "string" Drop_File = "/var/log/perfparse/perfparse.drop" # # Drop_File_Rotate = "Y/N" Drop_File_Rotate = "Y" # Log source from nagios (or other tools) that perfparse will scan # Authorized values: a file name, '-' for stdin, '|' for a fifo and '>' for a host:port socket # For sockets, a command 'history' will be sent before retreiving the data # Service_Log = "string" Service_Log = "-" # Save the read position in the nagios log file ? If yes, perfparse will start from that position instead of from the beginning # Service_Log_Save_Position = "Y/N" Service_Log_Save_Position = "N" # Path for files containing the read position for nagios log files # Service_Log_Position_Mark_Path = "string" Service_Log_Position_Mark_Path = "" # Start timestamp for history retreiving (positive is absolute, negative is relative to end tm) # History_Start_Tm = "value" History_Start_Tm = "-86400" # End timestamp for history retreiving (positive is absolute, negative is relative to Now) # History_End_Tm = "value" History_End_Tm = "-30" # Show status bar when running # Show_Status_Bar = "Y/N" Show_Status_Bar = "Y" # Print a report at the end of the processing # Do_Report = "Y/N" Do_Report = "N" # Dummy hostname if gethostname() does not work # Dummy_Hostname = "string" Dummy_Hostname = "dummy" # Don't store raw data # No_Raw_Data = "Y/N" No_Raw_Data = "N" # Don't store bin data # No_Bin_Data = "Y/N" No_Bin_Data = "N" # Path where storage modules are # Storage_Modules_Dir = "string" Storage_Modules_Dir = "/usr/local/nagios/lib" # Modules to load (Coma separated values) # Storage_Modules_Load = "string" Storage_Modules_Load = "mysql" # Storage Module : mysql # ============================== # Database user # DB_User = "string" DB_User = "nagios" # Database password # DB_Pass = "string" DB_Pass = "nagios" # Database name # DB_Name = "string" DB_Name = "perfparse" # Database hostname # DB_Host = "string" DB_Host = "127.0.0.1" ======= END OF FILE ======= |