Page 1 of 1
NagiosXI is not graphing
Posted: Thu Feb 13, 2020 8:41 am
by fraguillen
Good morning dear
We were presented with an event this morning where an Oracle VM was turned off and therefore turned off the virtual ones that will run on it, including our NagiosXI production server.
When really the server, we notice that it is not graphing.
What should we check to fix this problem?
Best regards...
Re: NagiosXI is not graphing
Posted: Thu Feb 13, 2020 12:54 pm
by cdienger
You may have some files that need to be cleaned up since the shutdown likely wasn't neat. First I would run a database repair:
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
And then assuming you're using CentOS/RHEL 7 with modgearman, run this:
Code: Select all
systemctl stop httpd
systemctl stop crond
systemctl stop npcd
systemctl stop nagios
systemctl stop ndo2db
systemctl stop mod-gearman-worker
systemctl stop gearmand
pkill -9 -u nagios
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl stop mysqld
systemctl start mysqld
systemctl start gearmand
systemctl start mod-gearman-worker
systemctl start ndo2db
systemctl start nagios
systemctl start npcd
systemctl start crond
systemctl start httpd
If you're using a version 6 Cent or Redhat, you'd want to use start and stop commands like "service mysqld stop" and "service mysqld start". If you're not using gearman then you can skip those commands or just ignore the messages you get when you run them.
Re: NagiosXI is not graphing
Posted: Thu Feb 13, 2020 12:57 pm
by lmiltchev
In addition to this, use the KB article below in order to troubleshoot the issue with graphs:
https://support.nagios.com/kb/article/n ... ems-9.html
Re: NagiosXI is not graphing
Posted: Thu Feb 13, 2020 2:39 pm
by scottwilkerson
Saw open ticket as well, locking thread