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

make counter datadir user specific

parent aa3e6280
Branches
No related tags found
1 merge request!70make counter datadir user specific
# check_snmp_data
......@@ -33,7 +33,8 @@
# 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-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(){
function ph._getStorefile(){
local varName=$1
local mydir="/tmp/icinga_counter"
test -n "$dir_data" && mydir="${dir_data}/_counter"
local mydir="/tmp/icinga_counter_$( whoami )"
test -n "$dir_data" && mydir="${dir_data}/_counter_$( whoami )"
local _basename
_basename=$(basename $0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment