Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alerting #516

Closed
carmenqueasyy opened this issue Jan 14, 2022 · 6 comments
Closed

Alerting #516

carmenqueasyy opened this issue Jan 14, 2022 · 6 comments

Comments

@carmenqueasyy
Copy link

Hi team, i have some question. How can i alerting myself about run specific script on script-server? Situation: My mates able to run scripts with security risk, and I should receive email about it, example : " %user run %scriptname with %somevar ". I can add function email alerting in my "danger" script, but i don't know how get USERNAME current webUI user. Can you suggest a solution?

@bugy
Copy link
Owner

bugy commented Jan 14, 2022

Hi @carmenqueasyy could you check this one please?
#200 (comment)

Apparently this is undocumented feature 😅

@carmenqueasyy
Copy link
Author

Hi @carmenqueasyy could you check this one please? #200 (comment)

Apparently this is undocumented feature sweat_smile
Exactly what is needed!!! Thank you very much for your work!

@carmenqueasyy
Copy link
Author

@bugy Where can i read full list "notificationParameters" ?

@bugy
Copy link
Owner

bugy commented Jan 14, 2022

I think this option is called "notification_fields" now (not notificationParameters).
All allowed fields:

  • 'execution_id'
  • 'pid'
  • 'script_name'
  • 'user'
  • 'exit_code'

@carmenqueasyy
Copy link
Author

@bugy alert don't work with cyrilic symbol in name script, and i cant disable notifyOnStart - ( "notifyOnStart": false - not working). Can i get arguments passed in my script?

@bugy
Copy link
Owner

bugy commented Jan 14, 2022

please check this one
Instead of audit name you could also use ${auth.username}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants