Graph not added due to invalid data source output

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Kotze101
Posts: 5
Joined: Thu Jun 10, 2021 7:33 am

Graph not added due to invalid data source output

Post by Kotze101 »

Hi all,

I just did a clean install of Cacti 1.2.17 on a Windows 10 Pro PC. The installation completed successfully and I am able to log into the interface however for the test device that I added I am unable to view the "Unix - Ping Latency" graph because it shows as "Not Being Graphed".

cacti1.png
cacti1.png (8.51 KiB) Viewed 3095 times

I had a look at the log file and the only errors I could spot were the below ones:

cacti2.png
cacti2.png (7.54 KiB) Viewed 3095 times

Please can anyone point me in a direction of where to start looking...?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Graph not added due to invalid data source output

Post by netniV »

Check your error logs, but also there is a problem with a test_data_source function that has been fixed in the latest github sources. That will porbably be released at the end of this month.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Kotze101
Posts: 5
Joined: Thu Jun 10, 2021 7:33 am

Re: Graph not added due to invalid data source output

Post by Kotze101 »

netniV wrote: Thu Jun 10, 2021 9:25 pm Check your error logs, but also there is a problem with a test_data_source function that has been fixed in the latest github sources. That will porbably be released at the end of this month.
Thank you for the feedback - I will wait for the next release then and give it a try. I did go through the logs in the web interface and those were the only errors that I could see with regards to the graph. (unless you're referring to a different error log perhaps?)

I also want to mention that I've created a test install on an Ubuntu VM following this video (https://www.youtube.com/watch?v=u6-Y7AEI1MQ) and on that install the graph is working, however sometimes for newly created devices it will also show as "Not Being Graphed" but then if I remove the graph from the "Associated Graph Templates" section and re-add it again then it shows as "Is Being Graphed"...

Thanks again,
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Graph not added due to invalid data source output

Post by netniV »

That sounds like an issue with the SNMP server not responding in a timely fashion in all cases.

Check for firewall, network or cpu related issues.

As for the test function, there's been a further fix today relating to generic OID template.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Kotze101
Posts: 5
Joined: Thu Jun 10, 2021 7:33 am

Re: Graph not added due to invalid data source output

Post by Kotze101 »

I installed the thold plugin last night and after adding a threshold for my test device I noticed that the ping latency was now showing as being graphed, however the graph itself is remaining blank.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Graph not added due to invalid data source output

Post by netniV »

Use the Troubleshooter to see if there are any issues between your graph and data source.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Kotze101
Posts: 5
Joined: Thu Jun 10, 2021 7:33 am

Re: Graph not added due to invalid data source output

Post by Kotze101 »

It comes back with an "Data Source returned Bad Results for ping" error.
cacti3.png
cacti3.png (26.04 KiB) Viewed 3030 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Graph not added due to invalid data source output

Post by netniV »

When you edit the device, what does it show at the top of that screen?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Kotze101
Posts: 5
Joined: Thu Jun 10, 2021 7:33 am

Re: Graph not added due to invalid data source output

Post by Kotze101 »

Only the results of the latest ping.

cacti4.png
cacti4.png (7.04 KiB) Viewed 3007 times
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not added due to invalid data source output

Post by Rno »

That is the same situation I have on this post:
viewtopic.php?f=21&t=61694


Only explain differently
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not added due to invalid data source output

Post by Rno »

My troublehoot is not ending!!
Attachments
cacti ping.PNG
cacti ping.PNG (25.08 KiB) Viewed 3002 times
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Graph not added due to invalid data source output

Post by netniV »

So that sounds like it's not even running a poll against that host at all. Check your error logs and cacti log to make sure that there are no errors being generated. Also, what are your polling stats?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not added due to invalid data source output

Post by Rno »

No error on any cacti log, no error on http error_log, no error on php-error

and here are the stat:
15/06/2021 15:49:06 - SYSTEM THOLD STATS: Time:0.0865 Tholds:145 TotalDevices:22 DownDevices:2 NewDownDevices:0
15/06/2021 15:49:06 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
15/06/2021 15:49:06 - SYSTEM STATS: Time:4.2584 Method:spine Processes:3 Threads:12 Hosts:22 HostsPerProcess:8 DataSources:566 RRDsProcessed:360
15/06/2021 15:48:05 - SYSTEM SYSLOG STATS: Time:0.01 Deletes:0 Incoming:0 Removes:0 XFers:0 Alerts:0 Alarms:0 Reports:0


And the stat of the debug:
15/06/2021 15:38:05 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:3, Time:0.0124
15/06/2021 15:37:06 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:0, Time:0.0112
15/06/2021 15:36:05 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:0, Time:0.0126
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Graph not added due to invalid data source output

Post by netniV »

You make me want to play on your system :)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not added due to invalid data source output

Post by Rno »

sorry Can't give you access to my test bench!

But production has the same issue, and :
17/06/2021 14:21:15 - SYSTEM MONITOR STATS: Time:0.15 Reboots:0 DownDevices:0 Notifications:0 Purges:0
17/06/2021 14:21:15 - SYSTEM SYSLOG STATS: Time:0.01 Deletes:0 Incoming:0 Removes:0 XFers:0 Alerts:0 Alarms:0 Reports:0
17/06/2021 14:21:15 - SYSTEM THOLD STATS: Time:1.0342 Tholds:2762 TotalDevices:2281 DownDevices:8 NewDownDevices:0
17/06/2021 14:21:14 - SYSTEM STATS: Time:12.5169 Method:spine Processes:5 Threads:12 Hosts:2281 HostsPerProcess:457 DataSources:15292 RRDsProcessed:0
7/06/2021 15:54:14 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:4, Time:0.0145
17/06/2021 15:53:14 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:0, Time:0.0157


By the way, the case is worsth than what I think!
I try to delete the device (host name cisco with just the IP of cisco web site to see how the external access is ok), but now the RRD is not created at all.
And still no error in any log
Attachments
cisco ping.png
cisco ping.png (13.13 KiB) Viewed 2924 times
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests