[Check_mk (english)] [SPAM ZIMBRA] Nagmap in Check_mk.

Hello,

I got it working.

This is my config

In Main.mk

extra_host_conf[“notes”] = [

    ( "latlng: 52.137051,4.6296" , ["ky"],  ALL_HOSTS ),
    ( "latlng: 52.137051,4.6296" , ["lr"],  ALL_HOSTS ),
    ( "latlng: 52.129695,4.659061" , ["adsl"], ALL_HOSTS ),
    ( "latlng: 52.129695,4.659060" , ["sh-core-01"],  ALL_HOSTS ),

]

In my config.php

<?php $nagios_cfg_file = "/usr/local/nagios/etc/nagios.cfg"; $nagios_status_dat_file = "/usr/local/nagios/var/status.dat"; $nagmap_map_centre = '52.129576,4.659226'; $nagmap_map_zoom = 14; $nagmap_bubble_links = 0; ###do not edit below unless you know what you are doing ###this is a special file, which is only available on a special installations of Moire WiFI controller system developed by the same folks who develop NagMap - give us a shout if you are in a p hase of implementing municipal, or any other type of wifi network :) we might be at your help! include("moire.php"); ?>

And this works.

Eikelenboom, Hans
Servicebeheer en Beleid - ICT Beheer
Gemeente Alphen aan den Rijn
Stadhuisplein 1, , 2405 SH, Alphen aan den Rijn
T 465547 | M | F
E
HEikelenboom@alphenaandenrijn.nl | I

W http://www.alphenaandenrijn.nl

P ** * Please consider the environment before printing this e-mail***

Werkdagen: Ma,Di,Wo en Vr

···

Van: Grégory TRELAT [mailto:gtrelat@ville-saintdie.fr]
Verzonden: woensdag 12 september 2012 10:28
Aan: Eikelenboom, Hans
Onderwerp: Re: [SPAM ZIMBRA][Check_mk (english)] Nagmap in Check_mk.

hi,

I’m interested in this feature too.

I tried too add manually the notes field in check_mk_objects.cfg, but in nagstat i can’t see bubbles.

check_mk_objects.cfg :

define host {

host_name ADSL_BOX_1

use check_mk_host

address 192.168.XX.X

_TAGS ping wato /wato/reseau_mairie/fais/

_FILENAME /wato/reseau_mairie/fais/hosts.mk

hostgroups FAI

contact_groups admins

notification_interval 5

alias ADSL 8M SFR

first_notification_delay 5

notes latlng: 48.287554,6.947786

}

my nagmap config.php :

<?php $nagios_cfg_file = "/usr/local/nagios/etc/conf.d/check_mk_objects.cfg"; $nagios_status_dat_file = "/usr/local/nagios/var/status.dat"; #$nagmap_map_centre = '57.1633,-2.127'; $nagmap_map_centre = '48.287554,6.947786'; $nagmap_map_zoom = 18; $nagmap_bubble_links = 1; include("moire.php"); ?>

Any idea ?

Grégory Trélat

Service Informatique
Mairie de Saint-Dié-des-Vosges


De: “Hans Eikelenboom” Heikelenboom@alphenaandenrijn.nl
À: checkmk-en@lists.mathias-kettner.de
Envoyé: Lundi 10 Septembre 2012 16:21:15
Objet: [SPAM ZIMBRA][Check_mk (english)] Nagmap in Check_mk.

Hello,

I need to integrated nagmap into check_mk.

How can I make notes in check_mk and so that it is visible in check_mk_objects.

Like this

define host {
host_name Sansw1
use check_mk_host
address x.x.x.x
_TAGS snmp
hostgroups check_mk
contact_groups windows_groep
alias Sansw1

notes this is a note
}

Or this

define hostextinfo{
host_name Sansw1
icon_image switch.jpg

    notes                                this a note
    }

Eikelenboom, Hans
Servicebeheer en Beleid - ICT Beheer
Gemeente Alphen aan den Rijn
Stadhuisplein 1, , 2405 SH, Alphen aan den Rijn
T 465547 | M | F
E
HEikelenboom@alphenaandenrijn.nl | I

W http://www.alphenaandenrijn.nl

P ** * Please consider the environment before printing this e-mail***

Werkdagen: Ma,Di,Wo en Vr


checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en