From: Bruce F. <bfe...@ba...> - 2017-04-11 19:33:31
|
OK, this one has taken me a bit to track down. I updated my xymon config and devmon died. Below is the devmon/xymon info from the xymon hosts file: DEVMON:model(cisco;2960),except(all;ifName;ao:Gi1/0/[1-4]|Gi1/0/[7,8,9,10,11]|Gi1/0/[23,24,25,26,27,28,29,30,31,32,33,34]|Gi1/0/[45,46,47,48]) After I make a mod in that, I restart devmon. My init script executes devmon --readbbhosts to update the database. What I find in the DB, with the line above is: | switch | all | ifName | alarm | Gi1/0/[1-4]|Gi1/0/[7 | so the DB update is being truncated. Just for fun, I manually updated the DB with information as in the hosts and devmon is completely happy. Running devmon with the data above, and devmon exist with an error for the regex (correctly). when I use this regex: DEVMON:model(cisco;2960),except(all;ifName;ao:Gi1/0/[1-4]|Gi1/0/[7-11]|Gi1/0/[23-34]|Gi1/0/[45-48] the database loads correctly: | switch | all | ifName | alarm | Gi1/0/[1-4]|Gi1/0/[7-11]|Gi1/0/[23-34]|Gi1/0/[45-48] | and devmon still dies parsing the regex: Invalid [] range "7-1" in regex; marked by <-- HERE in m/^(Gi1/0/[1-4]|Gi1/0/[7-1 <-- HERE 1]|Gi1/0/[23-34]|Gi1/0/[45-48])$/ at /usr/local/devmon-0.3.1-beta1/modules/dm_tests.pm line 1853 bug or do I just not understand? |