Ad Widget

Collapse

How to execute a command as a part of an item?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steve.enoch
    Junior Member
    • Jan 2012
    • 4

    #1

    How to execute a command as a part of an item?

    I need to be able to kick off a process/command on a monitored host using zabbix, but it looks like zabbix only lets you do this using external checks which only kicks off a script on the server not on the host. I have seen that zabbix allows for you to kick execute a command on the host in a step, when a trigger is fired. It seems that I should be able to do this in an item as well.

    Is there a way to do this that I am missing or is there a standard work-around for this scenario?

    Thanks,
    Steve
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    If you have zabbix agent on that host, you can use custom parameters to run a script to get an item value.
    Check the documentation for details.

    Regards,
    JBo

    Comment

    • steve.enoch
      Junior Member
      • Jan 2012
      • 4

      #3
      Thanks JBo, this looks like what I was looking for!

      Comment

      • trikke
        Senior Member
        • Aug 2007
        • 140

        #4
        Assuming u have the agent on the host, you can as well use then system.run[<your command here>] key. You msut enable EnableRemoteCommands=1 in the agent configuration file, though!

        Greets
        Patrick

        Comment

        Working...