ਉਬੁੰਟੂ ਉੱਤੇ ਥਰਮਲ ਮਾਨੀਟਰਿੰਗ ਲਈ ਮਿਊਨਿਨ ਸੈੱਟਅੱਪ ਕਰਨਾ

ਉਬੁੰਟੂ ਉੱਤੇ ਥਰਮਲ ਮਾਨੀਟਰਿੰਗ ਲਈ ਮਿਊਨਿਨ ਸੈੱਟਅੱਪ ਕਰਨਾ

ਸਰਵਰ ਉੱਤੇ:

sudo apt -y install munin apache2 libapache2-mod-fcgid

/etc/munin/munin.conf ਵਿੱਚ ਹੇਠ ਲਿਖੀਆਂ ਸੈਟਿੰਗਾਂ ਐਨੇਬਲ ਕਰੋ:

graph_strategy cgi
html_strategy cgi

/etc/munin/apache24.conf ਵਿੱਚ ਹੇਠ ਲਿਖੀਆਂ ਸੈਟਿੰਗਾਂ ਐਨੇਬਲ ਕਰੋ:

# Alias /munin /var/cache/munin/www
ScriptAlias /munin /usr/lib/munin/cgi/munin-cgi-html

ਹੁਣ ਚਲਾਓ:

sudo a2enconf munin
sudo systemctl reload apache2

ਹੁਣ ਆਪਣੇ ਕਲਾਈਟਾਂ ਉੱਤੇ munin-node ਐਨੇਬਲ ਕਰੋ:

chroot /storage/spins/u20-x86/
apt -y update
apt -y upgrade
apt -y install munin-node

/etc/munin/munin-node.conf ਵਿੱਚ ਹੇਠ ਲਿਖੀਆਂ ਸੈਟਿੰਗਾਂ ਜੋੜੋ:

allow ^192\.168\.11\.1$

ਹੁਣ ਆਪਣੇ ਸਾਰੇ ਨੋਡਸ ਨੂੰ munin.conf ਵਿੱਚ ਜੋੜੋ:

sudo su -
cd /etc/munin
for d in `seq 10 250` ; do echo -e "[$d.localdomain]\n  address 192.168.11.$d\n  use_node_name yes\n"; done >> munin.conf