Install MUNIN with hestia

Hello, has anyone installed MUNIN on Hestia? I’ve made several attempts with the help of chatgpt but it doesn’t work, either as a subdomain or via ip:4949 access. I want a console to check the status of services and mainly monitor the status of exim and devcot to detect anomalies in emails, and munin seems to be the recommended tool.
Sorry if it’s a waste of time but if anything else I can try. Thanks

For IP:4949 open port 4949 in firewall

For subdomein create a template

1 Like

you can’t share your scripts on:
‘How you installed Munin on HestiaCP’
or
‘What it does’?

Thanks

Hi, the way I use to run Munin is configure it to put data in public_hml of domain.

This is the process i used:

  1. Update System
    sudo apt update && sudo apt upgrade -y

  2. Install MUNIN
    sudo apt install munin munin-node munin-plugins-extra -y

  3. Configure MUNIN
    sudo nano /etc/munin/munin.conf

Hostname

[hostname]
address 127.0.0.1
use_node_name yes

Network configuration

[000.000.000.000] # Replace by your External IP
address 000.000.000.000
use_node_name yes

Setup MUNIN directory (your site public directory)

htmldir /var/cache/munin/www

htmldir /home/user/web/munin.domain.xxx/public_html

  1. Configure MUNIN NODE

sudo nano /etc/munin/munin-node.conf

host_name your.server.name
allow ^127.0.0.1$
allow ^000.000.000.000$9494

  1. Configure Apache to Munin
    sudo nano /etc/apache2/conf-available/munin.conf

Alias /munin /var/cache/munin/www
<Directory /var/cache/munin/www>
Options None
AllowOverride None
Require all granted

  1. Activate configuration

sudo a2enconf munin
sudo systemctl restart apache2

  1. Configure Nginx (Proxy Reverse)

sudo nano /etc/nginx/conf.d/munin.conf

server {
listen 80;
server_name your.server.nane;

location /munin {
    proxy_pass http://127.0.0.1/munin;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}

  1. Reboot Nginx
    sudo systemctl restart nginx

  2. Reboot services
    sudo systemctl restart apache2
    sudo systemctl restart nginx
    sudo systemctl restart munin-node

  3. Configure permissions to domain path
    sudo chown -R munin:munin /home/user/web/munin.domain.xxx/public_html
    sudo chmod -R 755 /home/user/web/munin.domain.xxx/public_html

Note: Firewall must accept port 4949
In Hestia domain PHP options: No PHP

Hope it help

I’m interested in this.
I’m a tiny bit confused

when you say this:

htmldir /var/cache/munin/www

htmldir /home/user/web/munin.domain.xxx/public_html

do you specially mean
/home/user/web/munin.domain.xxx/public_html/var/cache/munin/www

or do you JUST mean
/var/cache/munin/www

I’d love to know more about what it does. I’m dying to get ‘better logging’ on my hestiaCP servers.

but I’ll be doing this on my home environments, not my public environments until I can do some testing

THANK YOU.
PS - I’m heading into a datadog demonstration tomorrow. I’m going to ALWAYS prefer free self-hosted options to other tools.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.