Home » Categories » Products » Nagios XI » Troubleshooting » Common Problems

Nagios XI - Status Information Cut Off At 256 Characters

Problem Description

In the Nagios XI interface, the Status Information shown for a service stops at 256 characters (anything after is cut off). When you look at the service in Nagios Core you can see the entire Status Information.

 

Explanation

In Nagios XI, that data is stored in a database as opposed to Core. When XI stores it in the database, the database has a limit as to how much data can be stored.

 

Resolving The Problem

The database can be updated so that it can store more information.

Open an SSH session to your XI server and execute the following commands:

echo "use nagios;alter table nagios_servicestatus modify output varchar(65535) not null;alter table nagios_servicestatus modify long_output TEXT not null;alter table nagios_servicestatus modify perfdata TEXT not null;" | mysql -pnagiosxi

echo "use nagios;alter table nagios_hoststatus modify output varchar(65535) not null;alter table nagios_hoststatus modify long_output TEXT not null;alter table nagios_hoststatus modify perfdata TEXT not null;" | mysql -pnagiosxi

echo "use nagios;alter table nagios_servicechecks modify output varchar(65535) not null;alter table nagios_servicechecks modify long_output TEXT not null;alter table nagios_servicechecks modify perfdata TEXT not null;" | mysql -pnagiosxi

echo "use nagios;alter table nagios_hostchecks modify output varchar(65535) not null;alter table nagios_hostchecks modify long_output TEXT not null;alter table nagios_hostchecks modify perfdata TEXT not null;" | mysql -pnagiosxi

 

Note:

  • These are long commands

  • The commands end with -pnagiosxi where nagiosxi is the default password. If you have changed your database password you'll need to change the command to reflect this.

  • If our have offloaded MySQL to another server, these commands need to be executed on the offloaded server.

 

Final Thoughts

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

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

5 (1)
Article Rating (1 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 - Some BPI Checks Show "Unknown BPI Group Index" After Upgrade
Viewed 597 times since Wed, Sep 18, 2019
CCM says unapplied changes exist, but none listed
Viewed 1110 times since Mon, Feb 27, 2017
Nagios XI - Bandwidth Graphs Showing 0Mb/s in Non-English Systems
Viewed 1823 times since Fri, Dec 19, 2014
Nagios XI - SNMP MIB Upload Problems
Viewed 2225 times since Mon, Apr 10, 2017
Nagios XI - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 1610 times since Thu, Feb 25, 2016
Slack Notifications Stopped Working
Viewed 213 times since Wed, Mar 18, 2020
Nagios Core - Failed to register iobroker
Viewed 1222 times since Wed, Sep 20, 2017
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 2040 times since Wed, Jun 1, 2016
Nagios XI - Migrate Performance Data
Viewed 2434 times since Tue, Jan 26, 2016
Nagios XI - Modifying The Contents Of /usr/local/nagios/etc
Viewed 1199 times since Tue, Jan 26, 2016