Updrading from 3.5 to 4 - Maps view (parents not working)

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
romerowv
Posts: 4
Joined: Mon Oct 07, 2013 10:34 am

Updrading from 3.5 to 4 - Maps view (parents not working)

Post by romerowv »

Hello, i just upgraded our Nagios Core 3.5 to 4 with no problems. after fixing a couple of errors parsing the config files nagios is up and running. i do see an issue with it. when i go to the map section, it doesn't display all my monitoring devices and some do not have the parent showing up. some do see it, some don't. is there anything i missed?

when i upgraded i did the following:

1) compile:

./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-commandmode

the only one i did not run was:
make install-config (since i already had the configs in place)

2) tested and error out and fixed:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.0.0
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-20-2013
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 52)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 204)
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 1767)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.


after fixing and restarting the nagios service, the maps do not display some of the devices or parents. can anyone help?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Updrading from 3.5 to 4 - Maps view (parents not working

Post by slansing »

You need to fix this configuration error before nagios can restart:

Code: Select all

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 1767)
It looks like you will need to define a host, and/or service description in the above config file. So in essence, it looks like it is missing what differentiates which says its a service or host.
romerowv
Posts: 4
Joined: Mon Oct 07, 2013 10:34 am

Re: Updrading from 3.5 to 4 - Maps view (parents not working

Post by romerowv »

Thanks, i did fix that. its running and monitoring like it should. the problem i'm looking into is that when you go to map view, before it would show me all the devices/servers. now its only showing a few of them. about 20 of them, when before it was showing me all 153 devices/servers. and those that show up in the map only show itself, no parents or child that are definately define in the definitions. unless i'm not defining the objects clearly, here is one that does not show up on the maps:

define host{
use windows-server ;Inherit default valus from template
host_name DOCX ;the name we're giving to this host
alias DOCX(Sophos VM-Server) ;a longer name associated with the host
address 192.168.1.35 ;IP address of the host
parents SARAH ;who is the parent VMWARE host
check_command check-host-alive
check_interval 5
retry_interval 1
max_check_attempts 5
check_period 24x7
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options d,u,r
icon_image sme-vmware.png
statusmap_image sme-vmware.gd2
}

i'm i missing something? thanks for your information.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Updrading from 3.5 to 4 - Maps view (parents not working

Post by tmcdonald »

For contrast, can you post the cfg file of a host that does show up? Try to pick one that is fairly similar if you can.
Former Nagios employee
romerowv
Posts: 4
Joined: Mon Oct 07, 2013 10:34 am

Re: Updrading from 3.5 to 4 - Maps view (parents not working

Post by romerowv »

here is another one that shows up:

define host{
use windows-server ;Inherit default valus from template
host_name VM-ROCKY ;the name we're giving to this host
alias VM-ROCKY (SOPHOS for Server) ;a longer name associated with the host
address 192.168.1.44 ;IP address of the host
check_command check-host-alive
check_interval 5
retry_interval 1
max_check_attempts 5
check_period 24x7
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options d,u,r
icon_image sme-vmware.png
statusmap_image sme-vmware.gd2
}

looks like if i specify a parent, it will not show up on the map view at all. if i comment/take out the parents definition, it will show up on the map.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Updrading from 3.5 to 4 - Maps view (parents not working

Post by abrist »

Others have reported similar behavior. Please file a bug at http://tracker.nagios.org
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
romerowv
Posts: 4
Joined: Mon Oct 07, 2013 10:34 am

Re: Updrading from 3.5 to 4 - Maps view (parents not working

Post by romerowv »

FYI:

upgrading to NAGIOS 4.0.2 fixed the issue.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Updrading from 3.5 to 4 - Maps view (parents not working

Post by slansing »

Ah excellent, thank you for letting us know.
Locked