Here is a nice and clean way to display a listing of your diagrams of processes being monitored by Nagios. It is really simple and can give your opening page the look of Tivoli, which costs 2.5 million times what you are paying for Nagios and Nagvis.
- Go to our Nagvis installation files: $Prefix/nagvis/nagvis/includes/classes/
- You will need to edit the file: NagVisFrontend.php, so VI the file.
- Change the following SPAN tag to the size you want your rows: $ret[] = ‘<td ‘.$class.’ style=”width:50px;height:50px;”
- Comment out the following lines: /*if($this->MAPCFG->getValue(‘global’, 0,’usegdlibs’) == ’1′ && $MAP->checkGd(1)) {
$ret[] = ‘<img style=”width:200px;height:150px;” src=”‘.$this->createThumbnail($imgPath, $mapName).’” /><br />’;
} else {
$ret[] = ‘<img style=”width:200px;height:150px;” src=”‘.$imgPathHtml.’” /><br />’;
}*/ - Right beneath that part you want to add the TR tag and comment out the for loop: $ret[] = ‘</td></tr>’;
/*if($i % 4 == 0) {
$ret[] = ‘</tr><tr>’;
}*/ - Save the file and refresh your browser. You should see:

This is another example of how you can modify Nagios and Nagvis by thinking outside the box. Please take a chance to examine the “Learning Nagios 3″ book that is displayed on the right side of the page, because it contains many helpful hint when it comes to configuring your instance of the application.
Enjoy,
Mike Kniaziewicz, MIS