1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +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:
Mathieu Arnold 2017-01-19 15:45:22 +00:00
parent c2712d2471
commit f7b5fefe05
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=431883
4 changed files with 35 additions and 9 deletions

View 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 = "";

View File

@ -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); }

View File

@ -3,6 +3,7 @@
PORTNAME= munin
PORTVERSION= ${MUNIN_VERSION}
PORTREVISION= 1
CATEGORIES= sysutils perl5
MASTER_SITES= ${MUNIN_SITES}
PKGNAMESUFFIX= -node

View File

@ -45,16 +45,18 @@ env.leasefile /var/db/dhcpd.leases
group mail
env.exim %%LOCALBASE%%/sbin/exim
[smart_*]
[fail2ban*]
user root
group operator
env.smartpath %%LOCALBASE%%/sbin/smartctl
env.client %%LOCALBASE%%/bin/fail2ban-client
[hddtemp_smartctl]
user root
group operator
env.smartctl %%LOCALBASE%%/sbin/smartctl
[ipmi_*]
user root
[mbmon*]
env.mbmon %%LOCALBASE%%/bin/mbmon
@ -63,6 +65,10 @@ env.mysql %%LOCALBASE%%/bin/mysql
env.mysqladmin %%LOCALBASE%%/bin/mysqladmin
env.mysqlshow %%LOCALBASE%%/bin/mysqlshow
[nut*]
env.upsc %%LOCALBASE%%/bin/upsc
env.upsconf %%LOCALBASE%%/etc/nut/ups.conf
[postfix*]
user root
env.logfile maillog
@ -72,11 +78,8 @@ group wheel
env.mspqueue /var/spool/clientmqueue
env.mailstats /usr/sbin/mailstats
[fail2ban*]
[smart_*]
user root
env.client %%LOCALBASE%%/bin/fail2ban-client
[nut*]
env.upsc %%LOCALBASE%%/bin/upsc
env.upsconf %%LOCALBASE%%/etc/nut/ups.conf
group operator
env.smartpath %%LOCALBASE%%/sbin/smartctl