Nagios 3.4.1 Columns in status.cgi

That wasn’t nice.

Nagios has 3 columns as a default hard coded inside its status.cgi.
Today we have such wide screens to display things with…

In order to change this default behaviour of old code, in nagios, change the following:

(get a copy of the nagios source code, in my case 3.4.1)
unpack, ./configure it
in /yoursourcedir/nagios/cgi/ change status.c
int overview_columns = 3; into int overview_columns = 10;

then compile with:

make cgis

then you can copy the newly created cgi in place of the old one (for example.)

Be aware that you set the rights correctly.

Hope this helps you.

This entry was posted in News. Bookmark the permalink.