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    


APC UPS Daemon (apcupsd) via NIS [v1.1 2007-12-17]
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6596
Location: WA, USA

PostPosted: Mon Feb 11, 2008 5:41 pm    Post subject: Reply with quote

I *think* its the UPS itself which does the internal calculation on runtime... I KNOW that my older 500 model's runtime is broken. During a power outage it'll drop significantly... then after a few weeks climb back up to something way too high.

I'm sure there is more info on the apcdaemon mailing list...
Back to top
pyth
Cacti User


Joined: 31 Jan 2008
Posts: 94
Location: France, Grenoble

PostPosted: Tue Feb 12, 2008 4:08 am    Post subject: Reply with quote

its little hard to understand for me ,
but nis and apcupsd must be active on the cacti server, and the host that we want observe ?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6596
Location: WA, USA

PostPosted: Tue Feb 12, 2008 4:40 pm    Post subject: Reply with quote

Yes, both apcdaemon and NIS must be enabled on the HOST, which you want to collect the data from.
Back to top
lingping



Joined: 19 Mar 2008
Posts: 12
Location: China

PostPosted: Mon Mar 24, 2008 6:23 am    Post subject: Reply with quote

Code:
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[34] ERROR: Empty result [192.168.20.31]: '/usr/local/src/cacti/scripts/check_ups.sh 192.168.20.31 3551' 
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[33] DS[292] WARNING: Result from SCRIPT not valid. Partial Result: ... 
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[33] ERROR: Empty result [192.168.11.8]: '/usr/local/src/cacti/scripts/check_ups.sh 192.168.11.8 3551' 
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] DS[294] WARNING: Result from SCRIPT not valid. Partial Result: ... 
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] ERROR: Empty result [192.168.11.9]: '/usr/bin/php /usr/local/src/cacti/scripts/query_apcupsd.php 192.168.11.9 3551' 
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] DS[295] WARNING: Result from SCRIPT not valid. Partial Result: ... 
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] ERROR: Empty result [192.168.11.9]: '/usr/bin/php /usr/local/src/cacti/scripts/query_apcupsd.php 192.168.11.9 3551' 
03/24/2008 07:15:08 PM - SPINE: Poller[0] Host[22] Hostname[192.168.12.251] ERROR: HOST EVENT: Host is DOWN Message: UDP: Ping timed out 


this my cacti log.

os:centos 5.0+cacti 0.8.7b

thanks.

lingping
Back to top
ben_c
Cacti User


Joined: 14 May 2007
Posts: 177
Location: Melbourne, Australia.

PostPosted: Tue Mar 25, 2008 12:25 am    Post subject: Reply with quote

Any of you guys happen to run an APC EMU?

I'm trying to get a graph working that displays the overall average temperature from an EMU OID that returns multiple values ie:

snmpwalk -v 1 -c public xxx .1.3.6.1.4.1.318.1.1.10.4.2.3.1.5
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.1 = INTEGER: 21
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.2 = INTEGER: 29
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.1 = INTEGER: 24
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.2 = INTEGER: 24

But can't seem to work it out. I can graph a single OID no problems, but want to have a single graph that averages the total.
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6596
Location: WA, USA

PostPosted: Tue Mar 25, 2008 10:50 am    Post subject: Reply with quote

lingping: did you enable NIS on the apcdaemon? Manually run query_apcupsd.php 192.168.11.9 3551 and see if you get data.

ben_c: this script doesn't do emu; only apc daemon.
Back to top
ben_c
Cacti User


Joined: 14 May 2007
Posts: 177
Location: Melbourne, Australia.

PostPosted: Tue Mar 25, 2008 4:54 pm    Post subject: Reply with quote

Yeah, just wondering if anyone had hit that wall since the products are from the same vendor
Back to top
lingping



Joined: 19 Mar 2008
Posts: 12
Location: China

PostPosted: Thu Mar 27, 2008 7:35 pm    Post subject: Reply with quote

