Thold to monitor Average CPU?
Moderators: Developers, Moderators
Thold to monitor Average CPU?
Hello,
Has anyone been able to monitor the average CPU in Thold?
I have a server with 8 cores and have used an excellent graph template to monitor CPU0-7. It works as expected. Part of the graph shows a CDEF function to average the 8 cores and displays it as the mean CPU usage.
What i'm trying to figure out is how I can use Thold to trigger an alert if the mean CPU utilization is above a certain limit. Right now, by default, the threshold is created using CPU0 as the data source and I can't figure out how to make it use the CDEF function instead.
Any suggestions?
Thanks for your time,
Mike
Has anyone been able to monitor the average CPU in Thold?
I have a server with 8 cores and have used an excellent graph template to monitor CPU0-7. It works as expected. Part of the graph shows a CDEF function to average the 8 cores and displays it as the mean CPU usage.
What i'm trying to figure out is how I can use Thold to trigger an alert if the mean CPU utilization is above a certain limit. Right now, by default, the threshold is created using CPU0 as the data source and I can't figure out how to make it use the CDEF function instead.
Any suggestions?
Thanks for your time,
Mike
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Thold to monitor Average CPU?
Use RPN Expression Data Manipulation.
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?
Re: Thold to monitor Average CPU?
because i am newer for "thold" and used cacti to monitor network traffics for a long time and work fine, I had enable the plugin "thold" with cacti 0.8.7h, Where can I find a manual for thold settings like CDEF/RPN etc, thanks inadvance.TheWitness wrote:Use RPN Expression Data Manipulation.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Thold to monitor Average CPU?
When you create the Thold look for the words "Data Manipulation"....
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?
Re: Thold to monitor Average CPU?
Thanks for the reply.
When I create the threshold for the 8CPU graph I selected the data type as CDEF. Then below there is an option for a dropdown which has these entries:
Make Stack Negative
Make Per 5 Minutes
Turn Bytes into Bits
Multiply by 1024
Turn Bytes into Bits Negative
CPU Seconds as Percentage
Turn kilobytes into bits
Because THOLD is selecting CPU0 as the main datasource as default, I'd like to use the average CPU of all 8. When I look at the graph template I actually see a CDEF function called "Average All data sources - 8 sources".
How can I define this 8 source average as a CDEF for THOLD?
Thanks again for your time.
Mike
When I create the threshold for the 8CPU graph I selected the data type as CDEF. Then below there is an option for a dropdown which has these entries:
Make Stack Negative
Make Per 5 Minutes
Turn Bytes into Bits
Multiply by 1024
Turn Bytes into Bits Negative
CPU Seconds as Percentage
Turn kilobytes into bits
Because THOLD is selecting CPU0 as the main datasource as default, I'd like to use the average CPU of all 8. When I look at the graph template I actually see a CDEF function called "Average All data sources - 8 sources".
How can I define this 8 source average as a CDEF for THOLD?
Thanks again for your time.
Mike
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Thold to monitor Average CPU?
I would rather you do RPN Expression:
TheWitness
Code: Select all
|ds:cpu0|,|ds:cpu1|,|ds:cpu2|,|ds:cpu3|,|ds:cpu4|,|ds:cpu5|,|ds:cpu6|,|ds:cpu7|,+,+,+,+,+,+,+,8,/
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?
Re: Thold to monitor Average CPU?
Thanks for the reply regarding the RPN expression.
Could you give me a hand regarding its implementation? I'm not sure how to create the threshold CDEF with this value:
|ds:cpu0|,|ds:cpu1|,|ds:cpu2|,|ds:cpu3|,|ds:cpu4|,|ds:cpu5|,|ds:cpu6|,|ds:cpu7|,+,+,+,+,+,+,+,8,/
Thanks for your help.
Mike
Could you give me a hand regarding its implementation? I'm not sure how to create the threshold CDEF with this value:
|ds:cpu0|,|ds:cpu1|,|ds:cpu2|,|ds:cpu3|,|ds:cpu4|,|ds:cpu5|,|ds:cpu6|,|ds:cpu7|,+,+,+,+,+,+,+,8,/
Thanks for your help.
Mike
Re: Thold to monitor Average CPU?
Hi Witness,
Would you be able to give me a hand configuring the the string below?
|ds:cpu0|,|ds:cpu1|,|ds:cpu2|,|ds:cpu3|,|ds:cpu4|,|ds:cpu5|,|ds:cpu6|,|ds:cpu7|,+,+,+,+,+,+,+,8,/
I haven't been able to figure it out in Thold. I see the mean average in the graph, but I cannot chose it successfully in thold.
Thanks again for your help.
Mike
Would you be able to give me a hand configuring the the string below?
|ds:cpu0|,|ds:cpu1|,|ds:cpu2|,|ds:cpu3|,|ds:cpu4|,|ds:cpu5|,|ds:cpu6|,|ds:cpu7|,+,+,+,+,+,+,+,8,/
I haven't been able to figure it out in Thold. I see the mean average in the graph, but I cannot chose it successfully in thold.
Thanks again for your help.
Mike
Who is online
Users browsing this forum: No registered users and 6 guests