Re: Hardware Asset Information
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGYpdXPYER8Lxnvtkrw4bu--6ua5ukf+8vUDHccKRyOUOQ@mail.gmail.com> |
On 4 October 2011 23:37, Kaushal Shriyan <[email protected]> wrote: > root@host0129:/etc/snmp# snmpwalk -v 2c -c local localhost > nsExtendOutput1Line."dmi" = STRING: /dev/mem: Permission denied That looks as if the SNMP agent can't read the necessary information from the kernel. > root@host0129:/etc/snmp# ps aux|grep snmpd > snmp 6785 0.0 0.0 42024 5168 ? S 15:29 0:00 /usr/sbin/snmpd The agent is clearly running as a special dedicated user "snmp". Presumably this user doesn't have permission to read /dev/mem > /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p > /var/run/snmpd.pid -c /etc/snmp/snmpd.conf And this user is being set explicitly ('-u snmp') > Please suggest further Three options: - run the agent as root, rather than 'snmp' - make the permissions on /dev/mem globally readable - run the agent in a suitable group You haven't said what O/S you are using, or what the permissions on /dev/mem actually are. But on my system, $ ls -l /dev/mem crw-r-----. 1 root kmem 1, 1 Sep 15 10:48 /dev/mem so running the agent in the group 'kmem' ought to work. Try adding the option "-g kmem" to the startup incantation, and restart the agent. (Obviously, if your /dev/kmem settings are different, you should use the appropriate group instead) Dave ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users