Thold on interface still multiply by 8 (#361)

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
nicolapiazzi
Cacti User
Posts: 51
Joined: Mon Nov 18, 2013 2:40 am

Thold on interface still multiply by 8 (#361)

Post by nicolapiazzi »

Hi
I am experiencing error 361 that is not solved for me
I installed this morning latest cacti 1.2.9 and latest develop thold from github into a centos8 fresh installation with latest stable php and mysql
values defined into thold are multiplied by 8 and if i introduce a cdef doing nothing thold value is correct but it divide by 8 device value
Attachments
thold.jpg
thold.jpg (708.25 KiB) Viewed 7487 times
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Thold on interface still multiply by 8 (#361)

Post by netniV »

This is a known issue on Github.
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
nicolapiazzi
Cacti User
Posts: 51
Joined: Mon Nov 18, 2013 2:40 am

Re: Thold on interface still multiply by 8 (#361)

Post by nicolapiazzi »

Yes, but on github is masked as RESOLVED and it is not so
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Thold on interface still multiply by 8 (#361)

Post by netniV »

I would suggest posting your above findings then and asking to reopen it.
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
nicolapiazzi
Cacti User
Posts: 51
Joined: Mon Nov 18, 2013 2:40 am

Re: Thold on interface still multiply by 8 (#361)

Post by nicolapiazzi »

Already done but was no considered
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold on interface still multiply by 8 (#361)

Post by TheWitness »

This primarily impacts network interface graphs where the data stored in the RRD is in 'octets/bytes' and some people prefer representing the graphs in 'bits'.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
HorridFlyer
Posts: 9
Joined: Wed Apr 15, 2020 6:58 am

Re: Thold on interface still multiply by 8 (#361)

Post by HorridFlyer »

In my case, for bytes-based graphs, I can make thresholds work properly by setting CDEF=Exact-Value and translating Hi/Low thresholds in bytes too; this can be ok for new thresholds, despite the fact it is odd to set hi/low thresholds in bytes for graphs that are represented in bits/s.
But what about imported threshold from older cacti versions? I have hundreds that are not working because of this, and I really don't want to modify all of them one by one! I'm now trying to do that directly in the DB, hope not to mess it up!
HorridFlyer
Posts: 9
Joined: Wed Apr 15, 2020 6:58 am

Re: Thold on interface still multiply by 8 (#361)

Post by HorridFlyer »

Ok I did it directly in the db.
Of course It would have been easier if I had my thresholds generated via template, in that case I would have modified that template and then performed the "Propagate Template" action on each threshold, but this was not the case. So this is what I did:

Code: Select all

UPDATE thold_data SET thold_hi=thold_hi/8, thold_low=thold_low/8, data_type=0 where data_type=1 and cdef=2;
I set data_type=0(Exact-Value) and divided by 8 actual hi/low values for all of those thresholds with data_type=1(CDEF) and cdef=2(Turn Bytes into Bits).
HorridFlyer
Posts: 9
Joined: Wed Apr 15, 2020 6:58 am

Re: Thold on interface still multiply by 8 (#361)

Post by HorridFlyer »

Please forget about what I wrote in the previous posts, that was not a solution to the problem, I apologize.
I reopened issue #416 on git, where at least I described a workaround that seems to be working for me at the moment.
jinju
Posts: 23
Joined: Tue Jun 14, 2016 4:22 am

Re: Thold on interface still multiply by 8 (#361)

Post by jinju »

Attn: HORRIDFLYER
Sir, I have an issue in Threshold in cacti 1.2.13. Here I'm getting warning/threshold alert immediately. I have posted an issue on forum. I didn't get the answer. Can you help me.

viewtopic.php?f=17&t=61304
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest