Trying to implement adaptive monitoring i needed to define custom variables in my services/objects that have dummy values at startup and are updated during the monitoring process. So i defined a service
What i intended to do, was, to change the custom OID variable accordingly using the CHANGECUSTOM_SVC_VAR external command, and, then, issue a SCEDULE_SVC_CHECK external command for the service to do an on-demand check, using the custom $SERVICEOID$ macro with mysnmp_command to pass the correct OID every time.
In my nagios.log file I could see both the received extenral commands:
 EXTERNAL COMMAND: CHANGE_CUSTOM_SVC_VAR;SERVER1:Terminal;_OID;.18.104.22.168.4.1.5522.214.171.124.29.34.0
 EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;SERVER1:Terminal;1110741500
The forced service check is executed but the $SERVICEOID$ macro retains the initial 'dummy' value as if the CHANGECUSTOM_SVC_VAR external had not been issued.
I have disabled the large_installation_tweaks but no change.
Has anyone faced the same problem? Could you suggest me any possible solutions?
Thank you in advance