Ad Widget

Collapse

Guide that explains passive Zabbix agent executing a custom Bash script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sandra
    Junior Member
    • Jun 2020
    • 10

    #1

    Guide that explains passive Zabbix agent executing a custom Bash script?

    Dear all =)

    I would like to use the Zabbix Agent in passive mode, and have it execute the script /xabbix/check_example.sh every hour.

    Does anyone know of a guide that explains such a setup?

    Hugs
    Sandra =)


  • ysus
    Senior Member
    • Mar 2016
    • 100

    #2
    I don't think such "guide" exists because everything explained in documentation.I guess the output of your "check_example.sh" is a simple value? In this case you have 2 options:

    1. Create new "UserParameter=foobar,/xabbix/check_example.sh" in "/etc/zabbix/zabbix_agentd.conf" file. Create new item of "Zabbix Agent" type with Key=foobar

    2. Move your "check_example.sh" to "/usr/lib/zabbix/externalscripts/" folder. Create new item of "External check" with Key=check_example.sh

    Set update interval of 1h for above item.

    Comment

    Working...