Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Getting Scripts to Work

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
deu439356



Joined: 13 Aug 2008
Posts: 45

PostPosted: Tue Nov 11, 2008 8:59 am    Post subject: Getting Scripts to Work Reply with quote

I am using a script to return (print) an integer value that I would like to graph. I have set up my data input method to be a Script/Command and so it looks for one output value. My data template uses the data input method and my graph template uses my data template. I believe I have everything set up correctly, (I modeled it after the Unix - Get Logged in Users script and followed: http://forums.cacti.net/about11288.html) but I get the following errors:

11/11/2008 07:50:55 AM - SPINE: Poller[0] Host[2430] DS[94025] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/11/2008 07:50:55 AM - SPINE: Poller[0] Host[2430] ERROR: Empty result [RSA]: '/usr/bin/perl /this/is/the/path/scripts/rsaAuths.pl'
11/11/2008 07:50:55 AM - SPINE: Poller[0] Host[2430] DS[94026] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/11/2008 07:50:55 AM - SPINE: Poller[0] Host[2430] ERROR: Empty result [RSA]: '/usr/bin/perl /this/is/the/path/scripts/rsaVPN.pl'

I also performed at tail -f on the log in debug mode, and it is returning a U.


Any suggestions? Thanks!
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12642
Location: Muenster, Germany

PostPosted: Tue Nov 11, 2008 3:55 pm    Post subject: Reply with quote

Please see 2nd link of my sig. Most likely a permission issue. Is this a dup post, by the way?
Reinhard
Back to top
deu439356



Joined: 13 Aug 2008
Posts: 45

PostPosted: Tue Nov 11, 2008 3:57 pm    Post subject: Reply with quote

Yes. I didn't get any replies on the other post so I started a new thread.

Also, the permissions on the scripts and the files are set to -rwxrwxrwx
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12642
Location: Muenster, Germany

PostPosted: Tue Nov 11, 2008 4:15 pm    Post subject: Reply with quote

Are you using any OS commands in this script? Please post the code
Reinhard
Back to top
deu439356



Joined: 13 Aug 2008
Posts: 45

PostPosted: Tue Nov 11, 2008 4:55 pm    Post subject: Reply with quote

Please See This Post: http://forums.cacti.net/viewtopic.php?p=148715#148715
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12642
Location: Muenster, Germany

PostPosted: Wed Nov 12, 2008 3:48 pm    Post subject: Reply with quote

let's stop this dup thread
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group