MYSQL Stats - are there any working ones out there?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
allxrt
Posts: 10
Joined: Mon Oct 03, 2022 4:00 am
Location: UK

MYSQL Stats - are there any working ones out there?

Post by allxrt »

Hi, I've done a search and the only 3 I can find are currently broken or no longer available, does anyone have a working solution to obtain MYSQL stats from a Ubuntu server running MYSQL?

Thanks in advance
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

I've got one. Been meaning to clean it up and get it released, I never seem to find time to though.
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?
allxrt
Posts: 10
Joined: Mon Oct 03, 2022 4:00 am
Location: UK

Re: MYSQL Stats - are there any working ones out there?

Post by allxrt »

No problem, I totally understand :D I'll temporarly use a docker version of percona to monitor in the meantime.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

Hey, since this is all volunteer stuff, if I give you the package, can you do the cleanup and once done release the modified device template?
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?
allxrt
Posts: 10
Joined: Mon Oct 03, 2022 4:00 am
Location: UK

Re: MYSQL Stats - are there any working ones out there?

Post by allxrt »

I can certianly try, can you give me a hint on the type of things that are involved in a clean up?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

Basically, I merged the work of two authors. Many of the Graphs were duplicated. So, you review all the graphs, and pick the one you want to keep. Note the template id, then delete the entry in the Host Template, and then delete both the Graph Template and Data Template associated with the Graph that will not be kept.

When you get to the bottom of the pile, just Export the Device Template again an upload it.
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

With the most recent versions of MariaDB, you can not grant a read only super privilege to users on remote hosts, which is great as some of the status commands did not work if you were trying to monitor multiple MariaDB servers. The information schema is reporting much of what is needed these days too.
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?
allxrt
Posts: 10
Joined: Mon Oct 03, 2022 4:00 am
Location: UK

Re: MYSQL Stats - are there any working ones out there?

Post by allxrt »

Could you point me to the file and I will have a go, many thanks.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

Use the Package Import pick to import this one.
Attachments
MySQL_Device.xml.gz
(197.74 KiB) Downloaded 82 times
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?
gossamer
Posts: 11
Joined: Wed Mar 08, 2023 4:36 pm

Re: MYSQL Stats - are there any working ones out there?

Post by gossamer »

So there currently isn't a standard way to monitor as common of a service as mariadb/MySQL with cacti? This capabiity isn't included with the default installation or otherwise readily available?

Is there a template database available where we can find templates for common services like postfix/dovecot etc?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

If you just want to track processes, the HMIB and THOLD plugins works fine. The WEBSEER plugin also helps with service checks. Monitoring comes in many flavors. It depends on what you are interested in.
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?
gossamer
Posts: 11
Joined: Wed Mar 08, 2023 4:36 pm

Re: MYSQL Stats - are there any working ones out there?

Post by gossamer »

TheWitness wrote: Thu Mar 09, 2023 8:03 am If you just want to track processes, the HMIB and THOLD plugins works fine. The WEBSEER plugin also helps with service checks. Monitoring comes in many flavors. It depends on what you are interested in.
Thanks so much for your help.

Just the basics to start - iostat, CPU utilization, bandwidth utilization/errors/etc, checks for common services like dovecot, postfix, apache, mariadb, etc.

None of this is available by default and I must install some third-party plugin? Where can I find them? Is there some type of cacti repository where people manage these?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

Just use the Net-SNMP Device Template plus HMIB for those metrics.
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: MYSQL Stats - are there any working ones out there?

Post by TheWitness »

Here is an example of what you can track with HMIB. Note my MariaDB servers take a lot of memory.
Attachments
HMIBExample.png
HMIBExample.png (255.34 KiB) Viewed 2308 times
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest