Home » Categories » Multiple Categories

Nagios XI - Scheduled Backup Log Level

Overview

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:

define('SB_LOGLEVEL', 3);

 

The different levels available are:

  • 0 = Debug
  • 1 = Info
  • 2 = Warning
  • 3 = Error

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:

/usr/local/nagiosxi/html/includes/constants.inc.php

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:

:wq

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.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - How To Delete A Data Source From An RRD File
Viewed 551 times since Wed, Apr 27, 2016
Nagios XI - Oracle Services Critical After Nagios XI Upgrade
Viewed 259 times since Wed, Jan 27, 2016
Nagios XI - Notification Problems
Viewed 1427 times since Tue, Jan 27, 2015
Nagios XI - Scheduled Downtime Not Working
Viewed 376 times since Mon, Oct 10, 2016
Web Browser Reports 330 Error Content Encoding
Viewed 319 times since Tue, Mar 7, 2017
Nagios XI - ERROR: unable to open include file: conf.d/*.cfg
Viewed 370 times since Sun, May 29, 2016
Nagios XI - Resetting The nagiosadmin Password
Viewed 2031 times since Mon, Jan 25, 2016
Nagios XI - SourceGuardian Errors 2009R1.2C
Viewed 256 times since Tue, Feb 2, 2016
CCM says unapplied changes exist, but none listed
Viewed 255 times since Mon, Feb 27, 2017
Nagios XI - SNMPTT Service generates Cannot find module errors
Viewed 338 times since Sun, Apr 9, 2017