Munin : Set Thresholds2026/04/02 |
|
The monitoring target items are set as plugins and thresholds are defined in some plugins by default, but if you'd like to add more thresholds to a plugin, configure like follows. |
|
| [1] | It's possible to see plugins like follows. |
|
# current enabled plugins are located under the directory below [root@dlp ~]# ls /etc/munin/plugins cpu forks interrupts open_files swap df fw_conntrack irqstats open_inodes threads df_inode fw_forwarded_local load processes uptime diskstats fw_packets memory proc_pri users entropy if_enp1s0 netstat selinux_avcstat vmstat # installed plugins are located under the directory below [root@dlp ~]# ls /usr/share/munin/plugins acpi openvpn amavis perdition apache_accesses pgbouncer_connections apache_processes pgbouncer_requests apache_volume ping_ apc_envunit_ plugin.sh apc_nis plugins.history apt pm3users_ ..... ..... |
| [2] | It's possible to display current values for each plugin. |
|
# display values for cpu plugin [root@dlp ~]# munin-run cpu user.value 2510 nice.value 1477 system.value 1992 idle.value 530161 iowait.value 401 irq.value 431 softirq.value 86 steal.value 0 guest.value 0 # display values for df plugin [root@dlp ~]# munin-run df _dev_mapper_cs_root.value 10.799333836986 _dev_shm.value 0 _run.value 1.17952284155344 _run_credentials_systemd_journald_service.value 0 _dev_vda2.value 59.1011555989583 _run_credentials_getty_tty1_service.value 0 _run_credentials_serial_getty_ttyS0_service.value 0 |
| [3] | Set threshold's value in munin.conf like follows. ⇒ [plugin name].[field name].[warning | critical] min-value:max-value The field name is just the one which is displayed when executing "munin-run" command. The min-value or max-value can be omitted. |
|
[root@dlp ~]#
vi /etc/munin/munin-conf.d/local.conf # set threshold on target node [dlp.srv.world] address 127.0.0.1 use_node_name yes # set 80% of warning and 90% of critical for user field in cpu plugin cpu.user.warning :80 cpu.user.critical :90 # set 80% of warning and 90% of critical for /run partition field in df plugin df._run.warning :80 df._run.critical :90 |
| [4] | If you configured notification setting and a value is over from the threshold's value, the email is sent like follows. |
[-- Message 2 -- 18 lines, 645 bytes --]:
Date: Thu, 02 Apr 2026 10:25:06 +0900
To: root@dlp.srv.world
Subject: Munin-notification for srv.world::dlp.srv.world
Message-Id: <20260402012506.A72DD304E71B@dlp.srv.world>
From: Munin user <munin@dlp.srv.world>
srv.world :: dlp.srv.world :: Disk usage in percent
WARNINGs: /run is 88.82 (outside range [:80]).
OKs: / is 10.80, /boot is 59.10, /dev/shm is 0.00.
|
| Sponsored Link |
|
|