statusmap_background_image problems


#1

I am having problems getting the statusmap_background_image to display. I can click on “Status Map” and get the page up. I even get the one host I have configured with user-defined coordinates. But the background image is not displaying. Here are my lines from the various cg files:

nagios.cfg

Extended host/service info definitions are now stored along with

other object definitions:

cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
#cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg

cgi.cfg

STATUSMAP BACKGROUND IMAGE

statusmap_background_image=nagios_background.gd2

DEFAULT STATUSMAP LAYOUT METHOD

0 = User-defined coordinates

1 = Depth layers

2 = Collapsed tree

3 = Balanced tree

4 = Circular

5 = Circular (Marked Up)

default_statusmap_layout=0

hostextinfo.cfg
define hostextinfo {
host_name tower001-router01
2d_coords 100,100
}

The nagios_background.gd2 file in /usr/local/nagios/share/images directory. The permissions are set for nagios.nagios and rw for user and group. The default graphic for the host is showing on the page, just not the background image.

Any Ideas?

Thanks,

Wes Hegge


#2

Update: Changed the image from the gd2 version to the original png file and the background now displays. So it must have been the way I converted the png to gd2. I used the pngtogd2 program from libgd-tools. The options I used were 0 1. Are these wrong?

Thanks,

Wes Hegge