Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Feb 23, 2019 12:19 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Suggested Value rrd_maximum not applied
PostPosted: Tue Jan 29, 2019 7:00 pm 
Offline

Joined: Tue Mar 20, 2012 9:49 am
Posts: 4
Hello,

in my Data Queries "SNMP - Interface Statistics" is configured if i use Associated Graph Templates "In/Out Bits (64-bit Counters)", that the Suggested Values - Data Sources "rrd_maximum" should set with Equation |query_ifHighSpeed|. But it looks like that's not applied.

If i create graphs, with this Graph Templates, the rrd_maximum is set to "U". Now i'm searching for debug method to find the issue, why this query isn't replaced but nothing found so far

Cacti Version: 1.2.1

ifHighSpeed is available:
Code:
Found item [ifHighSpeed='10'] index: 1 [from value]
Found item [ifHighSpeed='1000'] index: 2 [from value]


rrdtool will create rrd with "U":
Code:
/bin/rrdtool create \
/home/cacti/cacti-1.2.1/rra/1/83122.rrd \
--start -900 --step 300  \
DS:traffic_in:COUNTER:600:0:U \
DS:traffic_out:COUNTER:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \


Does anyone have a hint to point me right way?

regards


Top
 Profile  
 
 Post subject: Re: Suggested Value rrd_maximum not applied
PostPosted: Wed Jan 30, 2019 2:35 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2083
This is correct as far as I can see. The maximum is not defined (U) so no matter what value is received it will be accepted. If a value was above a maximum, it would be treated as a rogue value and ignored.
Quote:
ifHighSpeed - 1.3.6.1.2.1.31.1.1.1.15
An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to `n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero.

So, for your two interfaces, you have a 10mbps and a 1gbps interface.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Suggested Value rrd_maximum not applied
PostPosted: Wed Jan 30, 2019 3:25 pm 
Offline

Joined: Tue Mar 20, 2012 9:49 am
Posts: 4
netniV wrote:
This is correct as far as I can see. The maximum is not defined (U) so no matter what value is received it will be accepted. [..]
So, for your two interfaces, you have a 10mbps and a 1gbps interface.


But the maximum is defined, i think.
Attachment:
rrd_max.PNG
rrd_max.PNG [ 2.17 KiB | Viewed 42 times ]


And i need a maximum, based on ifHighSpeed for couple of interfaces with different speeds (1GE,10GE,n*10GE,100G) to prevent spikes in graphs on interface reset i.e. so i will "it would be treated as a rogue value and ignored" :)


Top
 Profile  
 
 Post subject: Re: Suggested Value rrd_maximum not applied
PostPosted: Thu Jan 31, 2019 5:33 am 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
Can you pleas open an issue on GitHub? Your assumptions are correct. Also need to know if this has affected more than this interface graph.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: Suggested Value rrd_maximum not applied
PostPosted: Thu Jan 31, 2019 5:49 am 
Offline

Joined: Tue Mar 20, 2012 9:49 am
Posts: 4
It's done https://github.com/Cacti/cacti/issues/2362, topic can be closed


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group