ports/151995: net-mgmt/nagios-plugins: new plugin to check CPU usage
ohauer at FreeBSD.org
ohauer at FreeBSD.org
Tue Nov 23 23:26:32 UTC 2010
Synopsis: net-mgmt/nagios-plugins: new plugin to check CPU usage
Responsible-Changed-From-To: freebsd-ports-bugs->ohauer
Responsible-Changed-By: ohauer
Responsible-Changed-When: Tue Nov 23 23:13:34 UTC 2010
Responsible-Changed-Why:
Hi Marian,
your first port Makefile was nearly perfect ;)
If possible use next time tar instead of rar if you provide
additional files.
I've reworked the port to not download the script. The script
can be delivered with the port since it is a small one.
Do you really need values behind the "." or is a full
integer OK? If so "vmstat -c 2 -n 0 | tail -n 1" or "uptime"
is a way faster than "top -n -d 2 | awk ..."
I've uploaded the rewritten port for your review, feel free
to change the vmstat command back to top it is only a suggestion.
http://people.freebsd.org/~ohauer/diffs/nagios-check_cpu_usage/
http://www.freebsd.org/cgi/query-pr.cgi?pr=151995
More information about the freebsd-ports-bugs
mailing list