Ad Widget

Collapse

Zabbix server caching UserParameter output?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • avlgavlg
    Junior Member
    • Aug 2019
    • 2

    #1

    Zabbix server caching UserParameter output?

    (This is for Zabbix 4.0.39)

    Hi all,

    I've got a script, call it "check_app.sh", that I'm running on a host. It tests our application's behavior, and if it is all good, the script prints "App is UP". If there's a problem, it prints "App is DOWN".
    So to monitor with zabbix, I create a user parameter line in the agent.conf file on the host(s) to the effect of my.app.check,check_app.sh.

    So, I stop the app, and run my check_app script; it prints "App is DOWN".
    I run zabbix_agentd -t my.app.check on the monitored host, I get "[t | App is DOWN]".
    I get on the zabbix server itself, and run zabbix_get -s 172.20.50.153(ip of app host) -p 10050 -k my.app.check, I get "App is DOWN".

    Then-I start the application up again.

    check_app.sh on the host reports "App is UP".
    zabbix_agentd -t my.app.check on the host reports "[t | App is UP]".
    zabbix_get -s 172.20.50.153 -p 10050 -k my.app.check, run on the zabbix server...still returns "App is DOWN".

    Is there some caching of values that I'm missing?

    Thanks,

    -Jeff
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Hi, I'm not aware of any caching like that. But you could increase the logging level on the agent and then try again to better see from the logs what's happening.

    (And, of course double-check that you are using the correct IP address.)

    Markku

    Comment

    Working...