Thold on interface still multiply by 8 (#361)
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 51
- Joined: Mon Nov 18, 2013 2:40 am
Thold on interface still multiply by 8 (#361)
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
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 (708.25 KiB) Viewed 7917 times
Re: Thold on interface still multiply by 8 (#361)
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Cacti User
- Posts: 51
- Joined: Mon Nov 18, 2013 2:40 am
Re: Thold on interface still multiply by 8 (#361)
Yes, but on github is masked as RESOLVED and it is not so
Re: Thold on interface still multiply by 8 (#361)
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Cacti User
- Posts: 51
- Joined: Mon Nov 18, 2013 2:40 am
Re: Thold on interface still multiply by 8 (#361)
Already done but was no considered
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Thold on interface still multiply by 8 (#361)
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?
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?
-
- Posts: 9
- Joined: Wed Apr 15, 2020 6:58 am
Re: Thold on interface still multiply by 8 (#361)
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!
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!
-
- Posts: 9
- Joined: Wed Apr 15, 2020 6:58 am
Re: Thold on interface still multiply by 8 (#361)
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:
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).
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;
-
- Posts: 9
- Joined: Wed Apr 15, 2020 6:58 am
Re: Thold on interface still multiply by 8 (#361)
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.
I reopened issue #416 on git, where at least I described a workaround that seems to be working for me at the moment.
Re: Thold on interface still multiply by 8 (#361)
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
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
Who is online
Users browsing this forum: No registered users and 0 guests