[ZBX-24960]  system.uptime Item Key Not Working on Zabbix Agent 2 Created: 2024 Aug 01  Updated: 2024 Nov 19  Resolved: 2024 Oct 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: 6.0.35rc1, 7.0.5rc1, 7.2.0alpha1

Type: Problem report Priority: Trivial
Reporter: Joosep Assignee: Michael Veksler
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: 2h
Original Estimate: Not Specified
Environment:

Zabbix Agent 2 Version: v6.0.32
Operating System: windows 10 pro 64bit 19045.3693


Attachments: Text File system_uptime_log.txt     PNG File zabbix_date_time_error.png    
Issue Links:
Duplicate
Team: Team B
Sprint: Prev.Sprint, S24-W38/39, S24-W40/41
Story Points: 1

 Description   

Description:

The system.uptime item key does not work when using Zabbix Agent 2 on a Windows machine. The command returns an error indicating that the counter path cannot be parsed. This issue does not occur with the original Zabbix Agent.

 

Steps to Reproduce:

  1. Install Zabbix Agent 2 on a Windows machine.
  2. Open Command Prompt with administrator privileges.
  3. Navigate to the Zabbix Agent 2 installation directory.
  4. Run the following command:

.\zabbix_agent2.exe -c .\zabbix_agent2.conf -t system.uptime

Actual Result:

  • Command output:

system.uptime                                 [m|ZBX_NOTSUPPORTED] [Unable to parse the counter path. Check the format and syntax of the specified path.]

 ** 

Expected Result:

  • Command output:

system.uptime                                 [m|SECONDS] [123456]

 

Configuration Changes:

  • No changes made from default configuration.

 

Additional Information:

  • This issue does not occur with the original Zabbix Agent using the same configuration and command.
  • Other item keys may or may not be affected. Further testing with other keys like system.cpu.load is recommended.


 Comments   
Comment by Joosep [ 2024 Aug 01 ]

I have tested with zabbix agent2 versions:

  • 6.0.22 - doesn't work
  • 6.0.28 - doesn't work
  • 6.0.32 - doesn't work
Comment by Joosep [ 2024 Aug 23 ]

update: Added log file.
Agent 2 version: 6.0.28
OS version: Windows Server 2022

Comment by Michael Veksler [ 2024 Oct 11 ]

Available in:

Generated at Mon May 05 07:52:26 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.