I'm wondering if it is possible to collect information I get with a python script into NPM somehow?
Our previous monitoring system allowed me to define an 'attribute' and then populate it with a tcpsock call. It proved to be very useful in a number of situations. So far I'm not seeing any similar mechanism in NPM however.
Right now for example, I have a need to monitor which routers have a specific file present in their flash. I can easily do this with a python script which will parse the results of 'dir bootflash:' looking for the filename. But I don't see any way to get that information into NPM. I'm pretty new to NPM so I could be missing something obvious.
I know there is an snmp oid I can walk to get the contents of the flash, but I don't see how I could construct a universal poller on that oid that would return just that filename if it exists. It would return the entire contents of flash.
If it was possible to do it with the python script it would be better because that would generalize to any future need that I didn't have an oid for.
Thanks.