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:

 

Final Thoughts

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

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



Article ID: 478
Created On: Thu, Feb 25, 2016 at 6:41 PM
Last Updated On: Fri, Sep 27, 2019 at 10:53 AM
Authored by: tlea

Online URL: https://support.nagios.com/kb/article/nagios-xi-status-information-cut-off-at-256-characters-478.html