<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Hi,<br>
<br>
I'm desperate. I don't find solutions to solve my problem.<br>
<br>
I use nagios 1.2 and nagmin 2.1.0 to configure hosts and services on
solaris boxe.<br>
<br>
I compiled nagios with mysql database support using the option<font
 color="#000000"> </font><font color="#000000">--with-mysql-xdata.<br>
<br>
I see my hosts in statusmap but when i want to use hostextinfo to add
an image or coordinates, nothing happens. </font> And when i choose
User-supplied coords in the layout method, it says to me that i have
not supplied any. <br>
<br>
<font color="#000000"> Here that i defined in table '</font>Host
Extended Information' of Nagmin:<br>
<br>
<table border="1" cellpadding="2" cellspacing="0"
 bordercolorlight="#000000" bordercolordark="#FFFFFF" height="0">
  <tbody>
    <tr
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;">
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"> </td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>Template</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>Host
Name</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>Notes
URL</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>Icon
Image</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>Icon
Image Alt</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>VRML
Image</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>Statusmap
Image</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>2D
Coordinates</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>3D
Coordinates</b></td>
      <td
 style="background-color: rgb(102, 150, 188); color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;"><b>Comment</b></td>
    </tr>
    <tr
 style="background-color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;">
      <td width="2%"><input type="checkbox" name="row" value="0"></td>
      <td><br>
      </td>
      <td width="10%">aurore.cict.fr</td>
      <td width="10%"><br>
      </td>
      <td><img src="cid:part1.09080006.02030803@cict.fr" width="24"
 height="24"> sun40.gif</td>
      <td width="10%">Sun Server</td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td><img src="cid:part3.07090500.03020002@cict.fr" width="24"
 height="24"> sun.gd2</td>
      <td width="10%"><br>
      </td>
      <td width="10%"><br>
      </td>
      <td width="10%"><br>
      </td>
    </tr>
    <tr
 style="background-color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;">
      <td width="2%"><input type="checkbox" name="row" value="1"></td>
      <td><br>
      </td>
      <td width="10%">gw1-mail.cict.fr</td>
      <td width="10%"><br>
      </td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td width="10%">Mail Gateway</td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td width="10%">110,80</td>
      <td width="10%"><br>
      </td>
      <td width="10%"><br>
      </td>
    </tr>
    <tr
 style="background-color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;">
      <td width="2%"><input type="checkbox" name="row" value="2"></td>
      <td><br>
      </td>
      <td width="10%">lambi.cict.fr</td>
      <td width="10%"><br>
      </td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td width="10%">NIS Server</td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td width="10%">100.0,50.0</td>
      <td width="10%"><br>
      </td>
      <td width="10%"><br>
      </td>
    </tr>
    <tr
 style="background-color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;">
      <td width="2%"><input type="checkbox" name="row" value="3"></td>
      <td><br>
      </td>
      <td width="10%">ns2.cict.fr</td>
      <td width="10%"><br>
      </td>
      <td><img src="cid:part10.04030205.00090200@cict.fr" width="24"
 height="24"> linux40.gif</td>
      <td width="10%">ns2</td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td><img src="cid:part12.05070408.05050908@cict.fr" width="24"
 height="24"> linux40.png</td>
      <td width="10%">10,25</td>
      <td width="10%"><br>
      </td>
      <td width="10%"><br>
      </td>
    </tr>
    <tr
 style="background-color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;">
      <td width="2%"><input type="checkbox" name="row" value="4"></td>
      <td><br>
      </td>
      <td width="10%">telline.cict.fr</td>
      <td width="10%"><br>
      </td>
      <td><img src="cid:part13.03060300.00030203@cict.fr" width="24"
 height="24"> hpux.png</td>
      <td width="10%">HPUX Server</td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td><img src="cid:part15.06070908.08080603@cict.fr" width="24"
 height="24"> hpux.gif</td>
      <td width="10%">100,60</td>
      <td width="10%"><br>
      </td>
      <td width="10%"><br>
      </td>
    </tr>
    <tr
 style="background-color: rgb(255, 255, 255); font-family: arial,helvetica; font-size: 10pt;">
      <td width="2%"><input type="checkbox" name="row" value="5"></td>
      <td><br>
      </td>
      <td width="10%">vae.cict.fr</td>
      <td width="10%"><br>
      </td>
      <td><img src="cid:part16.01000707.07040508@cict.fr" width="24"
 height="24"> linux40.jpg</td>
      <td width="10%">Linux Server</td>
      <td><img src="cid:part2.06090100.07090305@cict.fr" width="24"
 height="24"> </td>
      <td><img src="cid:part12.05070408.05050908@cict.fr" width="24"
 height="24"> linux40.png</td>
      <td width="10%">50,10</td>
      <td width="10%"><br>
      </td>
    </tr>
  </tbody>
</table>
<br>
<br>
I have got several problems:<br>
<br>
1. The gd2 images don't appear.<br>
If i execute ldd statusmap.cgi, it find the gd library<br>
        libmysqlclient.so.10 => 
