We recently started over with Centreon 21.10.1 to replace our Centreon 2.5.2 as a front-end for Nagios. While setting up the new system, we ran into a bug. In v2.5.2, we were able to escape the special character “!” in check command args for Services by host group. In v21.10.1, using “!” or “\!” as an arg value is simply stripped when saving configuratin. We have a very widespread SNMP community name that contains a “!” character.
The check command is quite simple “$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .18.104.22.168.4.1.322.214.171.124.126.96.36.199 -w $ARG2$ -c $ARG3$ -l 'Adv. Battery Capacity' -u '%'” with “$ARG1$ being the SNMP community string.
Best answer by itoussiesView original