Page 1 of 1
Determining Status and Reachability of Network Hosts
Posted: Wed Dec 21, 2011 7:52 am
by riredondo
hello all, here i go again with my issues.. please bear with me.
i am configuring nagios to monitor with parent-child relationship. the objective is when the parent is down all child-hosts and the services of child-hosts should goes red too and must reflect on bpi and nagvis. my simple set-up is a dns server, mail client, and mail server. the parent of the mail server and mail client is the dns server then, the parent of the dns server is the nagios. but when i test to shutdown the dns server, only the dns hosts and its services goes red.. the rest of the child hosts are still ok.
i read this, then i looked on the host definitions.. i cat each host under /usr/local/nagios/etc/hosts and it says that it should not be hand-edited.
http://nagios.sourceforge.net/docs/3_0/ ... ility.html
also, for another information, as i add the hosts and determine the parent for each host, apply configuration is success but when i looked on core config manager hosts and services details the status is "Out of Sync"...
thanks in advance for your usual help.
Re: Determining Status and Reachability of Network Hosts
Posted: Wed Dec 21, 2011 9:45 am
by lmiltchev
Regarding the "Out of sync" issue... Did you forget to click on the "Apply Configuration" button? If you didn't, but you are still getting "out of sync", run this commands in terminal and post the "reconfig.txt":
Code: Select all
cd /usr/local/nagiosxi/scripts
# ./reconfigure_nagios.sh &> reconfig.txt
Re: Determining Status and Reachability of Network Hosts
Posted: Wed Dec 21, 2011 10:47 pm
by riredondo
hello.. here is the output.
reconfig.txt
how about the failure on displaying the status and reachability of network hosts? the parent-child relationship?
thanks
Re: Determining Status and Reachability of Network Hosts
Posted: Thu Dec 22, 2011 12:04 pm
by lmiltchev
Your config looks OK - no errors. Next, make sure your system time is up to date.
You can install ntp:
Code: Select all
# yum install ntp
# ntpdate pool.ntp.org
You can add it as a cron job (for example, if you want to update system
time every day at 1:30 pm, you would do):
Code: Select all
# crontab -e
30 13 * * * /usr/sbin/ntpdate pool.ntp.org
You may also have to edit your php.ini file.
Find the line that says:
Enter your time zone, for example:
I believe you can also use this format:
Check this out:
http://www.php.net/manual/en/timezones.america.php
Some customers reported success by copying the sample timezone to
/etc/localtime. There are some samples in /usr/share/zoneinfo/
For example:
Code: Select all
# cp /usr/share/zoneinfo/America/New_York /etc/localtime
*Important!*
You must restart your apache in order for changes to take effect:
Re: Determining Status and Reachability of Network Hosts
Posted: Thu Dec 22, 2011 10:41 pm
by riredondo
i think i found the cause.. the hosts' clock is late... thanks.
but, i still have problem on the parent/child thing... status wont reflect on nagvis or even on the service/host detail pages when we disconnect the parent host. thec objective is when the parent host is down or unreachable, child will also be unreachable. also, i noticed, on the Automap of NagVis, only the hosts with one hop from nagios is being displayed while the children of nagios' child is missing. i wonder what else i have not done? as i understand from the documents i only have to define which parent of which... do you have any idea of what else should i do or check?
thanks in advance. merry Christmas!

Re: Determining Status and Reachability of Network Hosts
Posted: Tue Jan 03, 2012 1:46 am
by riredondo
hello everyone, follow-up on this please. up until now, i still cannot workout nagvis to reflect the necessary status...
Re: Determining Status and Reachability of Network Hosts
Posted: Tue Jan 03, 2012 11:55 am
by lmiltchev
I'm glad I could help with the time issue!
In regards to NagVis... what version of NagVis are you using?
It seems like we will have to do some more testing. We found out the parent/child relationships are shown properly in the 1.5.9 version of NagVis, provided that you set your "childLayers" properly (according to your setup):
Code: Select all
Actions->Modify Automap View->childLayers
However, the same scenario didn't work on NagVis 1.6rc1. The automap would go only one layer down. It is hard to say for now if it is a bug or the NagVis has not been configured properly... We will look into it. Meanwhile you can also try posting a question on the nagvis support site:
http://www.nagvis.org/free-support
Re: Determining Status and Reachability of Network Hosts
Posted: Wed Jan 04, 2012 9:41 pm
by riredondo
hi lmiltchev,
for the nagvis version i don't exactly know where to look at to know, but the nagvis i used is the component available in nagios exchange. hope this tells you something.
as for your options under Actions it only displays 2 options, Search and Edit current map.
thanks...
Re: Determining Status and Reachability of Network Hosts
Posted: Thu Jan 05, 2012 10:38 am
by scottwilkerson
Can I have you try running through the steps on the first page here
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf