Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeatureRequest Partial Match for Taskname should not return unknown #274

Closed
moreamazingnick opened this issue Feb 5, 2022 · 0 comments · Fixed by #277
Closed

FeatureRequest Partial Match for Taskname should not return unknown #274

moreamazingnick opened this issue Feb 5, 2022 · 0 comments · Fixed by #277
Assignees
Labels
bug Something isn't working
Milestone

Comments

@moreamazingnick
Copy link

If I run the checkcommand with google* The check returns unknown but get performance data that it actually found what i was looking for

PS C:\WINDOWS\system32> Invoke-IcingaCheckScheduledTask -TaskName 'google*' -State 'Ready';
[UNKNOWN] Scheduled Tasks [UNKNOWN] Unknown Tasks
\_ [UNKNOWN] Unknown Tasks
   \_ [UNKNOWN] google*: Task not found: 0
| 'googleupdatetaskmachinecore_lastruntime'=132885082370000000s;; 'googleupdatetaskmachinecore_missedruns'=0;; 'googleupdatetaskmachinecore_'=3;; 'googleupdatetaskmachinecore_lasttaskresult'=0;; 'googleupdatetaskmachinecore_nextruntime'=132885582710000000s;; 'googleupdatetaskmachineua_missedruns'=0;; 'googleupdatetaskmachineua_nextruntime'=132885186710000000s;; 'googleupdatetaskmachineua_lasttaskresult'=0;; 'googleupdatetaskmachineua_'=3;; 'googleupdatetaskmachineua_lastruntime'=132885150710000000s;; 'google_task_not_found'=;;
3

It works flawless with the full name but it would be nice if the check above returns OK instead of unknown

PS C:\WINDOWS\system32> Invoke-IcingaCheckScheduledTask -TaskName 'googleupdatetaskmachinecore' -State 'Ready';
[OK] Scheduled Tasks
| 'googleupdatetaskmachinecore_lastruntime'=132885082370000000s;; 'googleupdatetaskmachinecore_missedruns'=0;; 'googleupdatetaskmachinecore_'=3;; 'googleupdatetaskmachinecore_lasttaskresult'=0;; 'googleupdatetaskmachinecore_nextruntime'=132885582710000000s;;
0

best regards Nicolas

Framwork: 1.7.1
Plugins 1.7.0

@LordHepipud LordHepipud self-assigned this Feb 7, 2022
@LordHepipud LordHepipud added the bug Something isn't working label Feb 7, 2022
@LordHepipud LordHepipud added this to the v1.8.0 milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants