I wanted to try to use web.page.regexp for my sites and ran into the issues. I won't tell the whole script, but I reduced it and want to show how to reproduce a bug.
I have a simple script called zabbixtest.php
<?php
echo "Passed\n";
#echo "Failed";
?>
and when I was trying to get the results with
while true; do /usr/bin/zabbix_get -s127.0.0.1 -p10050 -k"web.page.regexp[test.com,zabbixtest.php,80,Passed,6]"; sleep 1; done
I got the following
Passed�
Passed
Passed
Passed�
Passed
Passed�
Passed
Passed�
Passed
Passed�
as you see it's not possible to use web.page.regexp without fixing it a bit
I have a simple script called zabbixtest.php
<?php
echo "Passed\n";
#echo "Failed";
?>
and when I was trying to get the results with
while true; do /usr/bin/zabbix_get -s127.0.0.1 -p10050 -k"web.page.regexp[test.com,zabbixtest.php,80,Passed,6]"; sleep 1; done
I got the following
Passed�
Passed
Passed
Passed�
Passed
Passed�
Passed
Passed�
Passed
Passed�
as you see it's not possible to use web.page.regexp without fixing it a bit