shakespear wrote: > > flgibert wrote: > > Well, it appears you are right, I didn't even think about this possibility. > > Thanks. > > > Its astonishing "rpm -qa" and "dpkg -i" provide some nice interfaces to get > the software version. > > Maybe someone can write > > - script for net-snmp, that returns the output of rpm -qa or dpkg -i > - write a collector? for zenoss filling the softwarelist > > what do you think? Any developers here :) > > cheers, christian
argl - i meant "dpkg -l" something like this: - a script "getsw" lokal on monitored machine doing something like this 1. dpkg -l | cut -b5-43,44-86 if oid = HOST-RESOURCES-MIB::hrSWInstalledIndex return <linenumber> elsif oid = HOST-RESOURCES-MIB::hrSWInstalledName return <line> - net-snmp extended with something like pass HOST-RESOURCES-MIB::hrSWInstalledIndex <to script getsw> pass HOST-RESOURCES-MIB::hrSWInstalledName <to script getsw> Solaris returns with snmpwalk this: HOST-RESOURCES-MIB::hrSWInstalledName.1 = STRING: "SUNWocfd" HOST-RESOURCES-MIB::hrSWInstalledName.2 = STRING: "SUNWcsu" HOST-RESOURCES-MIB::hrSWInstalledName.3 = STRING: "SUNWcsr" HOST-RESOURCES-MIB::hrSWInstalledName.4 = STRING: "SUNWcsl" HOST-RESOURCES-MIB::hrSWInstalledName.5 = STRING: "SUNWcnetr" . . HOST-RESOURCES-MIB::hrSWInstalledIndex.1 = INTEGER: 1 HOST-RESOURCES-MIB::hrSWInstalledIndex.2 = INTEGER: 2 HOST-RESOURCES-MIB::hrSWInstalledIndex.3 = INTEGER: 3 HOST-RESOURCES-MIB::hrSWInstalledIndex.4 = INTEGER: 4 HOST-RESOURCES-MIB::hrSWInstalledIndex.5 = INTEGER: 5 . . . ------------------------ Christian Brem -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=8272#8272 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
