Skip to content

Updating a Data Template does not switch rrd_heartbeat properly for all sources leading to empty graphs #4991

@bmfmancini

Description

@bmfmancini

Hey Guys,

I am seeing a weird issue with the following

Cisco ASA using the ASA template
SNMP is showing up and spine collects data but nothing plots on any snmp graph
Only graphs that work as the snmp uptime, polling time and ping
I have the same device on the same cacti version but polling every minute working without issue

image

Here is the Spine Data

2022-11-07 12:09:21 - SPINE: Poller[1] PID[619685] PT[140299301230336] Device[17147] HT[1] DS[549984] TT[14.80] SNMP: v3: (device_ip), dsname: errors_in, oid: .1.3.6.1.2.1.2.2.1.14.10, value: 1792801
2022-11-07 12:09:21 - SPINE: Poller[1] PID[619685] PT[140299301230336] Device[17147] HT[1] DS[549984] TT[14.81] SNMP: v3: (device_ip), dsname: errors_out, oid: .1.3.6.1.2.1.2.2.1.20.10, value: 0
2022-11-07 12:09:21 - SPINE: Poller[1] PID[619685] PT[140299301230336] Device[17147] HT[1] DS[549984] TT[14.82] SNMP: v3: (device_ip), dsname: discards_in, oid: .1.3.6.1.2.1.2.2.1.13.10, value: 0
2022-11-07 12:09:21 - SPINE: Poller[1] PID[619685] PT[140299301230336] Device[17147] HT[1] DS[549984] TT[14.83] SNMP: v3: (device_ip), dsname: discards_out, oid: .1.3.6.1.2.1.2.2.1.19.10, value: 0

Here is the Data source debug output shows that value is NaN

image

the data template is set to 5Min polling as it should be

image

Poller cache is showing the proper OID's

ASA test - Errors - GigabitEthernet0/7	ASA test	SNMP Version: 3, User: (snmp_user), OID: .1.3.6.1.2.1.2.2.1.13.10
RRD: /var/www/html/(path)/rra/asa_test_discards_in_549984.rrd
ASA test - Errors - GigabitEthernet0/7	ASA test	SNMP Version: 3, User: (snmp_user), OID: .1.3.6.1.2.1.2.2.1.19.10
RRD: /var/www/html/(path)/rra/asa_test_discards_in_549984.rrd
ASA test - Errors - GigabitEthernet0/7	ASA test	SNMP Version: 3, User: (snmp_user), OID: .1.3.6.1.2.1.2.2.1.14.10
RRD: /var/www/html/(path)/rra/asa_test_discards_in_549984.rrd
ASA test - Errors - GigabitEthernet0/7	ASA test	SNMP Version: 3, User: (snmp_user), OID: .1.3.6.1.2.1.2.2.1.20.10
RRD: /var/www/html/(path)/rra/asa_test_discards_in_549984.rrd

PHP-snmp is not installed

image

RRD permission's are correct

-rw-r--r--  1 apache apache 388K Nov  7 11:58 asa_test_5min_cpu_549976.rrd
-rw-r--r--  1 apache apache 1.6M Nov  7 11:58 asa_test_discards_in_549984.rrd
-rw-r--r--  1 apache apache 1.6M Nov  7 11:58 asa_test_discards_in_549985.rrd
-rw-r--r--  1 apache apache 1.6M Nov  7 11:58 asa_test_discards_in_549986.rrd
-rw-r--r--  1 apache apache 1.6M Nov  7 11:58 asa_test_discards_in_549987.rrd
-rw-r--r--  1 apache apache 1.6M Nov  7 11:58 asa_test_discards_in_549988.rrd
-rw-r--r--  1 apache apache 388K Nov  7 11:58 asa_test_polling_time_549977.rrd
-rw-r--r--  1 apache apache 774K Nov  7 11:58 asa_test_traffic_in_549979.rrd
-rw-r--r--  1 apache apache 774K Nov  7 11:58 asa_test_traffic_in_549980.rrd
-rw-r--r--  1 apache apache 774K Nov  7 11:58 asa_test_traffic_in_549981.rrd
-rw-r--r--  1 apache apache 774K Nov  7 11:58 asa_test_traffic_in_549982.rrd
-rw-r--r--  1 apache apache 774K Nov  7 11:58 asa_test_traffic_in_549983.rrd
-rw-r--r--  1 apache apache 388K Nov  7 11:58 asa_test_uptime_549978.rrd

RRD's are set to the correct step

filename = "asa_test_discards_in_549984.rrd"
rrd_version = "0003"
step = 300
last_update = 1667839887
header_size = 8240

Boost has the collected results waiting to be written

image

MariaDB [cacti]> select * from poller_output_boost where local_data_id = 549984;
+---------------+--------------+---------------------+---------+
| local_data_id | rrd_name     | time                | output  |
+---------------+--------------+---------------------+---------+
|        549984 | discards_in  | 2022-11-07 11:56:26 | 0       |
|        549984 | discards_out | 2022-11-07 11:56:26 | 0       |
|        549984 | errors_in    | 2022-11-07 11:56:26 | 1792801 |
|        549984 | errors_out   | 2022-11-07 11:56:26 | 0       |
|        549984 | discards_in  | 2022-11-07 12:01:29 | 0       |
|        549984 | discards_out | 2022-11-07 12:01:29 | 0       |
|        549984 | errors_in    | 2022-11-07 12:01:29 | 1792801 |
|        549984 | errors_out   | 2022-11-07 12:01:29 | 0       |
|        549984 | discards_in  | 2022-11-07 12:06:29 | 0       |
|        549984 | discards_out | 2022-11-07 12:06:29 | 0       |
|        549984 | errors_in    | 2022-11-07 12:06:29 | 1792801 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions