I have installed fping on all hosts in addition I defined it in userparameter and is working excellent but there is an issue that it does not work while zabbix agent has stopped on that server so it is showing server is not availablr although just zabbix_agent is just stopped . How can solve this issue ?
Ad Widget
Collapse
How can use fping while zabbix_agent is not available
Collapse
X
-
Hi,
What about schedule a script to run fping and send the output to a local log file ? In this way, FPING would work independently of Zabbix Agent. Now in the Zabbix UI, you can create an Item to read the log file in the host and trigger an event based on what you want.
In addition would be good create a NoData event to be notified when Zabbix is not able to reach the log file for any reason.
Does it make sence for your scenario ?
Comment
-
Hi,
What about schedule a script to run fping and send the output to a local log file ? In this way, FPING would work independently of Zabbix Agent. Now in the Zabbix UI, you can create an Item to read the log file in the host and trigger an event based on what you want.
In addition would be good create a NoData event to be notified when Zabbix is not able to reach the log file for any reason.
Does it make sence for your scenario ?
Thanks. But as I said before that I have installed fping package on OS in addition using fping as userparameter so it is working with zabbix agent. How can use fping while zabbix agent is not available ? .Comment
-
fping as userparameter, nor any other userparameter item will work when the agent is down. If you have network access to ping the server, the simple icmping check being OK with the zabbix-agent not responding says your server is up but the agent is down. If you can't use the simple icmping check, you could use a cronned script on the server to send date +"%s" via zabbix_sender. Then test that item for nodata or no change.Comment
-
1- Dost it your mean use ICMpping instead of userparameter with fping ?fping as userparameter, nor any other userparameter item will work when the agent is down. If you have network access to ping the server, the simple icmping check being OK with the zabbix-agent not responding says your server is up but the agent is down. If you can't use the simple icmping check, you could use a cronned script on the server to send date +"%s" via zabbix_sender. Then test that item for nodata or no change.
2 - Does ICMP ping work even zabbix-agent stopped ?
3- As I find out ICMPPING just work and ping from zabbix server interface but I want to ping from each host interfaceComment
-
1 - Yes, all simple checks are designed for things that don't have an agent. The work if the target test is good and the network allows the traffic.,
2 - yes
3 - what are you pinging "from" each host interface? The simple icmping test will ping from the zabbix server (or proxy if it's used) to the specified target. What interface is used for that ping would depend on it's routing tables. You could ping each interfaces default gateway to see if it's on it's network segment.
I always look at testing from the business client perspective. My users don't care if a server can ping out, they care if they can reach it for their work. If that means a test from outside, then I need a test from something like a cloud proxy to see if outside users can get to my service. My zabbix server getting to a service will work even if my ISP is down.Comment
Comment