configsync.localconfigtime via snmp
Hi,
I'm running LTM v11.3 and trying to make use of the new feature of custom SNMP MIBs (ie creating my own OID to return data not normally in the MIB).
The data I'm trying to gather is the date/time of the last config change (configsync.localconfigtime in the database), to use in a nagios check (SNMP GET).
Unfortunately, the only way I can see to pull this data is via tmsh (list sys db configsync.localconfigtime), which works from the command line. The problem is, that because the BigIP LTM runs SELinux, when this is executed by the snmp daemon this results in a context mismatch (and therefore I get the message -- couldn't execute "tmsh": permission denied).
In my custom_mib.tcl I use the following statement...
set config_status [catch {exec /usr/bin/tmsh -c "list sys db configsync.localconfigtime one-line" | cut -d\" -f2} config]
executing other linux command line programs works as expected (eg. exec date +%s).
Is there any other way of getting this data (other than making "heavyweight" calls via SOAP, etc)
Rob