[Nagiosplug-devel] Hostextinfo ignored when configured with database support
carole verdon
verdon at cict.fr
Thu Jul 8 02:25:04 CEST 2004
Thanks for your response.
Where i can find the libz.so.1 (SUNW_1.1) ? I search on google but
without result.
Actually, the packages installed of zlib and glib on my solaris boxe
(sparc/solaris 8) are that:
$ pkginfo -l SMCzlib
PKGINST: SMCzlib
NAME: zlib
CATEGORY: application
ARCH: sparc
VERSION: 1.2.1
BASEDIR: /usr/local
VENDOR: Greg Roelofs and Jean-loup Gaillt
PSTAMP: Steve Christensen
INSTDATE: Apr 20 2004 09:51
EMAIL: steve at smc.vnet.net
STATUS: completely installed
FILES: 21 installed pathnames
7 shared pathnames
8 directories
2 executables
609 blocks used (approx)
$ pkginfo -l SMCglib
PKGINST: SMCglib
NAME: glib
CATEGORY: application
ARCH: sparc
VERSION: 2.2.3
BASEDIR: /usr/local
VENDOR: The GLib-2.0 Team
PSTAMP: Steve Christensen
INSTDATE: Apr 27 2004 11:01
EMAIL: steve at smc.vnet.net
STATUS: completely installed
FILES: 608 installed pathnames
113 shared pathnames
139 directories
12 executables
26054 blocks used (approx)
>Ofcourse it doesn't work when nagmin puts it in configuration files
instead of in the proper database. You need to check the documentation
again and >create and configure tables to store the hostextinfo in.
I don't understand what i must do. Do i have to create tables in nagmin?
When i connect to nagios database, i see two tables : HostExtInfo and
hostextinfo. HostExtInfo table contains data but hostextinfo table is empty.
mysql> select * from HostExtInfo ;
+----------+------------------+-----------+-------------+----------------+------------+-----------------+------------+------------+---------+
| template | host_name | notes_url | icon_image | icon_image_alt
| vrml_image | statusmap_image | 2d_coords | 3d_coords | comment |
+----------+------------------+-----------+-------------+----------------+------------+-----------------+------------+------------+---------+
| NULL | aurore.cict.fr | NULL | sun40.gif | Sun Server
| NULL | sun.gd2 | NULL | NULL | NULL |
| NULL | telline.cict.fr | NULL | hpux.png | HPUX Server
| NULL | hpux.gif | 100,60 | NULL | NULL |
| NULL | vae.cict.fr | NULL | linux40.jpg | Linux Server
| NULL | linux40.png | 50,10 | NULL | NULL |
| NULL | gw1-mail.cict.fr | NULL | NULL | Mail Gateway
| NULL | NULL | 110,80 | NULL | NULL |
| NULL | lambi.cict.fr | NULL | NULL | NIS Server
| NULL | NULL | 100.0,50.0 | NULL | NULL |
| NULL | ns2.cict.fr | NULL | linux40.gif | ns2
| NULL | linux40.png | 10,25 | NULL | NULL |
+----------+------------------+-----------+-------------+----------------+------------+-----------------+------------+------------+---------+
6 rows in set (0.00 sec)
mysql> select * from hostextinfo;
Empty set (0.00 sec)
????????
Andreas Ericsson wrote:
> carole verdon wrote:
>
>>
>> I have got several problems:
>>
>> 1. The gd2 images don't appear.
>> If i execute ldd statusmap.cgi, it find the gd library
>> libmysqlclient.so.10 =>
>> /usr/local/mysql/lib/mysql/libmysqlclient.so.10
>> libgd.so.2 => /usr/local/lib/libgd.so.2
>> libiconv.so.2 => /usr/local/lib/libiconv.so.2
>> libz.so => /usr/local/lib/libz.so
>> libm.so.1 => /usr/lib/libm.so.1
>> libpng.so.3 => /usr/local/lib/libpng.so.3
>> libjpeg.so.62 => /usr/local/lib/libjpeg.so.62
>> libc.so.1 => /usr/lib/libc.so.1
>> libz.so.1 (SUNW_1.1) => (version not found)
>> libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
>> libgen.so.1 => /usr/lib/libgen.so.1
>> libsocket.so.1 => /usr/lib/libsocket.so.1
>> libnsl.so.1 => /usr/lib/libnsl.so.1
>> libXpm.so.4.11 => /usr/local/lib/libXpm.so.4.11
>> libX11.so.4 => /usr/lib/libX11.so.4
>> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6
>> libpng12.so.0 => /usr/local/lib/libpng12.so.0
>> libz.so.1 (SUNW_1.1) => (version not found)
>> libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
>> libdl.so.1 => /usr/lib/libdl.so.1
>> libmp.so.2 => /usr/lib/libmp.so.2
>> libXext.so.0 => /usr/openwin/lib/libXext.so.0
>> libz.so.1 (SUNW_1.1) => (version not found)
>> /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
>>
>
> But it doesn't find libz with proper version, which is needed by libgd.
>
>>
>> 2. If i edit the /usr/local/nagios/etc/HostExtInfo.cfg, i see that
>> extended informations of hosts are well created:
>>
>> ## NagMIN Configuration File
>> (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for Host
>> ## Generated Wed Jul 7 10:24:53 2004
>> ## NagMIN Configuration File
>> (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtInfo
>> ## Generated Wed Jul 7 10:24:53 2004
>> define hostextinfo {
>> host_name aurore.cict.fr
>> icon_image sun40.gif
>> icon_image_alt Sun Server
>> statusmap_image sun.gd2
>> }
>> define hostextinfo {
>> host_name gw1-mail.cict.fr
>> icon_image_alt Mail Gateway
>> 2d_coords 110,80
>> }
>> define hostextinfo {
>> host_name lambi.cict.fr
>> icon_image_alt NIS Server
>> 2d_coords 100.0,50.0
>> }
>> define hostextinfo {
>> host_name ns2.cict.fr
>> icon_image linux40.gif
>> icon_image_alt ns2
>> statusmap_image linux40.png
>> 2d_coords 10,25
>> }
>> define hostextinfo {
>> host_name telline.cict.fr
>> icon_image hpux.png
>> icon_image_alt HPUX Server
>> statusmap_image hpux.gif
>> 2d_coords 100,60
>> }
>> define hostextinfo {
>> host_name vae.cict.fr
>> icon_image linux40.jpg
>> icon_image_alt Linux Server
>> statusmap_image linux40.png
>> 2d_coords 50,10
>> }
>> ## NagMIN Configuration File
>> (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtTemplate
>> ## Generated Wed Jul 7 10:24:53 2004
>>
>>
>> I tried to add in my cgi.cfg this line:
>> xedtemplate_config_file=/usr/local/nagios/etc/HostExtInfo.cfg
>>
>> But nagios don't take into account.
>>
>> 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:
>> xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
>>
>> 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.
>>
>
> Ofcourse it doesn't work when nagmin puts it in configuration files
> instead of in the proper database. You need to check the documentation
> again and create and configure tables to store the hostextinfo in.
>
>> 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.
>>
>
> This is not a problem for the nagiosplug-devel mailinglist (nothing of
> this mail is, but this isn't even related to nagios). Send an email to
> the nagmin user- or devel-list.
>
>> Can someone help me, please?
>>
>
> I just did.
>
>> Thanks.
>>
>
> You're welcome. Oh, and btw. Please don't post a bunch of attachments
> to the list. Using plaintext emails should work the best and clutter
> things the least.
>
>> Carole.
>>
>
>
>
--
**********************************
VERDON Carole
Ingénieur Système
CICT - Université Paul Sabatier
118, route de Narbonne
31062 Toulouse Cedex
Tél.: 05.61.36.60.44
Fax: 05.61.52.14.58
Mail: verdon at cict.fr
**********************************
More information about the Devel
mailing list