diff --git a/check_snmp_data.md b/check_snmp_data.md new file mode 100644 index 0000000000000000000000000000000000000000..8b3fbf1193c2c780625c2372636ee6cacf38cc55 --- /dev/null +++ b/check_snmp_data.md @@ -0,0 +1,2 @@ +# check_snmp_data + diff --git a/inc_pluginfunctions b/inc_pluginfunctions index abc6128d98f48d35268dda295eec8607ad389f0a..3de16e7a84ca43ad3a4287c295ff3906d540e744 100644 --- a/inc_pluginfunctions +++ b/inc_pluginfunctions @@ -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)