Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2010 23:26:31 GMT
From:      ohauer@FreeBSD.org
To:        ohauer@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, ohauer@FreeBSD.org
Subject:   Re: ports/151995: net-mgmt/nagios-plugins: new plugin to check CPU usage
Message-ID:  <201011232326.oANNQVx2053298@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011232326.oANNQVx2053298>