mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-12-22 09:03:54 +01:00
Added dependency on bc
This commit is contained in:
parent
5b7f683227
commit
270ddb3d97
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user