mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Tell plugins they can use awk and do not need gawk.
While there, make ipmi_ plugins easier to use, and sort the plugins.conf file. Submitted by: bcr Sponsored by: Absolight
This commit is contained in:
parent
c2712d2471
commit
f7b5fefe05
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=431883
11
sysutils/munin-common/files/patch-plugins_node.d_ipmi__.in
Normal file
11
sysutils/munin-common/files/patch-plugins_node.d_ipmi__.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- plugins/node.d/ipmi_.in.orig 2017-01-18 20:25:20 UTC
|
||||||
|
+++ plugins/node.d/ipmi_.in
|
||||||
|
@@ -73,7 +73,7 @@ export CONFIG MEASURE
|
||||||
|
|
||||||
|
#### Work is done in this awk script
|
||||||
|
|
||||||
|
-ipmitool sensor | gawk -F'|' '
|
||||||
|
+ipmitool sensor | awk -F'|' '
|
||||||
|
BEGIN {
|
||||||
|
FANS = "";
|
||||||
|
TEMPS = "";
|
@ -0,0 +1,11 @@
|
|||||||
|
--- plugins/node.d/multips_memory.in.orig 2017-01-18 20:25:20 UTC
|
||||||
|
+++ plugins/node.d/multips_memory.in
|
||||||
|
@@ -137,7 +137,7 @@ fi
|
||||||
|
for name in $names; do
|
||||||
|
fieldname="$(clean_fieldname "$name")"
|
||||||
|
|
||||||
|
- ps -eo $monitor,comm | gawk '
|
||||||
|
+ ps -eo $monitor,comm | awk '
|
||||||
|
BEGIN { total = "U"; } # U = Unknown.
|
||||||
|
/grep/ { next; }
|
||||||
|
$2 ~ /^'"$name"'$/ { total = total + ($1*1024); }
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
PORTNAME= munin
|
PORTNAME= munin
|
||||||
PORTVERSION= ${MUNIN_VERSION}
|
PORTVERSION= ${MUNIN_VERSION}
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils perl5
|
CATEGORIES= sysutils perl5
|
||||||
MASTER_SITES= ${MUNIN_SITES}
|
MASTER_SITES= ${MUNIN_SITES}
|
||||||
PKGNAMESUFFIX= -node
|
PKGNAMESUFFIX= -node
|
||||||
|
@ -45,16 +45,18 @@ env.leasefile /var/db/dhcpd.leases
|
|||||||
group mail
|
group mail
|
||||||
env.exim %%LOCALBASE%%/sbin/exim
|
env.exim %%LOCALBASE%%/sbin/exim
|
||||||
|
|
||||||
[smart_*]
|
[fail2ban*]
|
||||||
user root
|
user root
|
||||||
group operator
|
env.client %%LOCALBASE%%/bin/fail2ban-client
|
||||||
env.smartpath %%LOCALBASE%%/sbin/smartctl
|
|
||||||
|
|
||||||
[hddtemp_smartctl]
|
[hddtemp_smartctl]
|
||||||
user root
|
user root
|
||||||
group operator
|
group operator
|
||||||
env.smartctl %%LOCALBASE%%/sbin/smartctl
|
env.smartctl %%LOCALBASE%%/sbin/smartctl
|
||||||
|
|
||||||
|
[ipmi_*]
|
||||||
|
user root
|
||||||
|
|
||||||
[mbmon*]
|
[mbmon*]
|
||||||
env.mbmon %%LOCALBASE%%/bin/mbmon
|
env.mbmon %%LOCALBASE%%/bin/mbmon
|
||||||
|
|
||||||
@ -63,6 +65,10 @@ env.mysql %%LOCALBASE%%/bin/mysql
|
|||||||
env.mysqladmin %%LOCALBASE%%/bin/mysqladmin
|
env.mysqladmin %%LOCALBASE%%/bin/mysqladmin
|
||||||
env.mysqlshow %%LOCALBASE%%/bin/mysqlshow
|
env.mysqlshow %%LOCALBASE%%/bin/mysqlshow
|
||||||
|
|
||||||
|
[nut*]
|
||||||
|
env.upsc %%LOCALBASE%%/bin/upsc
|
||||||
|
env.upsconf %%LOCALBASE%%/etc/nut/ups.conf
|
||||||
|
|
||||||
[postfix*]
|
[postfix*]
|
||||||
user root
|
user root
|
||||||
env.logfile maillog
|
env.logfile maillog
|
||||||
@ -72,11 +78,8 @@ group wheel
|
|||||||
env.mspqueue /var/spool/clientmqueue
|
env.mspqueue /var/spool/clientmqueue
|
||||||
env.mailstats /usr/sbin/mailstats
|
env.mailstats /usr/sbin/mailstats
|
||||||
|
|
||||||
[fail2ban*]
|
[smart_*]
|
||||||
user root
|
user root
|
||||||
env.client %%LOCALBASE%%/bin/fail2ban-client
|
group operator
|
||||||
|
env.smartpath %%LOCALBASE%%/sbin/smartctl
|
||||||
[nut*]
|
|
||||||
env.upsc %%LOCALBASE%%/bin/upsc
|
|
||||||
env.upsconf %%LOCALBASE%%/etc/nut/ups.conf
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user