(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
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
Comment