View Full Version : web.page.regexp = ZBX_NOTSUPPORTED?
bytesize
27-10-2006, 14:28
Hi,
I'm trying to use web.page.regexp but its being report as Not Supported by the agent which is v1.1.2. This is the section in my agent log:
004515:20061027:133123 In check_security()
004515:20061027:133123 Connection from [192.168.0.1]. Allowed servers [192.168.0.1]
004515:20061027:133123 Before read()
004515:20061027:133123 After read() 2 [57]
004515:20061027:133123 Got line:web.page.regexp[www.google.com, index.html, 80, Web, 2,]
004515:20061027:133123 Sending back:ZBX_NOTSUPPORTED
...and this is what I have defined as the item:
Description: Apache Response
Type: Zabbix Agent
Key: web.page.regexp[www.google.com, index.html, 80, Web, 2,]
Type: Text
Can anyone help me get this working? Thanks!
John
Please re-try without spaces.
bytesize
27-10-2006, 14:59
Hi - thanks for the fast response! Unfortunately its still happening...
005030:20061027:140506 Got line:web.page.regexp[www.google.com,index.html,80,Web,2,]
005030:20061027:140506 Sending back:ZBX_NOTSUPPORTED
John
bytesize
27-10-2006, 15:03
Aha, solved it - I removed the very last comma from the trigger and it works great now.
I want to implement this item in a template so all my hosts check their own webserver. However all my hosts are defined using IP address rather than hostname because they dont have valid DNS entries. So, I would like to set the template item up like this:
web.page.regexp[192.168.0.25,index.html,80,apache_running,2]
Is there a macro like {HOSTIP} that I can use?
Thanks,
John
bytesize
30-10-2006, 23:10
Hi,
Does anyone have any suggestions on how to do this? I really need to get this website monitoring working!
I need a way of specifying the IP address of a host in a template instead of the hostname.
Thanks,
John
It is not supported currently, however it is a very good suggestion.
bytesize
31-10-2006, 07:50
Hi Alexei,
Ah, okay - I'll just have to get some DNS sorted out, although specifying 127.0.0.1 in the template hosts seems to work, as it gets the remote agent to connect to the loopback interface when testing the webserver.
Once I get all this working, I'll post some instructions in the cookbook.
Thanks Alexei!
John
Heya
I cant seem to get this working at all atm, mind talking me through exactly how you got this to work?
Im using 1.1.3 atm and wanting to monitor sites on both windows and linux servers which have agents on them.
Testing from console It would seem the last char is getting dropped every time, resulting in a EOF when checked =\
/usr/local/bin/zabbix_get -s127.0.0.1 -p10050 -k "web.page.regexp[wadns.net,monitor/default.html,80,Working,6]"
Workin
any ideas?
shameless bump =\
Still cant get this working at all.
Hi, I also want to monitor a page that is not in the web root. For example www.website.com/folder/page.html. I didn't figure out how to set the item. The status is always unsupported. I use Zabbix 1.1.4.
web.page.regexp[www.website.com,Web/login.aspx,80,changed,7]
Maybe it's not supported by zabbix?
Hi,
It looks like it works if I write: web.page.regexp[www.website.com,/Web/login.aspx,80,changed,7]
(note the / to specify the web root). However, I can't make it work to test a SSL site on port 443. I always get EOF.