BlackCrystal
BlackCrystal

Reputation: 129

How to monitor virtual IP with zabbix?

in some cluster environments, there are pair servers that are HA 2 by 2. for example i have server1 with IP 22.1.1.1 and server2 with IP 22.1.1.2.
server1 is giving service and server2 is standby. there is this virtual IP 22.1.1.3 that other servers connect to it to get services from server1 and server2.

now i need to monitor this virtual IP to see if it is up and other servers outside its VLAN can connect to it. how i can do this in zabbix?

i don't have an actual physical server to create in zabbix according to this question. i tried to create one but i got errors. also this question is asked 3 years ago. is there any new features i can use to solve this problem?

Upvotes: 0

Views: 1817

Answers (2)

Simone Zabberoni
Simone Zabberoni

Reputation: 2113

You can create a host with agent ip 22.1.1.3 and monitor it in agentless mode.

You can ping it (icmpping), connect to a tcp port that you know it's open (net.tcp.service) or, in case of a web service, do a http call with the http agent and react accordingly.

Just create the correct items/templates according to the simple check and http agent documentation.

Upvotes: 1

Richlv
Richlv

Reputation: 4143

You do not need a physical server to create a host.

You can create a host with the target IP address and use various items against it - based on your question, you do not need agent items, but some other (remote) type.

Upvotes: 1

Related Questions