nagios 3.3.1 Core + nagmap

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
richardsith
Posts: 6
Joined: Sun Nov 20, 2011 10:10 am

nagios 3.3.1 Core + nagmap

Post by richardsith »

hello,

it's my first post here, i don't know if the section is right for my problem.
I've installed, on my Ubuntu 10.04Lts server edition, Nagios 3.3.1 Core and nagmap (google map) to view my remote routers on the map. I followed all steps present on navmap's help and when I open it, i see the correct coordinate of my place but I don't see the routers, of following i reported the configuration of router1 and router2

r1.cfg:
define host{
use generic-router ; Inherit default values from a template
host_name router-01 ; The name we're giving to this switch
alias Router Cisco 1841 ; A longer name associated with the switch
address x.x.x.102 ; IP address of the switch
hostgroups routers-02 ; Host groups this switch is associated with
parents router-02
notes lating: 42.60220,14.07215
register 1
statusmap_image router40.png ; Router image
}

r2.cfg
define host{
use generic-router ; Inherit default values from a template
host_name router-01 ; The name we're giving to this switch
alias Router Cisco 1841 ; A longer name associated with the switch
address x.x.x.102 ; IP address of the switch
hostgroups routers-02 ; Host groups this switch is associated with
parents router-02
notes lating: 42.60220,14.07215
register 1
statusmap_image router40.png ; Router image
}

these are two different files created on the directory /usr/local/nagios/etc/objects/routers/, i've already configuration nagios.cfg for this path.

is there some one that can help me to resolve the issue, thanks a lot
Last edited by richardsith on Thu Dec 22, 2011 5:25 pm, edited 1 time in total.
richardsith
Posts: 6
Joined: Sun Nov 20, 2011 10:10 am

Re: nagios 3.3.1 Core + navmap

Post by richardsith »

anyone can help me?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: nagios 3.3.1 Core + nagmap

Post by mguthrie »

Are you seeing these routers in Nagios Core at all, or are they just missing from the google map? If they're missing entirely, make sure you've got those new files includes in your main nagios.cfg file.
richardsith
Posts: 6
Joined: Sun Nov 20, 2011 10:10 am

Re: nagios 3.3.1 Core + nagmap

Post by richardsith »

Hi mguthrie,

they're just missing from the google map, I don't know if the configuration on r1.cfg (line notes lating: 42.60220,14.07215) is correct. I think the rest of the configuration for nagmap is correct. Nagios monitors those routers well (ping, snmtp.....) just not view them on google map.

thanks
richardsith
Posts: 6
Joined: Sun Nov 20, 2011 10:10 am

Re: nagios 3.3.1 Core + nagmap

Post by richardsith »

any idea to resolve that???
ElmoN
Posts: 3
Joined: Fri Jan 20, 2012 1:08 pm

Re: nagios 3.3.1 Core + nagmap

Post by ElmoN »

Hello colleague.

I recommend creating a new one. Cfg for display on nagmap. (Create it in objeticts / test.cfg).

In marker.cfg on line 6. add the new route test.cfg, this is my configuration: example:

<? php

if (file_exists ("/ usr / local / nagios / etc / objects / moire.cfg")) {
$ hosts_file = "/ usr / local / nagios / etc / objects / moire.cfg";
Else {}
$ hosts_file = "/ srv / nagios / etc / objects / test.cfg";
# $ Hosts_file = "/ tmp / hosts.cfg";

Test.cfg example, some basics:

define host {
host_name ServidorArmas
alias Windows Server
address 192.168.0.100
check_command check-host-alive
use SERVER
latlng notes notes: -33.41927463824264, -70.56363254785538
register 1
}

in host_name must be the same name to use nagios.


Make basic changes you comment, displayed in nagmap and you let us know.

Greetings.

Hola colega.

Te recomiendo crear un nuevo .cfg para la visualizacion en nagmap.( crearlo en objeticts/test.cfg).

En marker.cfg en la 6 linea. agregar la nueva ruta de test.cfg, este es mi configuracion: ejemplo:

<?php

if (file_exists("/usr/local/nagios/etc/objects/moire.cfg")) {
$hosts_file = "/usr/local/nagios/etc/objects/moire.cfg";
} else {
$hosts_file = "/srv/nagios/etc/objects/test.cfg";
# $hosts_file = "/tmp/hosts.cfg";

Ejemplo de test.cfg, algo basico:

define host {
host_name ServidorArmas
alias Servidor Windows
address 192.168.0.100
check_command check-host-alive
use SERVIDOR
notes notes latlng: -33.41927463824264,-70.56363254785538
register 1
}

en host_name, debe ser el mismo nombre que utilizar nagios.


Realiza las modificaciones basicas que te comente, visualiza en nagmap y nos avisas.

Saludos.
Locked