/usr/local/mysql/lib/mysql/libmysqlclient.so.10<br>
        libgd.so.2 =>    /usr/local/lib/libgd.so.2<br>
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2<br>
        libz.so =>       /usr/local/lib/libz.so<br>
        libm.so.1 =>     /usr/lib/libm.so.1<br>
        libpng.so.3 =>   /usr/local/lib/libpng.so.3<br>
        libjpeg.so.62 =>         /usr/local/lib/libjpeg.so.62<br>
        libc.so.1 =>     /usr/lib/libc.so.1<br>
        libz.so.1 (SUNW_1.1) =>  (version not found)<br>
        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1<br>
        libgen.so.1 =>   /usr/lib/libgen.so.1<br>
        libsocket.so.1 =>        /usr/lib/libsocket.so.1<br>
        libnsl.so.1 =>   /usr/lib/libnsl.so.1<br>
        libXpm.so.4.11 =>        /usr/local/lib/libXpm.so.4.11<br>
        libX11.so.4 =>   /usr/lib/libX11.so.4<br>
        libfreetype.so.6 =>      /usr/local/lib/libfreetype.so.6<br>
        libpng12.so.0 =>         /usr/local/lib/libpng12.so.0<br>
        libz.so.1 (SUNW_1.1) =>  (version not found)<br>
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1<br>
        libdl.so.1 =>    /usr/lib/libdl.so.1<br>
        libmp.so.2 =>    /usr/lib/libmp.so.2<br>
        libXext.so.0 =>  /usr/openwin/lib/libXext.so.0<br>
        libz.so.1 (SUNW_1.1) =>  (version not found)<br>
        /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1<br>
<br>
I have even made this command: crle -l /usr/lib:/usr/local/lib, but
that didn't change nothing<br>
<br>
# crle<br>
<br>
Configuration file [3]: /var/ld/ld.config<br>
  Default Library Path (ELF):   /usr/lib:/usr/local/lib<br>
  Trusted Directories (ELF):    /usr/lib/secure  (system default)<br>
<br>
Command line:<br>
  crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib<br>
<br>
2. If i edit the /usr/local/nagios/etc/HostExtInfo.cfg, i see that
extended informations of hosts are well created:<br>
<br>
## NagMIN Configuration File
(/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for Host<br>
## Generated Wed Jul  7 10:24:53 2004<br>
## NagMIN Configuration File
(/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtInfo<br>
## Generated Wed Jul  7 10:24:53 2004<br>
define hostextinfo {<br>
    host_name    aurore.cict.fr<br>
    icon_image    sun40.gif<br>
    icon_image_alt    Sun Server<br>
    statusmap_image    sun.gd2<br>
}<br>
define hostextinfo {<br>
    host_name    gw1-mail.cict.fr<br>
    icon_image_alt    Mail Gateway<br>
    2d_coords    110,80<br>
}<br>
define hostextinfo {<br>
    host_name    lambi.cict.fr<br>
    icon_image_alt    NIS Server<br>
    2d_coords    100.0,50.0<br>
}<br>
define hostextinfo {<br>
    host_name    ns2.cict.fr<br>
    icon_image    linux40.gif<br>
    icon_image_alt    ns2<br>
    statusmap_image    linux40.png<br>
    2d_coords    10,25<br>
}<br>
define hostextinfo {<br>
    host_name    telline.cict.fr<br>
    icon_image    hpux.png<br>
    icon_image_alt    HPUX Server<br>
    statusmap_image    hpux.gif<br>
    2d_coords    100,60<br>
}<br>
define hostextinfo {<br>
    host_name    vae.cict.fr<br>
    icon_image    linux40.jpg<br>
    icon_image_alt    Linux Server<br>
    statusmap_image    linux40.png<br>
    2d_coords    50,10<br>
}<br>
## NagMIN Configuration File
(/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtTemplate<br>
## Generated Wed Jul  7 10:24:53 2004<br>
<br>
<br>
I tried to add in my cgi.cfg this line: <br>
xedtemplate_config_file=/usr/local/nagios/etc/HostExtInfo.cfg <br>
<br>
But nagios don't take into account. <br>
<br>
So, I tried the template method on an old server used to test nagios 
which was configured without database support. So, i add in cgi.cfg
this line:<br>
xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg<br>
<br>
And i realized that worked. I saw my hosts in status map as i have
defined them. So, i suppose that the use of database to store the
extended information isn't a good method since it don't work.<br>
<br>
4. Another problem with nagmin is that if i want to modify coordinates
of one host for example, that don't works. When i click on 'save'
button, nothing changes. Even after click on 'activate' button, the
modifications that i have made don't take into account. <br>
<br>
<br>
I tried to look source code of statusmap.cgi but it's very complicated.
I'm not a programmer.<br>
<br>
I passed several days to search a solution without result.<br>
<br>
Can someone help me, please?<br>
<br>
Thanks.<br>
<br>
Carole.<br>
<br>
</body>
</html>