etingof / snmpfwd

SNMP Proxy Forwarder
http://snmplabs.com/snmpfwd/
BSD 2-Clause "Simplified" License
67 stars 18 forks source link

Running a script from client #45

Open xaled1 opened 4 years ago

xaled1 commented 4 years ago

Got the multi-client multi-server configuration running based on community routing. Thank you for the great tool! Now I'd like to clarify one more thing - is it possible for client to run some shell/perl/python script based on requested OID and return the stdout from script as OID value? Something like in nagios nrpe?

etingof commented 4 years ago

Good progress! \o/

Unfortunately, I am not aware of external process invocation feature. However, it should not be hard to write one based on one of the existing plugins. The API is not documented (heh), but it should be reasonably easy to figure out.

If you create and consider sharing such a plugin - I'd be happy to merge it!

Otherwise I need to find some time to address that...

xaled1 commented 4 years ago

Ok, thanks, will see if I could write the plugin and will get back if I get stucked.

xaled1 commented 4 years ago

I looked at the existing plugins and unfortunately it is a bit out of my skills to get it done.