How to log files

Version 2 by Bren Eckles
on Sep 30, 2017 16:43.

compared with
Current by Bren Eckles
on Nov 28, 2017 16:21.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (45)

View Page History
*Settings* \\
/usr/local/groundwork/apache2/conf/httpd.conf \\
\[set (set in the CustomLog and ErrorLog options\] options) \\ \\
/usr/local/groundwork/apache2/conf/extra/httpd-ssl.conf \\
\[set (set in the TransferLog and ErrorLog options\] options) \\ \\
*Location* \\
/usr/local/groundwork/apache2/logs/access_log \\
*Settings* \\
/usr/local/groundwork/apache2/conf/extra/httpd-ssl.conf \\
\[set in the CustomLog option\] \\ \\
(set in the CustomLog option) \\ \\
*Location* \\
/usr/local/groundwork/apache2/logs/ssl_request_log | logrotate |
*Settings* \\
/usr/local/groundwork/common/etc/autoimport.conf \\
\[set in the logfile option\] \\ \\
(set in the logfile option) \\ \\
*Location* \\
/usr/local/groundwork/nagios/var/autoimport.log | Bug in GWM5.2.1 through GWM6.0: No rotation or retention control. The log file is simply appended to on each pass. |
*Settings* \\
/usr/local/groundwork/common/etc/gwir.cfg \\
\[set (set in the dashboard_avail_log option, indirectly referred to by the dashboard_avail_debug option\] option) \\
This script is run via crontab for the nagios user. Stderr and stdout are redirected to a log file. \\ \\
*Location* \\
/usr/local/groundwork/core/reports/utils/log/dashboard_avail.log \\
\[configured (configured log file for the dashboard_avail_load.pl script\] script) \\ \\
/usr/local/groundwork/core/reports/utils/log/dashboard_avail_load.log \\
\[output (output and error streams from the dashboard_avail_load.pl script cron job\] job) | No retention control. By default, the log file is overwritten on each pass. |
| *dashboard_data_load.pl* | *Description* \\
Output summary of execution. \\ \\
*Settings* \\
/usr/local/groundwork/common/etc/gwir.cfg \\
\[set (set in the dashboard_data_log option; indirectly referred to by the dashboard_data_debug option\] option) \\
This script is run via crontab for the nagios user.  Stderr and stdout are redirected to a log file. \\ \\
*Location* \\
/usr/local/groundwork/core/reports/utils/log/dashboard_data.log \\
\[configured (configured log file for the dashboard_data_load.pl script\] script) \\ \\
/usr/local/groundwork/core/reports/utils/log/dashboard_data_load.log \\
\[output (output and error streams from the dashboard_data_load.pl script cron job\] job) | No retention control. By default, the log file is overwritten on each pass. |
| *dashboard_lwp_load.pl* | *Description* \\
Output summary of execution. \\ \\
*Settings* \\
/usr/local/groundwork/common/etc/gwir.cfg \\
\[set (set in the dashboard_lwp_log option; indirectly referred to by the dashboard_lwp_debug option\] option) \\ \\
*Location* \\
/usr/local/groundwork/core/reports/utils/log/dashboard_lwp.log | No retention control. By default, the log file is overwritten on each pass. |
*Settings* \\
/usr/local/groundwork/config/fping_process.conf \\
\[set in the logfile option\] \\ \\
(set in the logfile option) \\ \\
*Location* \\
/usr/local/groundwork/foundation/container/logs/fping.log | logrotate |
*Settings* \\
/usr/local/groundwork/nagios/eventhandlers/gwprocesstrap.pl \\
\[set (set in scripted code as the logfile option\] option) \\ \\
The gwprocesstrap.pl script is now obsolescent in the GW5.2.1 release.  Its functionality has been integrated into snmptt.  The standalone script is provided only to assist during migrations from older releases.  New setups should not reference this script, and the configuration on upgraded systems should be modified so it no longer uses this script. \\ \\
*Location* \\
*Settings* \\
/usr/local/groundwork/log-reporting/lib/GWLogger.pm \\
\[set in the scripting code\] \\ \\
(set in the scripting code) \\ \\
*Location* \\
/usr/local/groundwork/log-reporting/logs/log-reporting.log | logrotate |
*Settings* \\
/usr/local/groundwork/nagios/etc/nagios.cfg \\
\[set (set in the log_file option; indirectly referred to by the use_syslog, log_notifications, log_service_retries, log_host_retries, log_event_handlers, log_initial_states, log_external_commands, and log_passive_checks options\] options) \\
\[set (set in Monarch as Configuration \-> Control \-> Nagios Main Configuration, Page 1 \-> Log file\] file) \\ \\
/usr/local/groundwork/nagios/scripts/ctl.sh \\
\[set in the scripting code\] \\ \\
(set in the scripting code) \\ \\
/usr/local/groundwork/core/reports/etc/gwir.cfg \\
\[set in the nagios_event_log option\] \\ \\
(set in the nagios_event_log option) \\ \\
/usr/local/groundwork/common/etc/autoimport.conf \\
\[set in the nagioslogfile option\] \\ \\
(set in the nagioslogfile option) \\ \\
*Location* \\
/usr/local/groundwork/nagios/var/nagios.log | Nagios archiving. |
*Settings* \\
/usr/local/groundwork/nagios/etc/nagios.cfg \\
\[base (base path set in the log_archive_path option; indirectly referred to by the log_rotation_method option\] option) \\
\[directory (directory set in Monarch as Configuration \-> Control \-> Nagios Main Configuration, Page 1 \-> Log archive path\] path)  \\ \\
*Location* \\
/usr/local/groundwork/nagios/var/archives/nagios-*.log | File rotation under control of Nagios; file retention under control of a nagios cron job. |
*Settings* \\
/usr/local/groundwork/nagios/etc/nagios.cfg \\
\[set (set in the status_file option; indirectly referred to by the aggregate_status_updates and status_update_interval options\] options) \\
\[set (set in Monarch as Configuration \-> Control \-> Nagios Main Configuration, Page 1 \-> Status file\] file) \\ \\
/usr/local/groundwork/feeder/nagios2collage_socket.pl \\
\[set in the scripting code\] \\ \\
(set in the scripting code) \\ \\
*Location* \\
/usr/local/groundwork/nagios/var/status.log | Nagios |
*Settings* \\
/usr/local/groundwork/nagios/etc/nagios.cfg \\
\[set (set in the host_perfdata_file option, if host performance data logging is enabled; indirectly referred to by the perfdata_timeout, host_perfdata_command, host_perfdata_file_template, host_perfdata_file_mode, host_perfdata_file_processing_interval, and host_perfdata_file_processing_command options\] options) \\
\[set (set in Monarch as Configuration \-> Control \-> Nagios Main Configuration, Page 3 \-> Host performance data file\] file) \\ \\
*Location* \\
/usr/local/groundwork/nagios/var/host-perfdata.dat | Nagios; handled by logrotate as well only as a fail-safe mechanism. |
*Settings* \\
/usr/local/groundwork/nagios/etc/nagios.cfg \\
\[set (set in the service_perfdata_file option, if service performance data logging is enabled; indirectly referred to by the perfdata_timeout, service_perfdata_command, service_perfdata_file_template, service_perfdata_file_mode, service_perfdata_file_processing_interval, and service_perfdata_file_processing_command options\] options) \\
\[set (set in Monarch as Configuration \-> Control \-> Nagios Main Configuration, Page 3 \-> Service performance data file\] file) \\ \\
/usr/local/groundwork/nagios/eventhandlers/launch_perf_data_processing \\
\[set (set in the scripting code as the source_file option\] option) \\ \\
*Location* \\
/usr/local/groundwork/nagios/var/service-perfdata.dat | Nagios; handled by logrotate as well only as a fail-safe mechanism. |
*Settings* \\
/usr/local/groundwork/foundation/feeder/nagios2collage_eventlog.pl \\
\[set (set in the logfile option; indirectly referred to by the debug option\] option) \\ \\
*Location* \\
/usr/local/groundwork/foundation/container/logs/nagios2collage_eventlog.log | logrotate |
*Settings* \\
/usr/local/groundwork/foundation/feeder/nagios2collage_socket.pl \\
\[set (set in the logfile option; indirectly referred to by the debug option\] option) \\ \\
*Location* \\
/usr/local/groundwork/foundation/container/logs/nagios2collage_socket.log | logrotate |
*Settings* \\
/usr/local/groundwork/common/etc/nsca.cfg \\
\[logging (logging level controlled by the debug option\] option) \\ \\
*Location* \\
Log messages are sent to the syslog facility (syslog-ng, on a GroundWork server).  Such messages can be found in /var/log/messages by searching for the string "nsca". | logrotate |
*Settings* \\
/usr/local/groundwork/nagios/eventhandlers/process_service_perfdata_file \\
\[set (set in the debuglog option; indirectly referred to by the debug option\] option) \\ \\
*Location* \\
/usr/local/groundwork/nagios/var/log/process_service_perfdata_file.log | logrotate |
*Settings* \\
/usr/local/groundwork/common/etc/snmp/snmpttd.init \\
\[set (set in the scripting code as the LOGFILE option\] option) \\ \\
/usr/local/groundwork/common/scripts/ctl-snmptrapd.sh \\
\[set (set in the scripting code as the SNMPTRAPD_LOGFILE option\] option) \\ \\
*Location* \\
/usr/local/groundwork/common/var/log/snmp/snmptrapd.log | logrotate |
*Settings* \\
/usr/local/groundwork/common/etc/snmp/snmptt.ini \\
\[pathnames (pathnames set in the DEBUGGING_FILE, DEBUGGING_FILE_HANDLER, log_file, log_system_file, and unknown_trap_log_file options; see related DEBUGGING, stdout_enable, log_enable, log_system_enable, unknown_trap_log_enable, syslog_enable, syslog_facility, syslog_level, syslog_level_*, syslog_system_enable, syslog_system_facility, and syslog_system_level options\] options) \\ \\
Note: Alternate debugging-level flag and debug logging filename values (--debug=# and \--debugfile=filename) can be passed in as parameters when starting snmptt (by adjusting the SNMPTT_OPTION1 string in the /usr/local/groundwork/common/scripts/ctl-snmptt.sh script).  This is not generally recommended for production use, but may be helpful while isolating problems (though adjusting the snmptt.ini file should be the first resort).  One might also modify the /usr/local/groundwork/common/sbin/snmptt script to directly set the default values for the debug level and debug file settings, though again such a hack is not recommended. \\ \\
Note: In the GWM6.0 release, gwprocesstrap.pl is now integrated into snmptt, so there is no longer a reason to invoke it separately. See [SNMP Trap Processing|http://florida.groundwork.groundworkopensource.com/bookshelf-data/Message_Processing/messageprocessing_snmptrapmessages.htm]. \\ \\
*Settings* \\
/usr/local/groundwork/common/etc/syslog-ng.conf \\
\[message (message input defined by source options; message output defined by destination options, message routing and filtering defined by log options\] options) \\ \\
*Location* \\
Log entries written to specified files, including: \\