I have 3 different local powershell scripts in my config
I got the output from all 3 script in the same Service check.
Like
Powershell1 - has the service1 - and output is from Powershell1, Powershell2 and Powershell3 in the same check.
What I want is that they are 3 seperate Services, how can I define them as 3 different Service checks, with separate output ?
Like:
powershell1 is Service 1 - Output from powershell1
powershell2 is service 2 - Output from powershell2
powershell3 is Service 3 - Output from powershell3
The best way for your scripts would be to format the output as local check.
With local checks your need one line per service.
The description inside the manual for local checks gives all the needed information. The final scripts needed to be placed inside the local folder.
Thanks for your feedback Andreas.
I have read the documentation for local checks.
I also discovered that if I write a blank Write-Host before the actual check and output, as a “header”
CheckMK generated the seperate Services as I want.
I have not forund how to escape the spaces in my service name “Queue Count”
Tried different posiiblities without any luck…
This is my script. And did not solve how to get a space in Queue_Count and CheckMK still discover the service and works.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.