|
From: Shawn B. <sb...@cs...> - 2006-05-25 19:06:54
|
See comments in line. On Thu, 2006-05-25 at 16:52 +0200, Wolfram Schlich wrote: > Hi Shawn, > > thanks for your answer. > I hope you don't mind me sending it to the list :-) > > * Badger, Shawn <SB...@cs...> [2006-05-25 16:23]: > > * Wolfram Schlich <li...@wo...> [2006-05-25 15:23]: > > > What IP address does the net.tcp.service[] check look at > > > by default when checking a service? > > > 127.0.0.1? 0.0.0.0? > > > > THe ip address of which ever host the item is placed under. > > That's not distinctive enough for me. > Let me outline my setup: > > Zabbix Server > ============= > > Running on machine A > -------------------- > > IP addresses: > 127.0.0.1 -- localhost > 192.168.0.50 -- machineA.example.com > 192.168.0.51 -- www.example.com > $92.168.0.52 -- ftp.example.com > > zabbix_server.conf: > ListenPort=10051 > > -> Listening on 0.0.0.0:10051 (is there a way to change this btw.?= You can change this to what ever you want. You change the zabbix_server.conf to whichever port you want that is open and then change the zabbix_agentd.conf the same on ServerPort value. > > Zabbix Agents > ============= > > Running on machine B > -------------------- > > IP addresses: > 127.0.0.1 -- localhost > 192.168.0.100 -- machineB.example.com > 192.168.0.101 -- mail.example.com > $92.168.0.102 -- news.example.com > > zabbix_agentd.conf: > ListenIP=192.168.0.100 > ListenPort=10050 > Server=192.168.0.50 > ServerPort=10051 > Hostname=machineB > > -> Listening on 192.168.0.100:10050 > > Running on machine A (the server itself) > ---------------------------------------- > > IP addresses: > 127.0.0.1 > [...] > > zabbix_agentd.conf: > ListenIP=127.0.0.1 > ListenPort=10050 > Server=127.0.0.1 > ServerPort=10051 > Hostname=machineA > > -> Listening on 127.0.0.1:10050 > > Zabbix Frontend > =============== > > Host "machineB" is configured as "machineB.example.com", > "Use IP address" is not enabled. > The FQDN "machineB.example.com" resolves to "192.168.0.100". > Host "machineB" has an item "net.tcp.service[smtp]". > Against what IP address does the Zabbix Agent run > the SMTP service check? The one that "machineB.example.com" > resolves to? The net.tcp.service[sntp] will poll port 25 on machineB which looks to be 192.168.0.100. > > Host "machineA" is configured as "machineA.example.com", > "Use IP address" is enabled, "IP address" is set to "127.0.0.1". > The FQDN "machineA.example.com" resolves to "192.168.0.50" > Host "machineA" has an item "net.tcp.service[http]". > Same question here: is the HTTP check run against "127.0.0.1", because > that's the IP address supplied for using "Use IP address", > or does it also use the IP address that the FQDN > "machineA.example.com" resolves to? It will use the 127.0.0.1 address in this instance because you overrode the DNS lookup for than hostname by typing in the IP address. > > Thanks in advance. > Best regards I hope this helps you out. |