<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Hi,<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.<br>
<br>
I defined in table '</font>Host Extended Information' of Nagmin, those
hosts:<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.09020901.05080702@cict.fr" width="24"
height="24"> sun40.gif</td>
<td width="10%">Sun Server</td>
<td><img src="cid:part2.01010302.01090408@cict.fr" width="24"
height="24"> </td>
<td><img src="cid:part3.00080903.09090204@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%">telline.cict.fr</td>
<td width="10%"><br>
</td>
<td><img src="cid:part4.07030906.04030404@cict.fr" width="24"
height="24"> hpux.png</td>
<td width="10%">HPUX Server</td>
<td><img src="cid:part2.01010302.01090408@cict.fr" width="24"
height="24"> </td>
<td><img src="cid:part6.09070902.05050002@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="2"></td>
<td><br>
</td>
<td width="10%">vae.cict.fr</td>
<td width="10%"><br>
</td>
<td><img src="cid:part7.07020407.09080601@cict.fr" width="24"
height="24"> linux40.jpg</td>
<td width="10%">Linux Server</td>
<td><img src="cid:part2.01010302.01090408@cict.fr" width="24"
height="24"> </td>
<td><img src="cid:part9.04080703.03080009@cict.fr" width="24"
height="24"> linux40.png</td>
<td width="10%">50,10</td>
<td width="10%"><br>
</td>
<td width="10%"><br>
</td>
</tr>
</tbody>
</table>
<br>
I have got serveral 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. I create a new gd2 image in /usr/local/nagios/share/images/logos :
pngtogd2 sun40.png sun.gd2 0 1<br>
When i wanted to choose this new image in the 'Statusmap Image' field
of nagmin, i didn't see it. I realized the directory that took into
account was /opt/webmin/nagmin/images/logos. Why??????<br>
<br>
3. If i edit the /usr/local/nagios/etc/HostExtInfo.cfg, i see that
extended informations of hosts are well created:<br>
## NagMIN Configuration File
(/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for Host<br>
## Generated Thu Jul 1 17:31:44 2004<br>
## NagMIN Configuration File
(/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtInfo<br>
## Generated Thu Jul 1 17:31:44 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 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 Thu Jul 1 17:31:44 2004<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.<br>
<br>
5. I have a question. Is it possible in status map that one host
becomes red when a service becomes critical or yellow when it becomes
in warning?<br>
<br>
<br>
I cannot any more what make. Can someone help me, please?<br>
<br>
Thanks.<br>
<br>
Carole.<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>