Hi Everyone,
I'm new to zabbix and I love it so far.
With a little googling I was able to get everything done the way I like it (the quick start documentation is nice!).
Now, the reason I post here is that I want the zabbix server to check wether it can actually talk to the outside world. I'm monitoring general availability of hosts and if the zabbix server's data center loses its connection to the rest of the world, it obviously cannot check the monitored servers. Since my zabbix server is in another DC than my servers, it might happen, allthough it probably won't on a regular basis. My simple solution: if you cannot ping google, it's probably your fault and you're the one that's offline, not everyone else, so don't send emails for every server (emails are given to exim locally which will send them via a smarthost when it can talk to it again).
How would I implement that? I went for a trigger on a host group-template that checks the ping and sets the information with the host availability-trigger depending on said "is google reachable"-trigger. While that worked, it also seemed to mean that a ping check was made for every host that had said item & trigger activated. Is there a smarter way to do that?
I thought of adding a single host with a ping check that triggers a custom action on the zabbix server which will write a file if "google is offline" (and removes the file if I can ping google again) and than have a custom check in an item on the zabbix server for each monitored server that just checks wether said file exists. That'd probably work and I wouldn't have the multitude of pings, but I'm wondering if there's a solution that is more straigh forward. As I said I'm new to zabbix and while I think I get the basic system, I'm far from a professional.
Any input is appreciated.
Thanks
jan
I'm new to zabbix and I love it so far.
With a little googling I was able to get everything done the way I like it (the quick start documentation is nice!).
Now, the reason I post here is that I want the zabbix server to check wether it can actually talk to the outside world. I'm monitoring general availability of hosts and if the zabbix server's data center loses its connection to the rest of the world, it obviously cannot check the monitored servers. Since my zabbix server is in another DC than my servers, it might happen, allthough it probably won't on a regular basis. My simple solution: if you cannot ping google, it's probably your fault and you're the one that's offline, not everyone else, so don't send emails for every server (emails are given to exim locally which will send them via a smarthost when it can talk to it again).
How would I implement that? I went for a trigger on a host group-template that checks the ping and sets the information with the host availability-trigger depending on said "is google reachable"-trigger. While that worked, it also seemed to mean that a ping check was made for every host that had said item & trigger activated. Is there a smarter way to do that?
I thought of adding a single host with a ping check that triggers a custom action on the zabbix server which will write a file if "google is offline" (and removes the file if I can ping google again) and than have a custom check in an item on the zabbix server for each monitored server that just checks wether said file exists. That'd probably work and I wouldn't have the multitude of pings, but I'm wondering if there's a solution that is more straigh forward. As I said I'm new to zabbix and while I think I get the basic system, I'm far from a professional.
Any input is appreciated.
Thanks
jan

Comment