Getting together some web scenarios for work, and usually this hasn't been a problem -- once we patched and recompiled to fix the bug that kept searches from working across newlines... Anyway...
It's been pretty easy creating scenarios that match, say, the word "online", showing that some of our apps are online. When we don't get that match, the trigger goes off that the app is down.
I now have a situation where I need to do a negative match. In other words, I need the positive condition to be that the word "offline" does NOT appear in the page. If it does, we fire a trigger. This should be simple to do with a negative lookahead regex like this:
Unfortunately, Zabbix doesn't like this.
Anyone have any other ideas here? I know the Zabbix regex engine isn't the most robust, but this seems like something that should work.
It's been pretty easy creating scenarios that match, say, the word "online", showing that some of our apps are online. When we don't get that match, the trigger goes off that the app is down.
I now have a situation where I need to do a negative match. In other words, I need the positive condition to be that the word "offline" does NOT appear in the page. If it does, we fire a trigger. This should be simple to do with a negative lookahead regex like this:
.*((?![Oo]ffline).)*
Anyone have any other ideas here? I know the Zabbix regex engine isn't the most robust, but this seems like something that should work.
Comment