This is how I'm executing the check:
Code: Select all
php check_xml.php -u https://example.org/xml -k list-item[bonder_status][state] -s upCode: Select all
<?xml version="1.0" encoding="utf-8"?>
<root>
<list-item>
<id>5</id>
<tuning></tuning>
<bonder_status>
<state>up</state>
</bonder_status>
</list-item>
</root>
Code: Select all
CRITICAL - Value 'Array' did not match 'up'I don't think I'm using this wrong, I've tried every format I can think of passing in the values. I don't seem to be able to find any examples of actually using check_xml.php this way and the documentation is as minimal as can be.
Anyone have any hints?