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

Merge branch '6338-snmpv3' into 'master'

make counter datadir user specific

See merge request !70
parents 2d89bae0 8bbb8220
No related branches found
No related tags found
1 merge request!70make counter datadir user specific
# check_snmp_data
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
# 2022-10-25 v1.5 <axel.hahn@iml.unibe.ch> handle empty value in ph.perfadd # 2022-10-25 v1.5 <axel.hahn@iml.unibe.ch> handle empty value in ph.perfadd
# 2023-01-30 v1.6 <axel.hahn@unibe.ch> check performance params 5+6 and show a warning if missing # 2023-01-30 v1.6 <axel.hahn@unibe.ch> check performance params 5+6 and show a warning if missing
# 2023-02-16 v1.7 <axel.hahn@unibe.ch> adding a generic min and max value did not really help # 2023-02-16 v1.7 <axel.hahn@unibe.ch> adding a generic min and max value did not really help
# 2024-04-24 v1.8 <axel.hahn@unibe.ch> fix unit conversion # 2023-04-24 v1.8 <axel.hahn@unibe.ch> fix unit conversion
# 2023-05-05 v1.9 <axel.hahn@unibe.ch> user specific counter directory
# ====================================================================== # ======================================================================
...@@ -324,8 +325,8 @@ function ph.getFileAge(){ ...@@ -324,8 +325,8 @@ function ph.getFileAge(){
function ph._getStorefile(){ function ph._getStorefile(){
local varName=$1 local varName=$1
local mydir="/tmp/icinga_counter" local mydir="/tmp/icinga_counter_$( whoami )"
test -n "$dir_data" && mydir="${dir_data}/_counter" test -n "$dir_data" && mydir="${dir_data}/_counter_$( whoami )"
local _basename local _basename
_basename=$(basename $0) _basename=$(basename $0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment