Hello All,
Environment;
Zabbix Server 3.4.14 Virtual machine
8 Cores
10 GB Ram
1TB HDD
I need a little help understanding the Calculated Item/s.
What I’m trying to do is calculate the total time User/s are logged in a Device.
Example: 1 user logged in for 4 hours Monday, then 3 users were logged in for the total of 9 hours on Tuesday. At the end of the week show the total of Users logged in was 13 hours.
How I’m trying to accomplish this is using the item name “Active Users” with the key perf_counter["\Terminal Services\Active Sessions"].
This shows the number of active users logged in, from that item I created a calculate item Called “Total User Time” with a key user.time.
The formula in use is sum(perf_counter["\Terminal Services\Active Sessions"],86400). I wanted the SUM of 1 Day of all active user/s logged in.
Then I created another calculated Item called “Week User Time”, using the Key user.time.7 and the formula count("user.time",604800). The count for the week.
Testing: The Sum seems to work. I had another user log into the device and it started doubling the amount of time. As for the count, I’m not sure if its correct. Any advice would be appreciated. Thank in advance.
Environment;
Zabbix Server 3.4.14 Virtual machine
8 Cores
10 GB Ram
1TB HDD
I need a little help understanding the Calculated Item/s.
What I’m trying to do is calculate the total time User/s are logged in a Device.
Example: 1 user logged in for 4 hours Monday, then 3 users were logged in for the total of 9 hours on Tuesday. At the end of the week show the total of Users logged in was 13 hours.
How I’m trying to accomplish this is using the item name “Active Users” with the key perf_counter["\Terminal Services\Active Sessions"].
This shows the number of active users logged in, from that item I created a calculate item Called “Total User Time” with a key user.time.
The formula in use is sum(perf_counter["\Terminal Services\Active Sessions"],86400). I wanted the SUM of 1 Day of all active user/s logged in.
Then I created another calculated Item called “Week User Time”, using the Key user.time.7 and the formula count("user.time",604800). The count for the week.
Testing: The Sum seems to work. I had another user log into the device and it started doubling the amount of time. As for the count, I’m not sure if its correct. Any advice would be appreciated. Thank in advance.
Comment