Search found 2 matches
- Tue Feb 09, 2021 5:14 pm
- Forum: Open Source Nagios Projects
- Topic: difficulty having check_xml.php match a string value
- Replies: 2
- Views: 1413
Re: difficulty having check_xml.php match a string value
Alas, and naturally, I figured it out shortly after posting. Dumping the entire XML array helped me to see that list-item is an array and therefore I have to add a reference to which element I want it to look at. This works: php check_xml.php -u https://example.org -k list-item["0"]["...
- Tue Feb 09, 2021 4:43 pm
- Forum: Open Source Nagios Projects
- Topic: difficulty having check_xml.php match a string value
- Replies: 2
- Views: 1413
difficulty having check_xml.php match a string value
I'm trying to use check_xml.php to match a string value. Reading the php, I've figured out that keys are meant to be formatted as start[level][keyname]. This is how I'm executing the check: php check_xml.php -u https://example.org/xml -k list-item[bonder_status][state] -s up This is a simplified ver...