Zabbix 3.4.7 on Centos7
Have two NAS units that we are trying to set up monitoring on using regular expression. On the one unit, everything worked just like it should have, all enabled and when tested worked just as we expected. On the next one, that we tried to set up it comes back with "Not supported" "cannot compile regular expression". We did a cut and paste from the tests that worked, that did not work. We then deleted the test that were not working and regenerated them using cut and paste from the good tests, that did work, And even though there are a couple of words that get changed in the second regexp, we even tried leaving the words the same just to see, still would not work.
Both units are in the same group
these are the regexp that we are using
log[/var/log/messages,"\W*((?i)split-brain(?-i))\W",,,skip,,]
This one does have adifference on the one machine it is "Primary\/Secondary", on the other it is "Secondary\/Primary"
log[/var/log/proc.drbd,"^((?! ns:|version:|srcversion:|10: cs:WFConnection))((?!Connected ro:Primary\/Secondary ds:UpToDate\/UpToDate ).)*$",,,,,]
And yes I know that I don't necessarily need all those comma's but it helps me to keep things straight.
Have two NAS units that we are trying to set up monitoring on using regular expression. On the one unit, everything worked just like it should have, all enabled and when tested worked just as we expected. On the next one, that we tried to set up it comes back with "Not supported" "cannot compile regular expression". We did a cut and paste from the tests that worked, that did not work. We then deleted the test that were not working and regenerated them using cut and paste from the good tests, that did work, And even though there are a couple of words that get changed in the second regexp, we even tried leaving the words the same just to see, still would not work.
Both units are in the same group
these are the regexp that we are using
log[/var/log/messages,"\W*((?i)split-brain(?-i))\W",,,skip,,]
This one does have adifference on the one machine it is "Primary\/Secondary", on the other it is "Secondary\/Primary"
log[/var/log/proc.drbd,"^((?! ns:|version:|srcversion:|10: cs:WFConnection))((?!Connected ro:Primary\/Secondary ds:UpToDate\/UpToDate ).)*$",,,,,]
And yes I know that I don't necessarily need all those comma's but it helps me to keep things straight.