Determining Status and Reachability of Network Hosts
Determining Status and Reachability of Network Hosts
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.
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
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.txtBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Determining Status and Reachability of Network Hosts
hello.. here is the output.
how about the failure on displaying the status and reachability of network hosts? the parent-child relationship?
thanks
how about the failure on displaying the status and reachability of network hosts? the parent-child relationship?
thanks
You do not have the required permissions to view the files attached to this post.
Re: Determining Status and Reachability of Network Hosts
Your config looks OK - no errors. Next, make sure your system time is up to date.
You can install ntp:
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):
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:
*Important!*
You must restart your apache in order for changes to take effect:
You can install ntp:
Code: Select all
# yum install ntp
# ntpdate pool.ntp.orgtime every day at 1:30 pm, you would do):
Code: Select all
# crontab -e
30 13 * * * /usr/sbin/ntpdate pool.ntp.orgCode: Select all
# vi /etc/php.iniCode: Select all
date.timezone =Code: Select all
date.timezone = Etc/GMT-13Code: Select all
date.timezone = America/Chicagohttp://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/localtimeYou must restart your apache in order for changes to take effect:
Code: Select all
# service httpd restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Determining Status and Reachability of Network Hosts
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!
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
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
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):
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
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->childLayershttp://www.nagvis.org/free-support
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Determining Status and Reachability of Network Hosts
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...
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...
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Determining Status and Reachability of Network Hosts
Can I have you try running through the steps on the first page here
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf