1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 01:53:44 +01:00

Added dependency on bc

This commit is contained in:
Pall Sigurdsson 2012-10-23 10:49:57 +00:00
parent 5b7f683227
commit 270ddb3d97
2 changed files with 6 additions and 1 deletions

View File

@ -167,6 +167,11 @@ must be lower than the critical level!"
exit $ST_UK
fi
fi
which bc >> /dev/null
if [ $? -gt 0 ]; then
echo "UNKNOWN - command 'bc' not found in path. Exiting..."
exit 3
fi
get_cpuvals
do_output

View File

@ -8,7 +8,7 @@ License: GPLv2+
Group: Applications/System
URL: http://www.matejunkie.com/cpu-check-plugin-for-nagios/
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_cpu/releases/nagios-plugins-check_cpu-%{version}.tar.gz
Requires: nrpe
Requires: nrpe bc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Tomas Edwardsson <tommi@ok.is>
BuildArch: noarch