drewkerrigan/nagios-http-json

Operators

vabastiil opened this issue · 1 comments

Thank you for the great job with this project!

It would be nice to have option to use and operators.
It would produce critical only if both conditions are met.

Something like that:
-c "key1,1:10 & key2,1:5"
-c "key1,1:10" & -c "key2,1:5"

CRITICAL:
{
"key1": 1000,
"key2":6
}

NOT Critical:
{
"key1": 1000,
"key2":4
}

Seconded! We'd like to be able to construct Boolean expressions too. For example, one of our checks interrogates Travis CI's status JSON.

Usually their status.description is All Systems Operational, but some times it drops to Partially Degraded Service, which triggers an unnecessary alert for us. Wish, we could specify both strings as acceptable...