This is a cache of https://support.nagios.com/kb/article/nagios-xi-scheduled-backup-log-level-578.html. It is a snapshot of the page at 2025-05-12T01:10:40.138+0000.
Nagios <strong>xi</strong> - Scheduled Backup Log Level
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/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

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 - Reset Upgrade Status In Web Interface
Viewed 11679 times since Tue, May 7, 2019
Migrating Nagios xi to a different Server
Viewed 19335 times since Tue, Feb 16, 2021
Nagios Core - Nagios did not exit in a timely manner
Viewed 8794 times since Wed, Jan 27, 2016
Nagios xi - Crashed Database Tables
Viewed 62855 times since Tue, Jan 27, 2015
Nagios xi - Bandwidth Graphs Showing 0Mb/s in Non-English Systems
Viewed 7503 times since Fri, Dec 19, 2014
Nagios xi - Empty Screen for Wizard, Component, Dashlet
Viewed 8065 times since Wed, Jan 27, 2016
xi 5.4 monitoring engine not running
Viewed 11791 times since Mon, Feb 6, 2017
Nagios xi - SNMPTT Service generates Cannot find module errors
Viewed 6692 times since Sun, Apr 9, 2017
Nagios xi - ERROR: PostgresQL not running - exiting
Viewed 5331 times since Tue, Jan 26, 2016
Upgrading to NDO 3 after having been downgraded in newer versions of Nagios xi
Viewed 4312 times since Fri, Jan 15, 2021