PDA

View Full Version : Check Apache running on certain IP always returning 0


cermisch
22-11-2005, 12:16
Hello,

I am pretty new to Zabbix and still trying to figure out our setup.

I managed to check for SMTP and SSH service using the agent - that was pretty straight-forward. But now I want to check for http and https which only listens to a second IP on te same physical server.

After looking through the manual I came up with these two options:

Using the agent: check_service[http,83.220.131.80,80]
Using simple check: http,83.220.131.80

Both of the above checks always return 0 even though the webserver is running perfectly.

Any ideas what I am doing wrong? Thanks in advance...

btw: we are using Zabbix 1.0 on a suse linux 9.3 system; client is installed on a suse linux 10 with apache2 to be checked...

cermisch
22-11-2005, 12:27
I might add, that if I setup an own host for this IP in Zabbix and do a simple check http,83.220.131.80 if does return the correct value (1) for Apache.

Any ideas?

elkor
22-11-2005, 15:02
can you do a wget for index.html to the offending ipaddress manually from the zabbix server command line?

cermisch
22-11-2005, 15:12
the problem is solved...

we only opened up port 80 as the destination port on in the firewall. but the agent seems to wir for a response from apache with port 80 as the source port.

so allowing the server ip to contact itself with port 80 as source port solved the problem.