Re: Poller not running my script
mark bradley <[email protected]>
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <CAEPaGui-pG9V2_czDVURHsz+-0B0nm=Dk80bFXWYJiD7W_gRyA@mail.gmail.com> |
Hi Paul, Sorry, I didn't notice that the reply was sent to you alone. Yes, I've tried it with prefixing /usr/bin/python as well as without prefixing -- same effect. I'm positive that the process runs as the "cacti" user by examining both the crontab as well as with "ps -ef" output. It would be ideal if there was a way to monitor the status/error message of the poller's "exec" when it tries to launch my script. Do you know of any way of doing that? Thanks again, Mark On Sat, Jan 5, 2013 at 3:05 PM, Paul Gevers <[email protected]> wrote: > Hi Mark, > > [Please don't respond to me in private, the list is there to use it] > > On 04-01-13 22:13, mark bradley wrote: > > Hi Paul, > > > > Thanks for the response. When I do: > > > > # su cacti -c "/usr/bin/python /var/lib/cacti/scripts/myscript.py" > > > > > > the script works as expected. > > And cacti calls it in exactly the same way, I assume. So with the > /usr/bin/python in front? And you are sure that on your system cacti > runs under the cacti user, and not e.g. www-data, such as under Debian > (check your cron job)? > > Paul > > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412