I have agentuser as root in the conf file.

OS:
Red Hat Enterprise Linux Server release 5.2 (Tikanga)


PS results:
root     14566  0.0  0.1  26152  5428 ?        Sl   14:46   0:00 
/usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a




Perl script:
-rwxr-xr-x    1 root     root          117 Oct 19  2004 /usr/bin/file_age.pl


Log file:
-rw-rw-rw- 1 megasports imds 18143205 Sep  1  2006 
/home/content/users/xxxxxxxxx/logs/xxxxxxxxx-audit.log




CONF FILE entry(snmpd.conf)

###########################################################################
# SECTION: Agent Operating Mode
#
#   This section defines how the agent will operate when it
#   is running.

# agentuser: The system user that the agent runs as.
#   arguments: name|#uid

agentuser  root





Steve Stevenson


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Friday, March 13, 2009 3:21 PM
To: Stevenson, Steven
Cc: [email protected]
Subject: Re: Issues with SNMP exec external script.

2009/3/13 Stevenson, Steven <[email protected]>:
>                     Running the command from
> the command line as root runs exactly as it should.  When I run snmpwalk and
> dump output for the exec program it shows stat fails with permission
> denied.

What are the permissions on the script and the data file?
What user is the agent running as?

What O/S are you using?
If Linux, are you running with SELinux in enforcing mode?

Dave

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to