Ad Widget

Collapse

execute scripts on monitored hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • odecIT
    Junior Member
    • Oct 2013
    • 7

    #1

    execute scripts on monitored hosts

    I know that is possible to execute external scripts stored on the Zabbix server, but I want to execute a script on a hosts that is monitorized. It is possible? How?

    Thnak you very much.
  • tsalle
    Member
    Zabbix Certified Specialist
    • Oct 2012
    • 79

    #2
    You can use the UserParameter in the zabbix_agent config file on the monitored host :


    Then create an item for this host with the key specified in the UserParameter, and that's done !

    Example :
    UserParameter=my.script,/home/foo/my_script.sh

    And in Zabbix create an item with a key "my.script" for this host.

    Comment

    • odecIT
      Junior Member
      • Oct 2013
      • 7

      #3
      Thank you very much!

      I've tried to do it but I couldn't, but I think the reason is that our Zabbix installation was modified by another administrator and the Item configuration is not available, I can't see the option Item nor Create Item.

      Do you know how to enable this feature?

      Comment

      • odecIT
        Junior Member
        • Oct 2013
        • 7

        #4
        I've found it!!
        but with another name...

        But the problem now is that is "Not supported"...

        If I put the Item like Zabbix agent the result is that is "not supported", and if I put like Zabix agent (active) there is not any result.

        On the configuration of UserParameter, the script is stored on the Zabbix server, is that correct??

        The Zabbix version installed is 1.8.3

        Any idea??

        Thank you very much.

        Comment

        Working...