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


Nacer
  •  Nacer
  • No customer Topic Starter
2019-08-25T23:09:14Z
Hi there,

I'm working for a client which use vcron.

i have to set some monitoring dashboard to have a look on jobs, for a sample task i set 2 events on Flow tab :
first : On success, run a powershell script
second : On error, run a powershell script

i want to know hoto run these scripts with some vcron variable :
- group name
- job name
- error code

How to run a powershell script with these variables ?


for information im using :
Grafana/InfluxDB
My PowerShell script (sample)
Quote:

$tigurl = 'http://myGrefanaInfluxServer:8086/write?db=test-db-vcjobs'
$jobgroup
$jobname = "NBA"
$jobvalue=2
$data = "jobsTATUS,host=MyVcronServer, group=$jobgroup, jobname=$jobname value=$jobvalue"

Invoke-WebRequest -uri $tigurl -Method post -Body $data



Sponsor
Forum information
Support
2019-08-26T07:31:57Z
Originally Posted by: Nacer 

Hi there,

I'm working for a client which use vcron.

i have to set some monitoring dashboard to have a look on jobs, for a sample task i set 2 events on Flow tab :
first : On success, run a powershell script
second : On error, run a powershell script

i want to know hoto run these scripts with some vcron variable :
- group name
- job name
- error code

How to run a powershell script with these variables ?


for information im using :
Grafana/InfluxDB
My PowerShell script (sample)

Quote:

$tigurl = 'http://myGrefanaInfluxServer:8086/write?db=test-db-vcjobs'
$jobgroup
$jobname = "NBA"
$jobvalue=2
$data = "jobsTATUS,host=MyVcronServer, group=$jobgroup, jobname=$jobname value=$jobvalue"

Invoke-WebRequest -uri $tigurl -Method post -Body $data





Which client are you working for, that uses vcron? Company name?
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Nacer
  •  Nacer
  • No customer Topic Starter
2019-08-26T07:35:26Z
Hi,

It's Keolis



Kind regards
Support
2019-08-26T08:53:17Z
Originally Posted by: Nacer 

Hi,

It's Keolis



Kind regards



I can not find any company registered under that name. Could you email the activation code you're using to support@visualcron.com? (don't post it here openly) so we can properly identify you/the company you work for now

You can find it by going in the VisualCron software then "License" then "Copy activation code to clipboard"
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
keolis-lille
2019-08-26T09:01:16Z
It's this account.

Nacer.
Support
2019-08-26T15:22:51Z
Originally Posted by: keolis-lille 

It's this account.

Nacer.



You can find the variables you are looking for by expanding the "VisualCron" variable-tree like this

https://www.screencast.com/t/stPrHf7Q 

There you can see Name, Group, Exit code.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top