Ad Widget

Collapse

passing user name/media to script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabanist
    Junior Member
    • Jun 2015
    • 16

    #1

    passing user name/media to script

    I don't see a macro to achieve this, but am hoping it is doable:

    When I create a script a user can run against a host (by clicking on it, re: traceroute, etc.), I would like to pass a username or media type to the script of the person activating it. Some of the actions are to perform automated maintenance which could take andwhere from 3-15 minutes to complete. I'd like to be able to alert the user that the script comlpeted successfully or not.

    Anyone know of a way to do something like the following?

    myscript.sh -p {HOST.CONN} -u {USER.NAME} -e {USER.EMAIL}
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Nope. USER macro is not available https://www.zabbix.com/documentation...ed_by_location
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...