BSOD2600 wrote:
lingping: did you enable NIS on the apcdaemon? Manually run query_apcupsd.php 192.168.11.9 3551 and see if you get data.

ben_c: this script doesn't do emu; only apc daemon.


Excuse me, how start to perhaps install NIS and apcdaemon?

The my hand moves run query_apcupsd.php's 192.168.11.93551 results as follows:

Code:
This need not realize:sh: /var/www/html/cacti/scripts/apcaccess: No such file or directory


The hint cans not find apcaccess, , apcaccess where can find out, does the system seem to have no this document or file?Where can download at?
Back to top
lingping



Joined: 19 Mar 2008
Posts: 12
Location: China

PostPosted: Thu Mar 27, 2008 7:40 pm    Post subject: Reply with quote

ben_c wrote:
Any of you guys happen to run an APC EMU?

I'm trying to get a graph working that displays the overall average temperature from an EMU OID that returns multiple values ie:

snmpwalk -v 1 -c public xxx .1.3.6.1.4.1.318.1.1.10.4.2.3.1.5
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.1 = INTEGER: 21
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.2 = INTEGER: 29
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.1 = INTEGER: 24
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.2 = INTEGER: 24

But can't seem to work it out. I can graph a single OID no problems, but want to have a single graph that averages the total.


Excuse me, , what is "EMU"?

can now also single OID normally shows, but I also hope to show many pieces in the single the chart according to,

include, input, output electric voltage, temperature, load, battery appearance etc.

Moreover, I can't show battery appearance now, the hint of cacti log:

Code:
03/24/2008 07:20:10 PM - SPINE: Poller[0] Host[32] ERROR: Empty result [192.168.11.9]: '/usr/bin/php /usr/local/src/cacti/scripts/query_apcupsd.php 192.168.11.9 3551'

03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[33] ERROR: Empty result [192.168.11.8]: '/usr/local/src/cacti/scripts/check_ups.sh 192.168.11.8 3551'
Back to top
lingping



Joined: 19 Mar 2008
Posts: 12
Location: China

PostPosted: Thu Mar 27, 2008 7:45 pm    Post subject: Reply with quote

My equipments model number is:APC Smart-UPS VT
15 kVA

Does don't know that equipments support NIS or apcdaemon?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6596
Location: WA, USA

PostPosted: Fri Mar 28, 2008 12:03 pm    Post subject: Reply with quote

1) if your apc device supports SNMP natively, which I imagine a 15 kVA unit would, you should really be using the other APC scripts found on this forum. It's more faster and efficient than this one.

2) NIS is enabled in the apc daemon config file. Read the manual.
Back to top
lingping



Joined: 19 Mar 2008
Posts: 12
Location: China

PostPosted: Fri Mar 28, 2008 7:40 pm    Post subject: Reply with quote

Thank you very much.
Back to top
lingping



Joined: 19 Mar 2008
Posts: 12
Location: China

PostPosted: Tue Apr 22, 2008 9:12 pm    Post subject: Reply with quote

Code:
[root@monitor scripts]# php query_apcupsd.php 192.168.101.9 3551
sh: /var/www/html/cacti/scriptsapcaccess: No such file or directory
Back to top
lingping



Joined: 19 Mar 2008
Posts: 12
Location: China

PostPosted: Tue Apr 22, 2008 10:40 pm    Post subject: Reply with quote

Code:
04/23/2008 11:35:43 AM - SPINE: Poller[0] Host[67] ERROR: Empty result [192.168.101.8]: '/usr/bin/php /var/www/html/cacti/scripts/query_apcupsd.php 192.168.101.8 3551'
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6596
Location: WA, USA

PostPosted: Wed Apr 23, 2008 1:31 am    Post subject: Reply with quote

I'm curious why you're trying to use this script again on an APC device which already supports snmp?

Did you install apcdaemon and enabled NIS, as the instructions state?
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, 3  Next
Page 2 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group