Page 1 of 1

Data for reports indicating zero value

Posted: Thu May 17, 2018 3:02 am
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=

Re: Data for reports indicating zero value

Posted: Thu May 17, 2018 2:37 pm
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.

Re: Data for reports indicating zero value

Posted: Fri May 18, 2018 6:20 am
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 .

Re: Data for reports indicating zero value

Posted: Fri May 18, 2018 8:19 am
by scottwilkerson
Did by chance you change the plugin or check command that the switches for these services use?

Re: Data for reports indicating zero value

Posted: Tue May 22, 2018 2:54 am
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 .

Re: Data for reports indicating zero value

Posted: Tue May 22, 2018 2:52 pm
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>/

Re: Data for reports indicating zero value

Posted: Wed May 23, 2018 5:22 am
by sarfarosh
Hello tgriep/Team ,

Please find the details asked by you in the attachments .

Thanking You !

Re: Data for reports indicating zero value

Posted: Wed May 23, 2018 2:02 pm
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.

Re: Data for reports indicating zero value

Posted: Thu May 24, 2018 5:17 am
by sarfarosh
Hello Team ,

Please find the attached details as asked by you .

Re: Data for reports indicating zero value

Posted: Thu May 24, 2018 9:55 am
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