Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.
Moderators: Developers , Moderators
annapatil
Posts: 35 Joined: Wed Oct 13, 2010 3:22 am
Post
by annapatil » Tue Dec 12, 2023 11:47 am
Hi All,
My graphs are not looking smooth, its Couter64 graphs, i have used CDEF function. here is my xml file
Code: Select all
<interface>
<name>OLT Interface Traffic</name>
<oid_index>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.3</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,5}\.[0-9]{1}\.[0-9]{1}\.[0-9]{1,3})</oid_index_parse>
<!--<oid_index_parse>OID/REGEXP:.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.1001\.([0-9]{1,5}\.[0-9]{1}\.[0-9]{1}\.[0-9]{1,3})</oid_index_parse> -->
<!--<oid_num_indexes>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.3</oid_num_indexes>-->
<index_order>ifIndex:ifOperStatus:ifType:objectName</index_order>
<index_order_type>numeric</index_order_type>
<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.9</oid>
</ifIndex>
<ifOperStatus>
<name>ifOperStatus</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.3</oid>
</ifOperStatus>
<ifType>
<name>ifType</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.4</oid>
</ifType>
<objectName>
<name>objectName</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.1001</oid>
</objectName>
<tejasStoctetsRx>
<name>tejasStoctetsRx</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.480</oid>
</tejasStoctetsRx>
<tejasStoctetsTx>
<name>tejasStoctetsTx</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482</oid>
</tejasStoctetsTx>
</fields>
</interface>
here is CDEF function as polling per 5min
cdef=CURRENT_DATA_SOURCE,8,*,300,/
attaching graph template
Graph Template graph_template.PNG (49.41 KiB) Viewed 2418 times
here is graph, looking like bar graph
Graph graph.PNG (114.53 KiB) Viewed 2418 times
Osiris
Cacti Guru User
Posts: 1424 Joined: Mon Jan 05, 2015 10:10 am
Post
by Osiris » Tue Dec 12, 2023 7:30 pm
What is the poller interval? What is cron interval? What is the data source profiles heartbeat? Turn on detailed logging for the device, or put it into debug mode and look for errors or unknown data.
Before history, there was a paradise, now dust.
Osiris
Cacti Guru User
Posts: 1424 Joined: Mon Jan 05, 2015 10:10 am
Post
by Osiris » Tue Dec 12, 2023 7:31 pm
This can sometimes be a timeout issue. On some devices, internally they don't update their counters fast enough and as a result graphs can appear choppy.
Before history, there was a paradise, now dust.
Osiris
Cacti Guru User
Posts: 1424 Joined: Mon Jan 05, 2015 10:10 am
Post
by Osiris » Tue Dec 12, 2023 7:32 pm
To determine if it's the device, you can put the snmpget in a watch and watch the values and how often they increase...
Before history, there was a paradise, now dust.
annapatil
Posts: 35 Joined: Wed Oct 13, 2010 3:22 am
Post
by annapatil » Tue Dec 12, 2023 10:20 pm
cron and poller interval is 5min,
Here is snmpget
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 56485503
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 57316342
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 58109980
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 58910205
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 59500660
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 63739979
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 66769351
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 69818638
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 72990156
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 74320406
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 81583291
/var/www/html/cacti# snmpget -v2c -c private X.X.X.X .1.3.6.1.4.1.8255.1.2.1.2.37.1.1.482.10000.1.1.2
SNMPv2-SMI::enterprises.8255.1.2.1.2.37.1.1.482.10000.1.1.2 = Counter64: 82984020
Osiris
Cacti Guru User
Posts: 1424 Joined: Mon Jan 05, 2015 10:10 am
Post
by Osiris » Wed Dec 13, 2023 4:53 pm
Put the device in debug and check the data coming back. Also think about answering the other questions too. This not a bug, but a tuning exercise more than likely.
Before history, there was a paradise, now dust.
Users browsing this forum: No registered users and 1 guest