[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Nagios



Bonjour à tous,

Depuis quelques temps j'essai de mettre en place nagios ds mon réseau.

En fait tout tourne niquel à part que je n'arrive pas a avoir un
statusmap personnalisé.

Quelqu'un aurait il deja configurer le statusmap personnaliser de nagios.

Voici ma config:

Toutes les icones sont dans /usr/share/doc/nagios/htdocs/images/logos/

j'ai inclu cette ligne dans le fichier /etc/nagios/dgi.cfg:
xedtemplate_config_file=/etc/nagios/hostextinfo.cfg


et voici mon fichier hostextinfo.cfg :

# This definition is used as a template
define hostextinfo{
        name linux                                      ; This name is
referenced in other hostextinfo definitions that
                                                        ; want to use
this as a template
        icon_image              tux.png
        icon_image_alt          Linux template
        vrml_image              novell40.png
        gd2_image               tux.gd2
        register                0                       ;  DO NOT
REGISTER THIS DEFINITION - IT IS JUST A TEMPLATE!!
        }


# A 'normal' definition
define hostextinfo{
        use linux                                       ; Use the
hostextinfo definition with name 'he1' as a template
                                                        ; for this
definition
        host_name               router2         ; Name of the host, as
recognized/used by Nagios
        2d_coords               100,350                 ; 2-D drawing
coordinates
        3d_coords               4.0,0.0,0.0             ; 3-D drawing
coordinates
        }


# Another 'normal' definition
define hostextinfo{
        use linux                                       ; Use the
hostextinfo definition with name 'he1' as a template
                                                        ; for this
definition.
        host_name               router1                 ; Name of the
host, as recognized/used by Nagios
        2d_coords               65,425                  ; 2-D drawing
coordinates
        3d_coords               3.0,0.0,0.0             ; 3-D drawing
coordinates
        }


# A very minimalistic definition - has only 3-D drawing coorindates
define hostextinfo{
        use linux
        host_name               switch1
        2d_coords               65,500
        3d_coords               4.0,0.0,-1.0
        }
define hostextinfo{
        use linux
        host_name               switch2
        2d_coords               100,300
        3d_coords               4.0,0.0,-1.0
        }

Malgré tout cela lorsque j'essai d'acceder au statusmap il me repond :

You have not supplied any host drawing coordinates, so you cannot use
this layout method.

Si quequ'un pourait m'aider a comprendre se serai genial.

Merci d'avance

-- 
###L'abus de debian est bon pour la santé###

Martins Armando



Reply to: