This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Oct 10, 2017 8:51 am
You may need to restart the nagios service
Has this ever worked since you offloaded the database?
sangmin
Posts: 15 Joined: Tue Jul 19, 2016 9:52 pm
Post
by sangmin » Tue Oct 10, 2017 10:51 pm
nagios is restarted when the repair_databases script finishes running.
The problem is the same even if you restart nagios.
I did not do anything to DB.
There is still only one host, and host information is marked as changing from time to time.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Oct 11, 2017 9:34 am
if you look at the CCM do you see all your hosts?
If so can you run Apply Configuration?
If not, my guess is that somehow the nagiosql database didn't get moved when you offloaded the DB and you would want to check all the steps in this doc
https://assets.nagios.com/downloads/nag ... Server.pdf
sangmin
Posts: 15 Joined: Tue Jul 19, 2016 9:52 pm
Post
by sangmin » Wed Oct 11, 2017 8:24 pm
ccm shows all hosts.
I restart Nagios, restart the Nagios server and restart the DB, but the result is the same.
Also, I have not changed my settings for a year after setting offloading_MySQL.
And we use memcached.
(
https://assets.nagios.com/downloads/nag ... ios_XI.pdf )
I did not let you use memcached, but the result was the same.
kyang
Post
by kyang » Thu Oct 12, 2017 10:35 am
can you run Apply Configuration?
Did you try this? Does it apply successfully? Or what errors?
sangmin
Posts: 15 Joined: Tue Jul 19, 2016 9:52 pm
Post
by sangmin » Thu Oct 12, 2017 9:05 pm
Apply Configuration succeeded.
I have tried many things but still have problems.
Only one host is normal and all other hosts are pending.
And the hosts that come out normally change.
Service Status.png
You do not have the required permissions to view the files attached to this post.
dwasswa
Post
by dwasswa » Fri Oct 13, 2017 12:40 pm
Hi
@sangmin ,
Lets begin by trying to check you nagios configuration.
Please post the output pf this command:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
sangmin
Posts: 15 Joined: Tue Jul 19, 2016 9:52 pm
Post
by sangmin » Fri Oct 13, 2017 7:49 pm
There is no problem with nagios conifg
1.PNG
You do not have the required permissions to view the files attached to this post.
dwasswa
Post
by dwasswa » Mon Oct 16, 2017 11:16 am
Hi [user]@sangmin[/user],
There might be a problem with your time.
Please run the following commands to check those settings
Code: Select all
date
hwclock
grep date.timezone /etc/php.ini
mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
service ntpd status
Also, can you send a screenshot of
http://YOURSERVER/nagiosxi/admin/globalconfig.php
sangmin
Posts: 15 Joined: Tue Jul 19, 2016 9:52 pm
Post
by sangmin » Mon Oct 16, 2017 11:38 pm
Hi,
Time seems to be no problem.
thanks
Tue Oct 17 13:32:26 KST 2017
Tue 17 Oct 2017 01:32:27 PM KST -0.828315 seconds
;
http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Seoul
NOW()
2017-10-17 13:32:27
ntpd (pid 3735) is running...
config.png
You do not have the required permissions to view the files attached to this post.