Hi there
We've just completed a nagiosxi Server inplace upgrade from rhel7 to rhel8 and the operation has gone well.
We solved most of the issues. But we still have a problem with the status of the Monitoring engine / Performance grapher: still in red even though apparently everything is working fine.
Can i send you a system config profile.zip File for further analyse ?
thx, Olivier
Issue after migrating to rhel8: Monitoring engine / Performance grapher status crtitical.
-
oliviergautreau
- Posts: 11
- Joined: Tue Mar 31, 2020 9:22 am
- jmichaelson
- Posts: 375
- Joined: Wed Aug 23, 2023 1:02 pm
Re: Issue after migrating to rhel8: Monitoring engine / Performance grapher status crtitical.
Before we go down that road, what is the status of the nagios services? run systemctl | grep -i nagios at a shell prompt
Please let us know if you have any other questions or concerns.
-Jason
-Jason
-
oliviergautreau
- Posts: 11
- Joined: Tue Mar 31, 2020 9:22 am
Re: Issue after migrating to rhel8: Monitoring engine / Performance grapher status crtitical.
Hi Jason
thx for your answer.
output below
thx for your answer.
output below
Code: Select all
[root@snag001 ~]# systemctl | grep -i nagios
session-11904.scope loaded active running Session 11904 of user nagios
session-11905.scope loaded active running Session 11905 of user nagios
session-11906.scope loaded active running Session 11906 of user nagios
session-11908.scope loaded active running Session 11908 of user nagios
session-11909.scope loaded active running Session 11909 of user nagios
session-11912.scope loaded active running Session 11912 of user nagios
nagios.service loaded active running Nagios Core 4.4.13
npcd.service loaded active running LSB: Nagios NPCD Initscript
nrpe.service loaded active running Nagios Remote Plugin Executor
-
oliviergautreau
- Posts: 11
- Joined: Tue Mar 31, 2020 9:22 am
Re: Issue after migrating to rhel8: Monitoring engine / Performance grapher status crtitical.
Hi Jason
I thing we solved it.
We noticed the following errors when executing sysstat.php manualy .
Reading this article, https://support.nagios.com/kb/article/n ... n-822.html
we could identify that sql_mode was "wrong" in the mariadb.
We tried to adapt the sql_mode value as recommemded:
And get it finaly working as expected !
I thing we solved it.
We noticed the following errors when executing sysstat.php manualy .
Code: Select all
[root@snag001 my.cnf.d]# php -q /usr/local/nagiosxi/cron/sysstat.php | grep -i err
<p><pre>SQL Error [nagiosxi] : Incorrect string value: '\xE2\x94\x94\xE2\x94\x80...' for column `nagiosxi`.`xi_sysstat`.`value` at row 1</pre></p>
we could identify that sql_mode was "wrong" in the mariadb.
Code: Select all
[root@snag001 my.cnf.d]# mysql -u root -p'xxxxxxxx' -e "SELECT @@GLOBAL.sql_mode;"
+-------------------------------------------------------------------------------------------+
| @@GLOBAL.sql_mode |
+-------------------------------------------------------------------------------------------+
| STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
+-------------------------------------------------------------------------------------------+
Code: Select all
[root@snag001 my.cnf.d]# cat /etc/my.cnf | grep sql_mode
sql_mode=""
[root@snag001 my.cnf.d]# mysql -u root -p'xxxxxxxx' -e "SELECT @@GLOBAL.sql_mode;"
+-------------------+
| @@GLOBAL.sql_mode |
+-------------------+
| |
+-------------------+
You do not have the required permissions to view the files attached to this post.
Re: Issue after migrating to rhel8: Monitoring engine / Performance grapher status crtitical.
Hey @oliviergautreau,
glad you could find a fix for the issue you were having. I'm going to go ahead and lock this post since you found a solution. Thanks for taking the time to write up a concise write up of the issue and the solution.
glad you could find a fix for the issue you were having. I'm going to go ahead and lock this post since you found a solution. Thanks for taking the time to write up a concise write up of the issue and the solution.