Are there plans to add more options for Triggers on Services?
Currently limited to Stopped or Not Configured, but there are other states that can be reported. Pulling the JSON for the trigger as Stopped, State=1, but I have services that aren’t running that return a State value of 3 from ControlUp. I don’t know what the state values in ControlUp are associated with though.
(Invoke-CUQuery -Table Services -Fields -where "ServiceDisplayName=’Citrix Print Manager Service’" -SearchField Machine -Search ‘*’).Data
Hit enter to send the previous message on accident and evidently can’t add pictures to an edited message…
1 = stopped
2 = start pending
3 = stop pending
4 = running
5 = continue pending
6 = pause pending
7 = paused
8 = NA
Essentially this but with 8 added as NA
You’ll want to reach out to support. If you can reproduce the issue, they’ll want logs from the monitor that is monitoring the agent and potentially the agent that is monitoring the service.
It appears that the service was transitioning from running to stopped but went through stop pending. And the agent or monitor got stuck on that.
The service monitoring functionality is a bit more complex that just relaying statuses of services.I have been trying to determine why the trigger doesn’t fire consistently for about 2 weeks and finally came up with this. I’ll get a ticket open, though I may not open it myself. I’ll have one of my team open it for me.
Thanks for the statuses though. That’s helpful.
My question still remains though. Will there be more statues added to the triggers in the future?I was hoping you didn’t notice that I didn’t answer that question 🙂
@member do you know?
Hi,Yes, we are planning to add more statuses.
Regarding the service states, @member is right about the enums for the service states.
Small hint when using the Monitor cmdlets: You can always use the -TranslateEnums switch to show human-friendly output. No need to remember the enums
Glad to hear that and thanks for the tip. I haven’t had a chance to look at it yet, but plan to in the near future. Been on PTO and going again, so will be a bit slow for a bit.
Continue reading and comment on the thread ‘Any plans to add more options for ControlUp Triggers on Services?’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers