Debian 9, Munin 2.0.33-1
К примеру плагин my_cpu имеет такой кусок кода:
echo 'graph_title CPU usage'
echo 'graph_vlabel CPU'
echo 'graph_category system'
echo 'graph_info This graph shows total CPU usage.'
echo 'graph_args --base 1000 -l 0'
echo 'cpu.label % usage CPU'
echo 'cpu.draw AREA'
echo 'cpu.info The total percent CPU usage.'
echo 'cpu.warning 2'
echo 'cpu.critical 5'
exit 0
И в munin.conf есть такой кусок кода
[Web-server]
address 127.0.0.1
use_node_name yes
# my_cpu.cpu.warning 2
# my_cpu.cpu.critical 5
contacts warn crit
contact.warn.command echo "Munin Warning!" | mail -s "Munin Warning!" admin@mysite.ru -a "Content-Type: text/plain; charset=UTF-8"
contact.crit.command echo "Munin Critical!" | mail -s "Munin Critical!" admin@mysite.ru -a "Content-Type: text/plain; charset=UTF-8"
contact.warn.always_send warning
contact.crit.always_send critical