|
|
| Author |
Message |
liveder
Joined: 10 Dec 2007 Posts: 10
|
Posted: Mon Dec 10, 2007 6:17 am Post subject: |
|
|
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
|
Posted: Mon Mar 31, 2008 10:27 am Post subject: *bump* |
|
|
| *bump* |
|
| Back to top |
|
 |
bsd
Joined: 27 Jun 2006 Posts: 3 Location: Chandigarh, UT, India
|
Posted: Mon Sep 22, 2008 11:15 am Post subject: |
|
|
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 |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|