Page 1 of 1
no graph info after upgrade
Posted: Mon Feb 08, 2021 12:28 pm
by supportcl
Since we migrated nagios to a new server and also updated to the latest version 5.8.1 some graphics stopped being made. What can I check?
Re: no graph info after upgrade
Posted: Mon Feb 08, 2021 6:34 pm
by ssax
Please attach the RRD and XML file from one of the non-working ones from here:
Code: Select all
/usr/local/nagios/share/perfdata/THEHOSTNAME
Please PM me a copy of your profile.zip from the new server, you can download it from Admin > System Profile by clicking the Download Profile button.
EDIT: See here as well for troubleshooting:
https://support.nagios.com/kb/article/n ... ems-9.html
Re: no graph info after upgrade
Posted: Tue Feb 09, 2021 9:20 am
by RyanMule
I am experiencing the same issue but just upgraded to 5.8.0.
Re: no graph info after upgrade
Posted: Tue Feb 09, 2021 7:42 pm
by ssax
@RyanMule, please create a separate topic for yours and do this:
Please attach the RRD and XML file from one a non-working one from here:
Code: Select all
/usr/local/nagios/share/perfdata/THEHOSTNAME
Please PM me a copy of your profile.zip, you can download it from Admin > System Profile by clicking the Download Profile button.
Follow this to troubleshoot:
https://support.nagios.com/kb/article/n ... ems-9.html
Re: no graph info after upgrade
Posted: Thu Mar 04, 2021 1:13 pm
by supportcl
Hello, I have updated to the latest version of nagios, and I continue with problems, some services do not generate graphics, something curious is that the same nagios server does not generate graphics. What can I check? I have already sent a private message as requested but I have no response
Re: no graph info after upgrade
Posted: Fri Mar 05, 2021 4:49 pm
by ssax
For that Memory Usage XML file you sent:
Code: Select all
<RRD>
<RC>1</RC>
<TXT>/usr/local/nagios/share/perfdata/XXXXXXX/Memory_Usage.rrd: expected 6 data source readings (got 5) from 1614135163</TXT>
</RRD>
That error is saying it's trying to insert 5 metrics from the check output but when trying to insert it the RRD is expecting 6.
RRDs require the same number of metrics from initial creation, it's trying to insert more metrics than the datasource accepts so it's failing to insert. Usually this occurs when the plugin is changed or the service is changed to include more (or less) metrics.
You would need to remove a datasource from the RRD following this guide:
https://support.nagios.com/kb/article/n ... e-497.html
Or you can rename (or delete the RRD file) and it will be rebuilt on the next check with the proper number of metrics and start graphing shortly thereafter.
You can also do this if you run into any that require you add a source (this does it in bulk but won't fix the above issue):
https://support.nagios.com/kb/article/n ... g-149.html
Let me know if you have any questions.
EDIT: I'm also seeing this:
Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlsrv' (tried: /usr/lib64/php/modules/pdo_sqlsrv (/usr/lib64/php/modules/pdo_sqlsrv: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/pdo_sqlsrv.so (/usr/lib64/php/modules/pdo_sqlsrv.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Make sure you have php-pdo installed:
Code: Select all
yum install php-pdo -y
systemctl restart httpd
systemctl restart php-fpm
What is the output of this command?
Re: no graph info after upgrade
Posted: Fri Mar 19, 2021 3:45 pm
by supportcl
If I delete the rdd data file it is generated again correctly, but it is my last option.
I wanted to know if this document works for other plugins than ICMP PING
https://support.nagios.com/kb/article.php?id=149
Could this fix all the problems I have?
I have many errors like "Drive_J__Disk_Usage.rrd: additional data found in update argument: 4400082841600"
Re: no graph info after upgrade
Posted: Mon Mar 22, 2021 11:38 am
by vtrac
Hi,
I tried running the "fix_ds_quantity.sh" on my VM.
Since I do not have issue with my graph, nothing is updated.
You can go ahead and try running the script, please backup your XI as suggested before running the script.
Yes, deleting those bad rrd files is your last option. However, you will lose all your OLD histories.
Good luck!!
Regards,
Vinh
Re: no graph info after upgrade
Posted: Tue Mar 23, 2021 9:45 pm
by supportcl
Finally this article
https://support.nagios.com/kb/article.php?id=149 helped me to fix my problem
Thanks!
Re: no graph info after upgrade
Posted: Wed Mar 24, 2021 8:02 am
by scottwilkerson