This KB article explains how to change the log level for Nagios XI Scheduled Backups.
As of Nagios XI 5.4.4 you can define different levels of verbosity recorded in the scheduled backup log file.
Define Log Level
The file /usr/local/nagiosxi/html/includes/constants.inc.php contains the directive for defining the log level to be used when scheduled backups are run. The directive is as follows:
The different levels available are:
The default setting is 3.
To define the log level, establish a terminal session to your Nagios XI server. Execute the following command to open the constants.inc.php file in vi:
When using the vi editor, to make changes press i on the keyboard first to enter insert mode. Press Esc to exit insert mode.
The setting is located at the end of the file, press Shift + G to jump there.
Change the level to the desired number and save the changes in vi by typing:
and press Enter.
The next time a scheduled backup is run it will use the new log level that you just defined.
Backup Log File
The scheduled backup file is /usr/local/nagiosxi/var/components/scheduledbackups.log.
To watch the file as a backup is run, execute the following command:
tail -f /usr/local/nagiosxi/var/components/scheduledbackups.log
The screen will display any new entries that are added to the log file. When you want to stop watching the log file press Ctrl + C and you will be returned to the command line.
For any support related questions please visit the Nagios Support Forums at:
Article ID: 578
Created On: Tue, Apr 18, 2017 at 11:23 PM
Last Updated On: Tue, Apr 25, 2017 at 5:39 PM
Authored by: tlea
Online URL: https://support.nagios.com/kb/article/nagios-xi-scheduled-backup-log-level-578.html