Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


elinenbe
2013-09-23T17:36:43Z
I have a job that monitors the status of a remote service. If the service ever changes I would like an email that includes the state of the service.

I've created a job that is a service monitor. If the service status changes, then I would just like an email.

Job trigger is "Process - Service" when the "Service status changes"

I then have a flow that sends an email notification. It currently looks like:

{JOB(Active|Status)}
{JOB(Active|Result)}
{TRIGGER(Active|LastTrigger|Id)}
{TRIGGER(Active|LastTrigger,Service.Result.DisplayName)}
{TRIGGER(Active|LastTrigger,Service.Result.State)}

Wen I get the email, it looks like:

Running
Success
No Trigger specified (perhaps Job is not created yet?)
No Trigger specified (perhaps Job is not created yet?)
No Trigger specified (perhaps Job is not created yet?)

How do I get the state of the current service?

Thanks,
Eric
Sponsor
Forum information
elinenbe
Support
2013-09-26T02:58:39Z
You seem to be mixing parameter delimiters. Either use comma (,) or pipe (|). Here is what you use:

{TRIGGER(Active|LastTrigger,Service.Result.DisplayName)}

Instead use:

{TRIGGER(Active|LastTrigger|Service.Result.DisplayName)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
elinenbe
2013-09-26T14:13:08Z
Originally Posted by: Support 

You seem to be mixing parameter delimiters. Either use comma (,) or pipe (|). Here is what you use:

{TRIGGER(Active|LastTrigger,Service.Result.DisplayName)}

Instead use:

{TRIGGER(Active|LastTrigger|Service.Result.DisplayName)}



I tried this and I still get the same results:

No Trigger specified (perhaps Job is not created yet?)

I have a job that is triggered whenever a service stops on a remote server. I would like to just display the state of the trigger that fired.

Eg,

Job - Watch For FOO Service To Stop.

Flow Email:

The FOO service state is STOPPED <-- where STOPPED is the trigger status.

Thanks,
Eric

elinenbe
2013-10-02T00:55:20Z
Support
2013-10-03T07:20:37Z
I sounds like you are running it manually instead using the Variable when it has been triggered. This is my test setup:

1. I create a Job with a Service event trigger that watches any change on a specific service
2. I create on Task - a popup Task where I, in the message use this value: {TRIGGER(Active|LastTrigger|Service.Result.DisplayName)}
3. I stop or start the service and I see the message in the popup Task

Is this not working for you?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top