Re: Issues with SNMP exec external script.

2009-03-13 Thread Dave Shield
2009/3/13 Stevenson, Steven : > I just unset the enforcing with the SELinux and the results started > working.   Is there any way around this without disabling Enforcing > Mode? You could try setting the context on the log file to be something that snmpd has access to. I've not really investigate

RE: Issues with SNMP exec external script.

2009-03-13 Thread Stevenson, Steven
SNMP exec external script. 2009/3/13 Stevenson, Steven : > I just unset the enforcing with the SELinux and the results started > working.   Is there any way around this without disabling Enforcing > Mode? You could try setting the context on the log file to be something that snmpd has

RE: Issues with SNMP exec external script.

2009-03-13 Thread Stevenson, Steven
[mailto:[email protected]] On Behalf Of Dave Shield Sent: Friday, March 13, 2009 3:33 PM To: Stevenson, Steven Cc: [email protected] Subject: Re: Issues with SNMP exec external script. 2009/3/13 Stevenson, Steven : > I have agentuser as root in the conf file. OK -

RE: Issues with SNMP exec external script.

2009-03-13 Thread Stevenson, Steven
: Friday, March 13, 2009 3:33 PM To: Stevenson, Steven Cc: [email protected] Subject: Re: Issues with SNMP exec external script. 2009/3/13 Stevenson, Steven : > I have agentuser as root in the conf file. OK - so file permissions are unlikely to be the cause. How about answer

Re: Issues with SNMP exec external script.

2009-03-13 Thread Dave Shield
2009/3/13 Stevenson, Steven : > I have agentuser as root in the conf file. OK - so file permissions are unlikely to be the cause. How about answering my other question: > If Linux, are you running with SELinux in enforcing mode? Dave -

RE: Issues with SNMP exec external script.

2009-03-13 Thread Stevenson, Steven
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 : >    Running the command from > the command line as root runs exactly

Re: Issues with SNMP exec external script.

2009-03-13 Thread Dave Shield
2009/3/13 Stevenson, Steven : >    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? Wha

Issues with SNMP exec external script.

2009-03-13 Thread Stevenson, Steven
Basically the problem I have is that I have a perl script that does basically a stat on a file and figures out how old in minutes the file is and spits out to stdout the minutes it is behind. Running the command from the command line as root runs exactly as it should. When I run snmpwalk and dum