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: 16
Location: Port-Elizabeth

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

*bump*
Back to top
bsd



Joined: 27 Jun 2006
Posts: 3
Location: Chandigarh, UT, India

PostPosted: Mon Sep 22, 2008 11:15 am    Post subject: Reply with quote

Hi, friends

I'm sorry for not visiting the cacti forums since long.

As for as remote UPS's are concerned, the script already handles that provided you give it a valid URI e.g. upsX@ups_host.fqdn

Next issue, the users might be facing like not getting the data via cron jobs is/can be due to permissions; please read the NUT documentation carefully and create, set and, or change the privileges accordingly.

Last but may not be the least issue can be the Cacti version itself, I have not upgraded Cacti as yet and even do not plan to do so in the near future, so I shall not be able to test the script and template for newer versions. I therefore, request users to try, adapt and, or modify the same and (re)release the newer and fully working set here.

Thank you,
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