# Whm shared hosting monitoring

**URL:** <https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898>\
**Category:** Help\
**Tags:** cloud, agent-collector, agent, agent-configuration\
**Created:** [November 2, 2021, 8:38am UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898 "2021-11-02T08:38:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiziekid](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/wiziekid/32/1265_2.png) [@wiziekid](https://community.netdata.cloud/u/wiziekid)\
**Post date:** [November 2, 2021, 8:38am UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/1 "2021-11-02T08:38:28Z")

</div>

Hello,

I’ve installed netdata on serveral of our servers and now i’m wondering if i’ve missed something. Most of our servers are centos 7 with WHM and i was wondering how to monitor disk,cpu,ram and mysql usage per account so i can see wich account has used what instead of an overall view.

Does anybody have an idea?

Thanks

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [November 3, 2021, 7:34am UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/2 "2021-11-03T07:34:57Z")

</div>

Hi, @wiziekid. Not sure what WHM accounts are, but Netdata has [apps.plugin](https://github.com/netdata/netdata/tree/master/collectors/apps.plugin#appsplugin) and it collects CPU, memory, disk, etc. usage per user. It is enabled by default and you can see its metrics on the Dashboard under the “Users” section. Does it work for your case?

---

<div class="post-metadata">

**Author:** ![wiziekid](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/wiziekid/32/1265_2.png) [@wiziekid](https://community.netdata.cloud/u/wiziekid)\
**Post date:** [November 4, 2021, 8:02am UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/3 "2021-11-04T08:02:26Z")

</div>

Hello @ilyam8,

Thanks for your response, ik kinda works. Ik can see the different cpu and disk.

What i would like to monitor is the mysql, i can see the read write join commit over the whole sql socket but in WHM/cpanel the different accounts seperate hosting account with there own disk space (where i would like to know how much disk space is used per user (/home/account1/\* /home/account2/\* )), they work within php-fpm pool and start there own php proces owned by user account 1 or account2 wich i would like to see how many processes are running for the different accounts and how much ram/cpu usage they have.  
within elasticsearch i would like to know how many different node/indexes there are and if i can see the requests/healt per index.

and last the mysql monitoring is an overall monitor of the whole mysql socket. is there a possibility to monitor the usage per database and or database-user? instead of the whole mysql proces?

kind regards wiziekid

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [November 4, 2021, 1:42pm UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/4 "2021-11-04T13:42:08Z")

</div>

> [@wiziekid](#):
>
> and last the mysql monitoring is an overall monitor of the whole mysql socket. is there a possibility to monitor the usage per database and or database-user?

I know that MariaDB exports [users statistics](https://mariadb.com/kb/en/user-statistics/). If you have it configured you get the following charts (per user):

- CPU Time in `percentage`
- Rows Operations in `operations/s`
- Commands in `commands/s`

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [November 4, 2021, 1:44pm UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/5 "2021-11-04T13:44:44Z")

</div>

> [@wiziekid](#):
>
> where i would like to know how much disk space is used per user (/home/account1/\* /home/account2/\*

If those are not mountpoints but directories, you can use [filecheck](https://github.com/netdata/go.d.plugin/tree/master/modules/filecheck#filecheck) to monitor the directories size.

---

<div class="post-metadata">

**Author:** ![wiziekid](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/wiziekid/32/1265_2.png) [@wiziekid](https://community.netdata.cloud/u/wiziekid)\
**Post date:** [November 4, 2021, 2:56pm UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/6 "2021-11-04T14:56:37Z")

</div>

yes only i’m using mysql and not mariadb, do you know it for mysql aswell?

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [November 4, 2021, 7:13pm UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/7 "2021-11-04T19:13:41Z")

</div>

I googled “MySQL user statistics” and found this

> [https://dev.mysql.com/doc/mysql-monitor/8.0/en/mem-reports-user-statistics.html](https://dev.mysql.com/doc/mysql-monitor/8.0/en/mem-reports-user-statistics.html)

Seems like an enterprise version feature only.

And percona-server

> Percona Server for MySQL is a free, fully compatible, enhanced, and open source drop-in replacement for any MySQL database.

has user statistics

> [https://www.percona.com/doc/percona-server/8.0/diagnostics/user\_stats.html](https://www.percona.com/doc/percona-server/8.0/diagnostics/user_stats.html)

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [November 4, 2021, 7:18pm UTC](https://community.netdata.cloud/t/whm-shared-hosting-monitoring/1898/8 "2021-11-04T19:18:37Z")

</div>

If there is a way to gather MySQL Server per user statistics - we can add it. So far I couldn’t find how to do it.
