Using snmp trap receiver on Fedora (Linux)

First off install the net-snmp things:

sudo yum install net-snmp net-snmp-utils

After that it will run out of the box with the command:

sudo snmptrapd -A -d -n -Lf trap.log

Some interesting links:

http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Configuring_snmptrapd#Matching_SNMPv2_OIDs
http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html

internal error from PackageKit — packagekit Error Type:

If you get the below error then there is a bug files here.

Error Type:
Error Value: \’NoneType\’ object is unsubscriptable
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2280, in

main()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2277, in main
backend.dispatcher(sys.argv[1:])
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 600, in
dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 526, in
dispatch_command
self.refresh_cache()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1130, in
refresh_cache
self.yumbase.repos.populateSack(which=[repo.id], mdtype=\’metadata\’,
cacheonly=1)
File : /usr/lib/python2.5/site-packages/yum/repos.py, line 223, in
populateSack
self.doSetup()
File : /usr/lib/python2.5/site-packages/yum/repos.py, line 71, in doSetup
self.ayum.plugins.run(\’postreposetup\’)
File : /usr/lib/python2.5/site-packages/yum/plugins.py, line 178, in run
func(conduitcls(self, self.base, conf, **kwargs))
File : /usr/lib/yum-plugins/rpm-warm-cache.py, line 31, in postreposetup_hook
if commands[0] in (\’upgrade\’, \’install\’, \’remove\’):

And the solution is simply to remove:

yum-rpm-warm-cache with command:

yum remove yum-rpm-warm-cache

RPMFusion release for YUM.

For people who have used yum on Fedora, you must have seen that couple of packages that you require are on Livna and couple of them on DAG and some others on FreshRPMs and Dribble. And for those of you, who have tried to install the packages from all these repositories, I know it is difficult. The repo\’s never worked too well together.

So finallly there is a nice solution to all these problems, RPMFusion is the solution. This is a effort to merge the repo in all the four above mentioned repo. just now installed the repo and am updating my system and definately hope to get a lot lesser problems now. 🙂

So HAPPY installing new software and updates.