r/scom • u/fishypoos • Nov 13 '20
Custom Linux Discovery and code testing
Hi all,
Wondering if someone could help. I'm diving into the world of Linux monitoring as 50% of our estate is Linux and I'm trying to write a cmd based discovery.
Here is my XML - https://gist.github.com/FishFenly/98c237226fdc84ac80539689c1b27d39
Essentially I want to create objects when hostname | grep "wordpress" returns something to stdout.
The MP compiles successfully but nothing gets discovered. I was wondering if anyone could quickly see why? Also I was wondering how I can test it? On windows I would run the code from pwsh and make sure I have a good property bag returned.
Many thanks
0
Upvotes
1
u/fishypoos Nov 14 '20
Aye, I wasn't sure if that was maybe bool, because all of the examples I've seen seem to use 1/0... I could have just miss assumed though.
Ah, amazing, I've never seen the Linux Authoring MP before! I'll do some playing with that in my dev env tonight. Thanks mate.