no graph info after upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

no graph info after upgrade

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: no graph info after upgrade

Post 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
RyanMule
Posts: 57
Joined: Tue Dec 12, 2017 3:14 pm

Re: no graph info after upgrade

Post by RyanMule »

I am experiencing the same issue but just upgraded to 5.8.0.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: no graph info after upgrade

Post 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
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Re: no graph info after upgrade

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: no graph info after upgrade

Post 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?

Code: Select all

rpm -qa | grep php
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Re: no graph info after upgrade

Post 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"
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: no graph info after upgrade

Post 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
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Re: no graph info after upgrade

Post by supportcl »

Finally this article https://support.nagios.com/kb/article.php?id=149 helped me to fix my problem
Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: no graph info after upgrade

Post by scottwilkerson »

supportcl wrote:Finally this article https://support.nagios.com/kb/article.php?id=149 helped me to fix my problem
Thanks!
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked