[GH-ISSUE #1278] Windows Service Check - return wrong status when "Restart Service if it's stopped" got ticked #794

Closed
opened 2026-03-02 02:19:06 +03:00 by kerem · 2 comments
Owner

Originally created by @wangshiok on GitHub (Sep 9, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1278

Server Info (please complete the following information):

  • OS: [Debian 10]
  • Browser: [Edge]
  • RMM Version (14.6)

Installation Method:

  • Standard

Agent Info (please complete the following information):

  • Agent version (14.6):
  • Agent OS: [Server 2019]

Describe the bug
If you tick the option of "Restart Service if it's stopped" when setup a Windows Service Check, the service check will always return as running even the service is actually stopped.

To Reproduce
Steps to reproduce the behavior:

  1. Pick an Agent
  2. Click on 'Checks' > 'New' > 'Windows Service Check'
  3. pick any windows service that you want to check and tick the box of "Restart Service if it's stopped"
  4. Do NOT disable the service but make service unable to start (say you change the config file of that service)
  5. run the check, the check will try to start the service as expected and return with status 'RUNNING' even the service failed to start and is actually in 'STOPPED' status

Expected behavior
Windows Service Check should return the true running status of a windows service

Screenshots

Additional context
The service I am checking comes with third party program, it links to an .exe and .exe.config file, if I just remove the exe so the service won't start, Check Service return with correct status, but if I just modify the exe.config file so the service won't start, Check Service return with wrong status - "RUNNING"

Originally created by @wangshiok on GitHub (Sep 9, 2022). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1278 **Server Info (please complete the following information):** - OS: [Debian 10] - Browser: [Edge] - RMM Version (14.6) **Installation Method:** - [ ] Standard **Agent Info (please complete the following information):** - Agent version (14.6): - Agent OS: [Server 2019] **Describe the bug** If you tick the option of "Restart Service if it's stopped" when setup a Windows Service Check, the service check will always return as running even the service is actually stopped. **To Reproduce** Steps to reproduce the behavior: 1. Pick an Agent 2. Click on 'Checks' > 'New' > 'Windows Service Check' 3. pick any windows service that you want to check and tick the box of "Restart Service if it's stopped" 4. Do NOT disable the service but make service unable to start (say you change the config file of that service) 5. run the check, the check will try to start the service as expected and return with status 'RUNNING' even the service failed to start and is actually in 'STOPPED' status **Expected behavior** Windows Service Check should return the true running status of a windows service **Screenshots** **Additional context** The service I am checking comes with third party program, it links to an .exe and .exe.config file, if I just remove the exe so the service won't start, Check Service return with correct status, but if I just modify the exe.config file so the service won't start, Check Service return with wrong status - "RUNNING"
kerem 2026-03-02 02:19:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@silversword411 commented on GitHub (Sep 9, 2022):

Screenshots of service status in services list (mmc on agent) please.

<!-- gh-comment-id:1241425626 --> @silversword411 commented on GitHub (Sep 9, 2022): Screenshots of service status in services list (mmc on agent) please.
Author
Owner

@silversword411 commented on GitHub (Jan 9, 2024):

Not enough details to replicate. Closing

<!-- gh-comment-id:1882764970 --> @silversword411 commented on GitHub (Jan 9, 2024): Not enough details to replicate. Closing
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#794
No description provided.