I get errors on this. (if I take out the comma, I get an error parsing
the sudoers file, if I leave it in, I get python errors.)
If you could supply an example of an sudoers file (or the entries
necessary, in their entirety) it would be helpful.
As I've said, the man pages for sudoers are abysmally unclear. (All the
variables are in the man pages..but where within the definitions they
have to be isn't spelled out at all.)
Thanks,
Erik A. Dahl wrote:
Todd,
I see a "," in your definition. Think its:
env_keep="PYTHONPATH ZENHOME"
Maybe that's the issue?
-EAD
On Jun 6, 2006, at 11:51 AM, Todd Michael Hebert wrote:
I think that :env_keep=PYTHONPATH,ZENHOME has to be added after the
declratations that allow user zenoss to run specific commands,on the
same line.
(I did this, and now get different error messages.)
This is the new error message:
[EMAIL PROTECTED]:~/zenossinst$ $ZENHOME/bin/zenping start
starting...
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenStatus/zenping.py", line 22, in ?
import Globals # make zope imports work
ImportError: No module named Globals
Sounds cryptically familiar.
Eric Newton wrote:
Try adding this line at the top of the file:
Defaults env_keep = "PYTHONPATH ZENHOME"
-Eric
Todd Michael Hebert wrote:
I am on debian sarge, with a kernel of 2.4.27-2-386
I don't have any environment variables in my sudoers file.
env_reset is not set, and I'm having trouble finding any
documentation telling me how to use env_keep and env_reset. (They
are in the man page, and what they do is explained, but how to put
them into the /etc/sudoers file is not explained, at least not to
my satisfaction. Man page has a deficiency of having zero examples.
naughty documentation writers..naughty! But.. not your fault by
any stretch of the imagination.)
I'm looking forward to getting up and running so I can see what
this will do. I can access the administration interface and such.
Eric Newton wrote:
If you don't already have a long list of environment variables in
/etc/sudoers, you can leave out the keep_env configuration.
What OS and version are you running?
-Eric
Todd Michael Hebert wrote:
I am getting the same error message as this person when I try to
run zenping. I had to add permission to run zenping to the
sudoers file.
The answer of adding certain things to keep_env seems like an
incomplete answer. Where in the sudoers file do you add this
option?
Thanks.
-------- Original Message --------
Subject: [zenoss-users] Zenoss on FC5- zenping, zensnmp,
zensyslog, zenstatus, zenactions not running--help
Date: Fri, 26 May 2006 09:52:53 -0500
From: Sudha <[EMAIL PROTECTED]>
Reply-To: General discussion of using zenoss system
<[email protected]>
To: [email protected]
Hi Eric
Im getting the following error: please help (FC5 disro.)
$ZENHOME/bin/zenoss status
Daemon: zeoctl program running; pid=2375
Daemon: zopectl program running; pid=2643
Daemon: zensnmp not running
Daemon: zenmodeler program running; pid=2720
Daemon: zencrkbld program running; pid=2838
Daemon: zenping not running
Daemon: zensyslog not running
Daemon: zenstatus not running
Daemon: zenactions not running
starting...
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenStatus/zenping.py", line 32,
in ?
import Globals # make zope imports work
ImportError: No module named Globals
(* I dont find any zensnmp.cnf file under /etc/folder)
Regards
Sudha
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users