Data for reports indicating zero value

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Data for reports indicating zero value

Post by sarfarosh »

Hello Team ,

We are facing an issue for The Network Devices .We are able to generate the graphs but the data coming in tabular forms for reports indicates zero value . For your reference please find the sample attachment for affected hosts .

Their are many other hosts also . Even the npcd service is in healthy state .

We also checked the error logs for httpd . Please find error logs --

Please do the needful .

[root@Synoptics ~]# tailf /var/log/httpd/error_log

Code: Select all

[Wed May 16 15:34:30 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
206, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:30 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
208, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:41 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
158, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:41 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
160, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:41 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
206, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:41 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
208, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:52 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
158, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:52 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
160, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:52 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
206, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:34:52 2018] [error] [client 116.73.14.224] PHP Warning:
Division by zero in
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line
208, referer:
http://103.230.84.24/nagiosxi/includes/components/opscreen/opscreen.php
[Wed May 16 15:58:21 2018] [error] [client 182.59.130.81] PHP Notice:
Undefined variable: url_target in
/usr/local/nagiosxi/html/includes/utilsl.inc.php on line 0, referer:
http://103.230.84.24/nagiosxi/includes/components/xicore/status.php?show=hosts&sortby=last_state_change&sortorder=desc&host=&hostgroup=GIC_HF&servicegroup=&search=GIC_GHAZIABAD&searchButton=
You do not have the required permissions to view the files attached to this post.
Last edited by tgriep on Thu May 17, 2018 2:22 pm, edited 1 time in total.
Reason: Added Code Wraps around large output.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Data for reports indicating zero value

Post by tgriep »

What version of Nagios XI are you running?
Can you login to the XI GUI, go to the Admin > Manage Components, Click the Check for Updates button and update the Bandwidth Usage Report to the latest version.
If you did update it, run the report again and see if the tabular data is displaying data.

Also, go to the Admin > System Settings menu and verify that the External URL files has a valid URL and update if necessary and run the report again.

Most of the PHP warnings you did post are coming from the Operations Screen in XI and not the when the report was ran.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Data for reports indicating zero value

Post by sarfarosh »

Hello Team ,

The Nagios XI is already updated to 5.4.13 version . We also checked the Bandwidth package and it is up to date . Related to system settings ,we also checked the external URL and it is same . And then ran the report .But the issue is still persisting .

Please do the needful .
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Data for reports indicating zero value

Post by scottwilkerson »

Did by chance you change the plugin or check command that the switches for these services use?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Data for reports indicating zero value

Post by sarfarosh »

Hello Team ,
Yeah We have checked the commands and it seems fine . For your reference I am enclosing attachment for this .

Please do the needful .
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Data for reports indicating zero value

Post by tgriep »

Is there a chance you could post or PM me your System Profile?
To get your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to the ticket by clicking the "choose item" link at the bottom of the menu.

Also, can you post the .rrd and .xml file for one of the services that are not generating the report correctly?
They will be in the following folder. Replace <hostname> with the actual name of the host.

Code: Select all

/usr/local/nagios/share/perfdata/<hostname>/
Be sure to check out our Knowledgebase for helpful articles and solutions!
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Data for reports indicating zero value

Post by sarfarosh »

Hello tgriep/Team ,

Please find the details asked by you in the attachments .

Thanking You !
You do not have the required permissions to view the files attached to this post.
Last edited by tgriep on Wed May 23, 2018 2:03 pm, edited 1 time in total.
Reason: Profile removed and shared with the other Techs
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Data for reports indicating zero value

Post by tgriep »

Can you run the following commands as root and post the the /tmp/mrtg.txt file to the ticket?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg &>> /tmp/mrtg.txt
ls -l /var/lib/mrtg >> /tmp/mrtg.txt
Also, post this file as well.

Code: Select all

/var/lib/mrtg/117.218.32.150_4.rrd
The bandwidth report is generated by the files in the /var/lib/mrtg folder and if they were deleted or that the MRTG process that gathers the data stopped collecting the data, then the tables will show zeros.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Data for reports indicating zero value

Post by sarfarosh »

Hello Team ,

Please find the attached details as asked by you .
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Data for reports indicating zero value

Post by tgriep »

Thanks for the rrd files. I took a look at the data inside it and there are unknown entries in it which are called NaN's.
NaN's are just unknown data that was returned when the device was polled. It could be a timeout issue or that the device could not be connected to, etc.

When the graph is created and it encounters a NaN in the data, it will plot it as a zero but the table at the bottom doesn't like the NaN's and causes all of the data to be displayed as a zero.

I put in a Bug report and the Task ID is 13294
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked