Monitoring non-worked service

I need to monitor pop3 service for its omission.
Ie, state OK, when pop3 disabled and critically, when it is enable.
How can I do?

If linux, try

Will generate “Critical” state if finds more than 0 processes running called , else will generate an “OK”

If windows, IDK… mebey write a wrapper script to grab the service state from SC query or pslist or similar

HTH

/S

Thank you.