Update column widths in 5.4

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Update column widths in 5.4

Post by gormank »

Hi,
I have (well, stole from here no doubt) the following command that updates column widths. It works in my old 2.6 systems, but not in the new 5.4. Can you help update it for 5.4?

Code: Select all

echo "use nagios;alter table nagios_servicestatus modify output varchar(1024) not null;alter table nagios_servicestatus modify long_output varchar(1024) not null;alter table nagios_servicestatus modify perfdata varchar(1024);" | mysql –pnagiosxi
Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Update column widths in 5.4

Post by rkennedy »

Is this what you're looking for by chance?

https://support.nagios.com/kb/article.php?id=478
Former Nagios Employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Update column widths in 5.4

Post by gormank »

Perfect.
Close this anytime.

Thanks!
Locked