cacti monitoring pve virtual machine graphs is NaN

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

Moderators: Developers, Moderators

Post Reply
div8cn
Posts: 4
Joined: Fri Jun 06, 2014 10:28 am

cacti monitoring pve virtual machine graphs is NaN

Post by div8cn »

cacti version: 1.2.2
pve version: 7.2
template: In/Out Bits (64-bit Counters) with Total Bandwidth


I opened and configured snmp on the pve host
cacti uses snmp to monitor the operation of the virtual machine on the pve host (mainly the vtep device)

When the tap (virtual machine network card) traffic is relatively small, such as 10Mbsp 100Mbsp, data collection, storage, and display are all normal;

When the tap traffic is large, >800Mbps, the image will always display Nan.

I analyzed the cacti.log and the rra file corresponding to the graph
It is found that spine has collected data from the pve host, and has not updated the data to the rrd file;

Does anyone know what is causing this problem?


cacti.log:

Code: Select all

2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] DS[118] SNMP: v2: 10.18.20.180, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.120, value: 58551524617647
2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] DS[118] SNMP: v2: 10.18.20.180, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.120, value: 57839135320121
2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] DS[119] SNMP: v2: 10.18.20.180, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.121, value: 25816681680702
2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] DS[119] SNMP: v2: 10.18.20.180, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.121, value: 25856686215572
2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] DS[161] SNMP: v2: 10.18.20.180, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.8, value: 25114196005386
2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] DS[161] SNMP: v2: 10.18.20.180, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.8, value: 10814457329566
2023/03/01 01:00:09 - SPINE: Poller[1] DEVDBG: SQL:INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (118,'traffic_in','2023-03-01 01:00:09','58551524617647'),(118,'traffic_out','2023-03-01 01:00:09','57839135320121'),(119,'traffic_in','2023-03-01 01:00:09','25816681680702'),(119,'traffic_out','2023-03-01 01:00:09','25856686215572'),(161,'traffic_in','2023-03-01 01:00:09','25114196005386'),(161,'traffic_out','2023-03-01 01:00:09','10814457329566') ON DUPLICATE KEY UPDATE output=VALUES(output)
2023/03/01 01:00:09 - SPINE: Poller[1] DEVDBG: SQL:UPDATE poller_item SET rrd_next_step=IF((rrd_next_step-300)>=0, (rrd_next_step-300), (rrd_step-300)) WHERE host_id=11 AND poller_id=1
2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] Total Time:  0.11 Seconds
2023/03/01 01:00:09 - SPINE: Poller[1] DEVDBG: SQL:UPDATE host SET polling_time=1677603609.256 - 1677603609.085 WHERE id=11
2023/03/01 01:00:09 - SPINE: Poller[1] Device[11] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
2023/03/01 01:00:09 - SPINE: Poller[1] DEBUG: The Value of Active Threads is 0 for Device ID 11
2023/03/01 01:00:09 - SPINE: Poller[1] POLLER: Active Threads is 0, Pending is 0
2023/03/01 01:00:09 - SPINE: Poller[1] DEBUG: Valid Thread to be Created
2023/03/01 01:00:09 - SPINE: Poller[1] DEBUG: In Poller, About to Start Polling of Device for Device ID 1
2023/03/01 01:00:09 - SPINE: Poller[1] SPINE: Active Threads is 1, Pending is 1
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti monitoring pve virtual machine graphs is NaN

Post by macan »

Management-> Data sources -> choose any problematic -> What is Maxiumu value? Try increase or insert "U" if there is value smaller than 800Mbps
Let the Cacti grow!
div8cn
Posts: 4
Joined: Fri Jun 06, 2014 10:28 am

Re: cacti monitoring pve virtual machine graphs is NaN

Post by div8cn »

macan wrote: Wed Mar 01, 2023 1:16 am Management-> Data sources -> choose any problematic -> What is Maxiumu value? Try increase or insert "U" if there is value smaller than 800Mbps
Yes, the data source shows that it is 10000000. It should be caused by this problem;

I check data source's data source template="Interface - Traffic";


In the Interface - Traffic template, Maximum Value = 100000000000.
Enabled allow the user to override the value on the right during Data Source creation.


I use this data template to create a switch port flow diagram, the Maximum Value shown in the data source=10000000000;


I use this data template to create the virtual interface traffic map of the PVE host, and the Maximum Value shown in the data source=10000000;

Excuse me, where is my incorrect setting causing such a large gap in Maximun?

The template "Interface - Traffic", is the default setting when installing cacti, I didn't change it.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti monitoring pve virtual machine graphs is NaN

Post by macan »

you should update to 1.2.24
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests