Skip to content
Snippets Groups Projects
Commit 7e509e4e authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update ceph_io and docs

parent b6b3c31c
Branches
No related tags found
1 merge request!1926723 sudo
......@@ -19,11 +19,12 @@
# 2023-05-10 v1.2 <axel.hahn@unibe.ch> add tests
# 2023-05-11 v1.3 <axel.hahn@unibe.ch> handle ceph status without io data in output
# 2023-07-27 v1.4 <axel.hahn@unibe.ch> update help page
# 2023-10-20 v1.5 <axel.hahn@unibe.ch> harden sudo command execution
# ======================================================================
. $(dirname $0)/inc_pluginfunctions
export self_APPVERSION=1.4
export self_APPVERSION=1.5
function showHelp(){
local _self; _self=$(basename $0)
......@@ -87,7 +88,7 @@ else
ph.require ceph
# --- get output of ceph
if ! CEPHOUT=$( sudo ceph status 2>&1 ); then
if ! CEPHOUT=$( sudo -n ceph status 2>&1 ); then
ph.setStatus "unknown"
ph.status "no data"
echo "There is no output from 'sudo ceph status'."
......
......@@ -18,11 +18,13 @@ icingaclient ALL=(ALL) NOPASSWD: /bin/ceph
```txt
______________________________________________________________________
CHECK_CEPH_IO
v1.3
CHECK_CEPH_IO
v1.5
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_ceph_io.html
______________________________________________________________________
Show cheph IO as read and written bytes per second.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment