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    


Yet Another NUT (Network UPS Tools) Status
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
liveder



Joined: 10 Dec 2007
Posts: 10

PostPosted: Mon Dec 10, 2007 6:17 am    Post subject: Reply with quote

When executing script by myself:
[root@cacti /usr/local/www/data/scripts]# ./nut_ups_status.rb rizhskiy@192.168.241.6
./nut_ups_status.rb:28:in `readline': end of file reached (EOFError)
from ./nut_ups_status.rb:28

in nut_ups_status.rb the 28 line is(the bold one):
Quote:

else
$s.write("USERNAME cacti\r\n"); $s.readline


[root@cacti /usr/local/www/data/scripts]# uname -a
FreeBSD 7.0-BETA2
[root@cacti /usr/local/www/data/scripts]# pkg_info|grep rub
ruby-1.8.6.111,1 An object-oriented interpreted scripting language

what is the problem?..
Back to top
thavinci



Joined: 06 Nov 2007
Posts: 15
Location: Port-Elizabeth

PostPosted: Mon Mar 31, 2008 10:27 am    Post subject: *bump* Reply with quote

*bump*
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group