# Passing Variables to an external command.

**URL:** <https://discourse.sensu.io/t/passing-variables-to-an-external-command/718>\
**Category:** Sensu Classic (EOL)\
**Created:** [November 14, 2016, 4:37pm UTC](https://discourse.sensu.io/t/passing-variables-to-an-external-command/718 "2016-11-14T16:37:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [November 14, 2016, 4:37pm UTC](https://discourse.sensu.io/t/passing-variables-to-an-external-command/718/1 "2016-11-14T16:37:23Z")

</div>

Hi guys

I’m writing a script that automatically generates an issue in Atlassian Jira and I need to , or I’d like to, to pass some information to the script I’m executing from the handler.  
It would be nice if I can pass for example which is the issue, let’s say, server down or whatever the problem is, is that possible?

An example of what I’d like to do:  
{  
“handlers”: {  
“jira\_test\_issue”: {  
“type”: “pipe”,  
“command”: “/etc/sensu/handlers/create-issue.sh $SENSU\_VAR1 $SENSU\_VAR2”  
}  
}  
}

Them from the script I could take those variables and generate the Ticket with some extra information.

Thank you for your time and support  
Regards

---

<div class="post-metadata">

**Author:** ![Josh\_Pasqualetto](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@Josh\_Pasqualetto](https://discourse.sensu.io/u/Josh_Pasqualetto)\
**Post date:** [November 14, 2016, 7:32pm UTC](https://discourse.sensu.io/t/passing-variables-to-an-external-command/718/2 "2016-11-14T19:32:38Z")

</div>

Hey,

Basically you want to add a variable to your client definition then you can access it in your command there like ::my\_sensu\_var:::

Read up on it here: [https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution](https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution)

Thanks,

Josh

> **···**
>
> On Mon, Nov 14, 2016 at 9:37 AM, Kernel Panic [netwarrior863@gmail.com](mailto:netwarrior863@gmail.com) wrote:
> 
> > Hi guys
> > 
> > I’m writing a script that automatically generates an issue in Atlassian Jira and I need to , or I’d like to, to pass some information to the script I’m executing from the handler.  
> > It would be nice if I can pass for example which is the issue, let’s say, server down or whatever the problem is, is that possible?
> > 
> > An example of what I’d like to do:  
> > {  
> > “handlers”: {  
> > “jira\_test\_issue”: {  
> > “type”: “pipe”,  
> > “command”: “/etc/sensu/handlers/create-issue.sh $SENSU\_VAR1 $SENSU\_VAR2”  
> > }  
> > }  
> > }
> > 
> > Them from the script I could take those variables and generate the Ticket with some extra information.
> > 
> > Thank you for your time and support  
> > Regards

---

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [November 16, 2016, 4:27pm UTC](https://discourse.sensu.io/t/passing-variables-to-an-external-command/718/3 "2016-11-16T16:27:30Z")

</div>

Hi Joshua  
Maybe I did not myself clearn, for example in nagios I have a variable call $HOSTNAME$ which contains the name of the hostname of the client being checked, what I want is  
to pass as an argument to may script that information… is that possible?

For example reading /vol2/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-mailer-1.0.0/bin/handler-mailer.rb I found this:

headers = {

‘X-Sensu-Host’ =\> (@event[‘client’][‘name’]).to\_s,

‘X-Sensu-Timestamp’ =\> Time.at(@event[‘check’][‘issued’]).to\_s,

‘X-Sensu-Address’ =\> (@event[‘client’][‘address’]).to\_s,

‘X-Sensu-Check-Name’ =\> (@event[‘check’][‘name’]).to\_s,

‘X-Sensu-Status’ =\> status\_to\_string.to\_s,

‘X-Sensu-Occurrences’ =\> (@event[‘occurrences’]).to\_s

}

So the mailer takes the client name from somewhere, maybe from the sensu-handler include files, with this information, the mail is sent with all the information , hostname having the problem,  
the state of the alert and so on, I want to do something similiar with my script, where is or from where can I get the variable that tells me which node is being executed?

Thanks  
Regards

> **···**
>
> El lunes, 14 de noviembre de 2016, 16:32:39 (UTC-3), Joshua Pasqualetto escribió:
> 
> > Hey,
> 
> > Basically you want to add a variable to your client definition then you can access it in your command there like ::my\_sensu\_var:::
> 
> > Read up on it here: [https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution](https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution)
> 
> > Thanks,
> 
> > Josh
> 
> > On Mon, Nov 14, 2016 at 9:37 AM, Kernel Panic [netwar...@gmail.com](mailto:netwar...@gmail.com) wrote:
> > 
> > > Hi guys
> > > 
> > > I’m writing a script that automatically generates an issue in Atlassian Jira and I need to , or I’d like to, to pass some information to the script I’m executing from the handler.  
> > > It would be nice if I can pass for example which is the issue, let’s say, server down or whatever the problem is, is that possible?
> > > 
> > > An example of what I’d like to do:  
> > > {  
> > > “handlers”: {  
> > > “jira\_test\_issue”: {  
> > > “type”: “pipe”,  
> > > “command”: “/etc/sensu/handlers/create-issue.sh $SENSU\_VAR1 $SENSU\_VAR2”  
> > > }  
> > > }  
> > > }
> > > 
> > > Them from the script I could take those variables and generate the Ticket with some extra information.
> > > 
> > > Thank you for your time and support  
> > > Regards
> 
> >

---

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [November 17, 2016, 4:09pm UTC](https://discourse.sensu.io/t/passing-variables-to-an-external-command/718/4 "2016-11-17T16:09:41Z")

</div>

By the way, anyone using this?

> **[GitHub - Yelp/sensu\_handlers: Custom Sensu Handlers to support a multi-tenant...](https://github.com/Yelp/sensu_handlers)**
>
> Custom Sensu Handlers to support a multi-tenant environment, allowing checks themselves to emit the type of handler behavior they need in the event json - GitHub - Yelp/sensu\_handlers: Custom Sensu...

Thanks  
Regards

> **···**
>
> El miércoles, 16 de noviembre de 2016, 13:27:31 (UTC-3), Kernel Panic escribió:
> 
> > headers = {
> 
> > ‘X-Sensu-Host’ =\> (@event[‘client’][‘name’]).to\_s,
> > 
> > ‘X-Sensu-Timestamp’ =\> Time.at(@event[‘check’][‘issued’]).to\_s,
> > 
> > ‘X-Sensu-Address’ =\> (@event[‘client’][‘address’]).to\_s,
> > 
> > ‘X-Sensu-Check-Name’ =\> (@event[‘check’][‘name’]).to\_s,
> > 
> > ‘X-Sensu-Status’ =\> status\_to\_string.to\_s,
> > 
> > ‘X-Sensu-Occurrences’ =\> (@event[‘occurrences’]).to\_s
> 
> > > Hey,
> 
> > > Basically you want to add a variable to your client definition then you can access it in your command there like ::my\_sensu\_var:::
> 
> > > Read up on it here: [https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution](https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution)
> 
> > > Thanks,
> 
> > > Josh
> 
> > > On Mon, Nov 14, 2016 at 9:37 AM, Kernel Panic [netwar...@gmail.com](mailto:netwar...@gmail.com) wrote:
> > > 
> > > > Hi guys
> > > > 
> > > > I’m writing a script that automatically generates an issue in Atlassian Jira and I need to , or I’d like to, to pass some information to the script I’m executing from the handler.  
> > > > It would be nice if I can pass for example which is the issue, let’s say, server down or whatever the problem is, is that possible?
> > > > 
> > > > An example of what I’d like to do:  
> > > > {  
> > > > “handlers”: {  
> > > > “jira\_test\_issue”: {  
> > > > “type”: “pipe”,  
> > > > “command”: “/etc/sensu/handlers/create-issue.sh $SENSU\_VAR1 $SENSU\_VAR2”  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > Them from the script I could take those variables and generate the Ticket with some extra information.
> > > > 
> > > > Thank you for your time and support  
> > > > Regards
> 
> > >
> 
> > Hi Joshua  
> > Maybe I did not myself clearn, for example in nagios I have a variable call $HOSTNAME$ which contains the name of the hostname of the client being checked, what I want is  
> > to pass as an argument to may script that information… is that possible?
> > 
> > For example reading /vol2/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-mailer-1.0.0/bin/handler-mailer.rb I found this:
> > 
> > }
> > 
> > So the mailer takes the client name from somewhere, maybe from the sensu-handler include files, with this information, the mail is sent with all the information , hostname having the problem,  
> > the state of the alert and so on, I want to do something similiar with my script, where is or from where can I get the variable that tells me which node is being executed?
> > 
> > Thanks  
> > Regards
> > 
> > El lunes, 14 de noviembre de 2016, 16:32:39 (UTC-3), Joshua Pasqualetto escribió:

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [November 19, 2016, 3:17am UTC](https://discourse.sensu.io/t/passing-variables-to-an-external-command/718/5 "2016-11-19T03:17:26Z")

</div>

Me 🙂

> **···**
>
> On Thu, Nov 17, 2016 at 8:09 AM, Kernel Panic [netwarrior863@gmail.com](mailto:netwarrior863@gmail.com) wrote:
> 
> > By the way, anyone using this?
> > 
> > [https://github.com/Yelp/sensu\_handlers](https://github.com/Yelp/sensu_handlers)
> > 
> > Thanks  
> > Regards
> > 
> > El miércoles, 16 de noviembre de 2016, 13:27:31 (UTC-3), Kernel Panic escribió:
> > 
> > > headers = {
> 
> > > ‘X-Sensu-Host’ =\> (@event[‘client’][‘name’]).to\_s,
> > > 
> > > ‘X-Sensu-Timestamp’ =\> Time.at(@event[‘check’][‘issued’]).to\_s,
> > > 
> > > ‘X-Sensu-Address’ =\> (@event[‘client’][‘address’]).to\_s,
> > > 
> > > ‘X-Sensu-Check-Name’ =\> (@event[‘check’][‘name’]).to\_s,
> > > 
> > > ‘X-Sensu-Status’ =\> status\_to\_string.to\_s,
> > > 
> > > ‘X-Sensu-Occurrences’ =\> (@event[‘occurrences’]).to\_s
> 
> > > > Hey,
> 
> > > > Basically you want to add a variable to your client definition then you can access it in your command there like ::my\_sensu\_var:::
> 
> > > > Read up on it here: [https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution](https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution)
> 
> > > > Thanks,
> 
> > > > Josh
> 
> > > > On Mon, Nov 14, 2016 at 9:37 AM, Kernel Panic [netwar...@gmail.com](mailto:netwar...@gmail.com) wrote:
> > > > 
> > > > > Hi guys
> > > > > 
> > > > > I’m writing a script that automatically generates an issue in Atlassian Jira and I need to , or I’d like to, to pass some information to the script I’m executing from the handler.  
> > > > > It would be nice if I can pass for example which is the issue, let’s say, server down or whatever the problem is, is that possible?
> > > > > 
> > > > > An example of what I’d like to do:  
> > > > > {  
> > > > > “handlers”: {  
> > > > > “jira\_test\_issue”: {  
> > > > > “type”: “pipe”,  
> > > > > “command”: “/etc/sensu/handlers/create-issue.sh $SENSU\_VAR1 $SENSU\_VAR2”  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > Them from the script I could take those variables and generate the Ticket with some extra information.
> > > > > 
> > > > > Thank you for your time and support  
> > > > > Regards
> 
> > > >
> 
> > > Hi Joshua  
> > > Maybe I did not myself clearn, for example in nagios I have a variable call $HOSTNAME$ which contains the name of the hostname of the client being checked, what I want is  
> > > to pass as an argument to may script that information… is that possible?
> > > 
> > > For example reading /vol2/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-mailer-1.0.0/bin/handler-mailer.rb I found this:
> > > 
> > > }
> > > 
> > > So the mailer takes the client name from somewhere, maybe from the sensu-handler include files, with this information, the mail is sent with all the information , hostname having the problem,  
> > > the state of the alert and so on, I want to do something similiar with my script, where is or from where can I get the variable that tells me which node is being executed?
> > > 
> > > Thanks  
> > > Regards
> > > 
> > > El lunes, 14 de noviembre de 2016, 16:32:39 (UTC-3), Joshua Pasqualetto escribió:

---

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [November 19, 2016, 1:05pm UTC](https://discourse.sensu.io/t/passing-variables-to-an-external-command/718/6 "2016-11-19T13:05:02Z")

</div>

Hehe, Thank you Kyle.

Regards

> **···**
>
> On 11/19/2016 12:17 AM, Kyle Anderson wrote:
> 
> > Me 🙂
> > 
> > On Thu, Nov 17, 2016 at 8:09 AM, Kernel Panic \<netwarrior863@gmail.com \> \<mailto:netwarrior863@gmail.com\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;By the way, anyone using this?
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;[GitHub - Yelp/sensu\_handlers: Custom Sensu Handlers to support a multi-tenant environment, allowing checks themselves to emit the type of handler behavior they need in the event json](https://github.com/Yelp/sensu_handlers)  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[https://github.com/Yelp/sensu\_handlers&gt](https://github.com/Yelp/sensu_handlers&gt);
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Thanks  
> > &nbsp;&nbsp;&nbsp;&nbsp;Regards
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;El miércoles, 16 de noviembre de 2016, 13:27:31 (UTC-3), Kernel \> Panic escribió:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hi Joshua  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maybe I did not myself clearn, for example in nagios I have a  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variable call $HOSTNAME$ which contains the name of the  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostname of the client being checked, what I want is  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to pass as an argument to may script that information.. is  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that possible?
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For example reading  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/vol2/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-mailer-1.0.0/bin/handler-mailer.rb  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I found this:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;headers = {
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'X-Sensu-Host' =\> (@event['client']['name']).to\_s,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'X-Sensu-Timestamp' =\> Time.at(@event['check']['issued']).to\_s,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'X-Sensu-Address' =\> (@event['client']['address']).to\_s,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'X-Sensu-Check-Name' =\> (@event['check']['name']).to\_s,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'X-Sensu-Status' =\> status\_to\_string.to\_s,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'X-Sensu-Occurrences' =\> (@event['occurrences']).to\_s  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;So the mailer takes the client name from somewhere, maybe  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from the sensu-handler include files, with this information,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the mail is sent with all the information , hostname having  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the problem,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the state of the alert and so on, I want to do something  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;similiar with my script, where is or from where can I get the  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variable that tells me which node is being executed?
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regards
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;El lunes, 14 de noviembre de 2016, 16:32:39 (UTC-3), Joshua \> Pasqualetto escribió:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hey,
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Basically you want to add a variable to your client  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;definition then you can access it in your command there  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;like ::my\_sensu\_var:::
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read up on it here:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution](https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution)  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<[https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution&gt](https://sensuapp.org/docs/latest/reference/checks.html#check-token-substitution&gt);
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Josh
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On Mon, Nov 14, 2016 at 9:37 AM, Kernel Panic \> \<netwar...@gmail.com\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hi guys
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I'm writing a script that automatically generates an  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;issue in Atlassian Jira and I need to , or I'd like  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to, to pass some information to the script I'm  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;executing from the handler.  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It would be nice if I can pass for example which is  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the issue, let's say, server down or whatever the  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;problem is, is that possible?
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An example of what I'd like to do:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"handlers": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"jira\_test\_issue": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type": "pipe",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command":  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"/etc/sensu/handlers/create-issue.sh $SENSU\_VAR1  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$SENSU\_VAR2"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Them from the script I could take those variables and  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generate the Ticket with some extra information.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thank you for your time and support  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regards
