For your second problem, the one with the service check you can do the following:
The trigger will always return success due to the fact that the trigger did his thing after a state change of the service.
What you need to do is to add a task to your job, like the mail task to inform you that the service is stopped.
Add a condition to this task checking the output of the triggers state. You can check on the 'Stopped' string.
Your trigger should trigger every state changes. The task will only run if the service state changes to stopped.
In the trigger you can setup a timeout of 10 minutes. After 10 minutes the trigger will launch.
Now you have a job running every 10 minutes, and directly if the service state changes.
This timeout didn't work in the 4.9.3 version with this trigger though. Is this a bug Henrik?
it is indeed a bug and it is fixed in the next release[/edit]
Edited by user
| Reason: Not specified
Uses Visualcron since 2006.