missing perfdata

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
clauskc
Posts: 41
Joined: Tue Dec 22, 2015 7:46 am
Location: Copenhagen

missing perfdata

Post by clauskc »

Hi,

We have one server out of 300 plus that is not able to show performance data for 4 specific check, its a check we have on all servers.
It has worked for a couple day when we first set it up, but now I just can not get it to work.
Looked through perfdata logs, npcd logs and nothing complaints.
Tried deleting the services,host and then configure it from scratch still same issue, 45 checks works and gather perfdata four disk checks does not.
Checks run fine and store capacity data, but perfdata no go.

After I deleted services and hosts and configured them again the perfdata it did gather the first couple days are still there.
Do I need to manually delete the perfdata files maybe and try again, or how do I go about this problem?

Best Regards,
Claus
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: missing perfdata

Post by avandemore »

XI > Admin > System Profile > Download Profile

Please include the zip file in your response. You can PM myself or other support personnel if you have privacy concerns.

Also include the names of the services not graphing properly.
Previous Nagios employee
clauskc
Posts: 41
Joined: Tue Dec 22, 2015 7:46 am
Location: Copenhagen

Re: missing perfdata

Post by clauskc »

Profile uploaded.

The services with a perfdata issue is:

PFA Disk Avg. Read Queue Length
PFA Disk Avg. Write Queue Length
PFA Disk Latency
PFA Disk Reads/s
PFA Disk Usage
PFA Disk Writes/s

Can see a bucket full of error in appacheerrors, seems like the perfdata file i corrput?
Undefined offset: 2 in /usr/local/nagiosxi/html/includes/components/graphexplorer/templates/perfdata.inc.php on line 238
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: missing perfdata

Post by avandemore »

Does it work to view it when logged in as the user nagiosadmin?
Previous Nagios employee
clauskc
Posts: 41
Joined: Tue Dec 22, 2015 7:46 am
Location: Copenhagen

Re: missing perfdata

Post by clauskc »

No, same for all users.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: missing perfdata

Post by avandemore »

Can you send me the RRD files? They will be located in /usr/local/nagios/share/perfdata/<hostname>/<service>.rrd.

Can you also send a screenshot of one of the graphs with missing data?
Previous Nagios employee
clauskc
Posts: 41
Joined: Tue Dec 22, 2015 7:46 am
Location: Copenhagen

Re: missing perfdata

Post by clauskc »

screenshot and rrd file attached
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: missing perfdata

Post by avandemore »

There have been no updates to the rrd for some time, but the log files are incomplete. Can you run the following:

Code: Select all

# tar xzvf /tmp/perf.tar.gz /usr/local/nagios/var/npcd.log /usr/local/nagios/var/perfdata.log
Then send me /tmp/perf.tar.gz
Previous Nagios employee
clauskc
Posts: 41
Joined: Tue Dec 22, 2015 7:46 am
Location: Copenhagen

Re: missing perfdata

Post by clauskc »

PM npcd and perfdata logs to you.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: missing perfdata

Post by avandemore »

I received the logs. Is there some type of log rotation running or something? The perfdata.log was quite brief, but I did see some of those RRD's being updated.
Please run this command:

Code: Select all

# ls -laR /usr/local/nagios/share/perfdata/ | gzip > /tmp/perfdata-ls.gz
Then send the file /tmp/perfdata-ls.gz
Previous Nagios employee
Locked