Ad Widget

Collapse

How do I have the zabbix agent ping something?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maxburn
    Member
    • Sep 2019
    • 48

    #1

    How do I have the zabbix agent ping something?

    What is the official / modern way to get a zabbix agent to ping something the zabbix server can't see and send pass/fail to zabbix server?

    Edit; putting these lines back in my zabbix agent config got me running again. Just wondering why they got wiped out now, is this going away soon or do I need to do this another way?
    Code:
    UserParameter=ping.host[*],ping $1 -n 1 |find "TTL=">NUL && echo 1 || echo 0
    Timeout=15
    AllowKey=system.run[ping.host*]

    ---------------------------------------------------------------------------
    I had this working for years, but now I've upgraded to v7 and now I have a bunch of items failing, showing "Unsupported item key" in zabbix front end, and "active check "ping.host[10.100.0.101]" is not supported: Unsupported item key."

    My Old post; https://www.zabbix.com/forum/zabbix-...-zabbix-server

    2011 feature request; https://support.zabbix.com/browse/ZBXNEXT-739

    Reddit post with similar problem, but link to zabbix docs is dead; https://www.reddit.com/r/zabbix/comm..._active_agent/
    Last edited by Maxburn; 05-03-2025, 19:42.
Working...