search for: get_var

Displaying 20 results from an estimated 24 matches for "get_var".

2006 Apr 19
1
Flash, Rails, and Routes
...wsers but Win/IE. I''m wondering if it has to do with some directory/security sandbox bug in IE''s handling of Flash, coupled with Rail''s routing. Below are some examples. Keep in mind that the .swf file is in the /public directory. The data is coming from the ''get_vars'' action in the ''view'' controller. The following Actionscript works in Firefox, Opera, the new IE beta, etc: data.load(''/view/get_vars'', data, ''GET''); And if I set up this route in Rails: map.connect ''get_vars'', :c...
2012 Sep 11
1
Back UPS ES and data stale with disconnected device
...#39; 0.015600 Trying to connect to UPS [upsa at 192.168.10.200] 0.031200 Login on UPS [upsa at 192.168.10.200] failed - got [ERR ACCESS-DENIED] 0.031200 Current power value: 1 0.046800 Minimum power value: 1 5.054409 pollups: upsa at 192.168.10.200 5.054409 get_var: upsa at 192.168.10.200 / status 5.054409 Poll UPS [upsa at 192.168.10.200] failed - Data stale 5.070009 do_notify: ntype 0x0005 (COMMBAD) 5.070009 Communications with UPS upsa at 192.168.10.200 lost 5.085609 Current power value: 1 5.085609 Minimum power value: 1...
2006 Jan 04
1
Nut 2.0.1, net-snmp-5.1.2p2, APC SUA1000 with AP9606: repeated comm lost/established messages
...rsed) follows /usr/local/ups/sbin >> ./upsmon -D Network UPS Tools upsmon 2.0.1 UPS: ap9606-srv@localhost (slave) (power value 1) Using power down flag file /etc/killpower Trying to connect to UPS [ap9606-srv@localhost] Logged into UPS ap9606-srv@localhost polling ups: ap9606-srv@localhost get_var: ap9606-srv@localhost / status status: [OL] parsing: [OL]: ups_on_line(ap9606-srv@localhost) (first time) polling ups: ap9606-srv@localhost get_var: ap9606-srv@localhost / status status: [OL] parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change) polling ups: ap9606-srv@lo...
2011 Apr 28
1
Problem with blazer_ser/megatec when upgrading to 2.6.0 from 2.4
...t (slave) (power value 1) 0.000153 Using power down flag file /etc/killpower 0.000261 debug level is '5' 0.001301 Trying to connect to UPS [munja at localhost] 0.002166 Logged into UPS munja at localhost 0.002184 pollups: munja at localhost 0.002197 get_var: munja at localhost / status 0.002279 Poll UPS [munja at localhost] failed - Driver not connected 0.002290 do_notify: ntype 0x0005 (COMMBAD) 0.002297 Communications with UPS munja at localhost lost 5.002588 pollups: munja at localhost 5.002617 get_var: munja at lo...
2014 Oct 01
2
Socomec ITYS 3000 + Netvision upsmon output
...c/killpower 0.000293 debug level is '5' 0.003999 Trying to connect to UPS [myups at 127.0.0.1] 0.004279 Can not connect to 127.0.0.1 in SSL, continue uncrypted 0.004588 Logged into UPS myups at 127.0.0.1 0.004826 pollups: myups at 127.0.0.1 0.004847 get_var: myups at 127.0.0.1 / status 0.005017 parse_status: [] 0.005032 do_notify: ntype 0x0005 (COMMBAD) 0.005039 commbad 0.005212 Current power value: 1 0.005226 Minimum power value: 1 5.005315 pollups: myups at 127.0.0.1 5.005340 get_var: myups at 127.0.0...
2016 Aug 05
1
NUT UPS Slave Not Shutting Down
...16] 0.226477 Can not connect to 192.168.16.116 in SSL, continue uncrypted 0.228872 Login on UPS [ups_genric at 192.168.16.116] failed - got [ERR ACCESS-DENIED] 0.229423 Current power value: 1 5.230023 pollups: ups_genric at 192.168.16.116 5.230164 get_var: ups_genric at 192.168.16.116 / status 5.231214 parse_status: [OL] 5.231348 parsing: [OL] 5.231415 ups_on_line: ups_genric at 192.168.16.116 (first time) 5.231482 Current power value: 1 5.231543 Minimum power value: 1 10.231707 pollups: ups...
2007 Aug 28
1
deadagi and billsec or answeredtime
...2,hangup And my simple test php script rate.php #!/usr/local/bin/php -q <?php include_once (dirname(__FILE__)."/phpagi.php"); $AGI = new AGI(); $AGI->answer(); $AGI->stream_file('demo-thanks'); $AGI->stream_file('vm-goodbye'); $AGI->hangup(); $billsec = get_var($AGI,"CDR(billsec)"); debug("Billsec: $billsec", 1); function debug($string, $level=3) { global $AGI; $AGI->verbose($string, $level); } function get_var( $agi, $value) { $r = $agi->get_variable( $value ); if ($r['result'] == 1) { $res...
2012 Sep 13
2
Early shutdowns and 2.6.5-1 package for Windows
...1. NOTIFYCMD parameter is not specified NUT doesn't start UPSSCHED tool (as I remember, Linux version do it by default). 2. PIPEFN parameter is invalid (its value is a file in non-existed directory) UPSMON logs an error: 25.222443 pollups: upsa at 192.168.10.200 25.229443 get_var: upsa at 192.168.10.200 / status 25.238444 Poll UPS [upsa at 192.168.10.200] failed - Data stale 25.248444 Current power value: 1 25.254444 Minimum power value: 1 Failed to connect to parent and failed to create parent: No error [The system cannot find the path specified. ]...
2011 Jul 26
5
Problem with upsmon on x64 Windows
...4.8 (slave) (power value 1) 0.015625 Using power down flag file C:\killpower 0.015625 debug level is '4' 0.015625 Trying to connect to UPS [apc at 192.168.4.8] 0.078125 Logged into UPS apc at 192.168.4.8 0.078125 pollups: apc at 192.168.4.8 0.078125 get_var: apc at 192.168.4.8 / status 0.078125 parse_status: [OL] 0.078125 parsing: [OL] 0.078125 ups_on_line: apc at 192.168.4.8 (first time) After it upsmon closing with error. Faulting application upsmon.exe, version 0.0.0.0, faulting module upsmon.exe, version 0.0.0.0, fault addres...
2012 Sep 19
1
New intermediate Windows binaries release - 2.6.5-3
?Hello, There is a new intermediate Windows binaries release available at : http://www.networkupstools.org/package/windows/NUT-Installer-2.6.5-3.msi This fixes a regression about stopping the NUT service. Feedback is highly appreciated. Regards, Fred -- Eaton Opensource Team - http://opensource.eaton.com ----------------------------- -----------------------------
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
Here is patch 1 of 2. Roger diff -rup nut-2.7.4.orig/clients/upsmon.c nut-2.7.4.dev/clients/upsmon.c --- nut-2.7.4.orig/clients/upsmon.c 2015-12-29 13:08:34.000000000 +0100 +++ nut-2.7.4.dev/clients/upsmon.c 2016-07-01 09:46:21.567766415 +0200 @@ -525,6 +525,18 @@ static int get_var(utype_t *ups, const c numq = 2; } + /* Subcommands for polling SIGUSR1, SIGUSR2 RP */ + if (strcmp(var, "SIGUSR1") == 0) { + query[0] = "SIGUSR1"; + query[1] = ups->upsname; + numq = 2; + } + if (strcmp(var, "SIGUSR2") == 0) { + query[0] = "SIGUSR2...
2006 Jan 26
1
newhidups (2.03-pre2) not working with APC Back-UPS 500
...st until I start upsmon. Then I see: ... [root@test7 ups]# /usr/sbin/upsmon -D Network UPS Tools upsmon 2.0.3-pre2 UPS: UPS@localhost (slave) (power value 1) Using power down flag file /etc/killpower Trying to connect to UPS [UPS@localhost] Logged into UPS UPS@localhost polling ups: UPS@localhost get_var: UPS@localhost / status Poll UPS [UPS@localhost] failed - Variable not supported by UPS do_notify: ntype 0x0005 (COMMBAD) Communications with UPS UPS@localhost lost ... At this point, upsd reports an error: ... Pinging UPS [UPS] Got PONG from UPS [UPS] acl_check: localhost: match 1 ACL [localhos...
2017 Apr 03
4
battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
...'3' 0.005831 Init SSL without certificate database 0.011754 Trying to connect to UPS [apc1500 at localhost] 0.013150 Can not connect to localhost in SSL, continue uncrypted 0.013909 Logged into UPS apc1500 at localhost 0.014384 pollups: apc1500 at localhost 0.014501 get_var: apc1500 at localhost / status 0.014889 parse_status: [ALARM OL] 0.015012 parsing: [ALARM] 0.015100 parsing: [OL] 0.015181 ups_on_line: apc1500 at localhost (first time) notice the value of parsing, first it is ALARM, and then OL. But if only the last value is returned, then ever...
2012 Aug 30
1
Data stale and Back UPS ES
...#39; 0.026001 Trying to connect to UPS [upsa at 192.168.10.200] 0.039002 Login on UPS [upsa at 192.168.10.200] failed - got [ERR ACCESS-DENIED] 0.044002 Current power value: 1 0.047002 Minimum power value: 1 5.049289 pollups: upsa at 192.168.10.200 5.055289 get_var: upsa at 192.168.10.200 / status 5.064289 Poll UPS [upsa at 192.168.10.200] failed - Data stale 5.075290 do_notify: ntype 0x0005 (COMMBAD) 5.083290 Communications with UPS upsa at 192.168.10.200 lost ... What should I check to fix ACCESS-DENIED error? 2. UPSHID-UPS fails w...
2019 Jun 08
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
....xxx.xxx.xxx (slave) (power value 1) 0.000319 Using power down flag file /etc/killpower 0.000603 debug level is '3' 0.004081 Trying to connect to UPS [ups at 192.168.86.242] 0.006152 Logged into UPS ups at xxx.xxx.xxx.xxx 0.006166 pollups: ups at xxx.xxx.xxx.xxx 0.006189 get_var: ups at xxx.xxx.xxx.xxx / status 0.006566 parse_status: [OL] 0.006590 parsing: [OL] 0.006596 ups_on_line: ups at xxx.xxx.xxx.xxx (first time) 0.006603 Current power value: 1 0.006608 Minimum power value: 1 5.007706 pollups: ups at xxx.xxx.xxx.xxx 5.007759 get_var: ups at xxx...
2012 Apr 16
2
Snmp-ups/netvision driver for Socomec UPS
...ower value 1) 0.000090 Using power down flag file /etc/killpower 0.000213 debug level is '3' 0.000705 Trying to connect to UPS [socomec at localhost] 0.001065 Logged into UPS socomec at localhost 0.001127 pollups: socomec at localhost 0.001137 get_var: socomec at localhost / status 0.001186 parse_status: [] 0.001209 do_notify: ntype 0x0005 (COMMBAD) 0.001220 Communication with the UPS is lost In netvision-mib.c I see that ups.status field is constructed from NETVISION_OID_BATTERYSTATUS (.1.3.6.1.4.1.4555.1.1.1.1.2.1.0)...
2004 Sep 15
0
AGI didn't get var from Asterisk?
...ADBID=xxx\r\n"; $channel.="MaxRetries: 1\r\n"; $channel.="RetryTime: 90\r\n"; $channel.="WaitTime: 60\r\n"; The AGI Script: #!/usr/bin/php -q <? require ("phpagi.php"); $agi=new AGI(); $dbid=$agi->get_var("ADBID"); $tt=$agi->set_var("Adbid1", $dbid); echo "VERBOSE DID: $dbid"; ?> Console: -- Launched AGI Script UpdateAutoDial.php UpdateAutoDial.php|45: 'agi_request' => 'UpdateAutoDial.php' UpdateAutoDial.php|45:...
2007 Jan 04
2
Re: [nut-Patches][303751] Checking UPS Temperature
...;>> > + if (!strcmp(var, "temp")) { > + query[0] = "VAR"; > + query[1] = ups->upsname; > + query[2] = "ups.temperature"; > + numq = 3; > + } > +//EW <<<<<< > + > if (numq == 0) { > upslogx(LOG_ERR, "get_var: programming error: var=%s", var); > @@ -770,4 +782,21 @@ > } > > +//EW >>>>>> > +static void ups_overtemp(utype *ups) > +{ > + if (flag_isset(ups->status, ST_OVERTEMP)) { /* no change */ > + debug("ups_overtemp(%s) (no change)\n", up...
2005 Oct 13
1
AGI Variable problem
...which gives me another variablke and put this in *. My problem is now it seems the var ID is empty coz i always jump into the result 0 loop. The $MSN should be in the SetCIDNum. #!/usr/bin/php -q <?php include("/var/lib/asterisk/agi-bin/phpagi.php"); $agi = new AGI(); $ID = $agi->get_variable("SIPUSER"); if ($ID['result'] == 0) { $agi->verbose("SIPUSER not set -- nothing to do"); exit(1); } $agi->set_variable("MSN", exec("/var/lib/asterisk/agi-bin/msn4sip 111 222 333 " .$ID['data'])); ?> Output from...
2020 Jan 26
1
Timer doesn't appear to start
...D) 90.160889 Communications with UPS deltec-PRA1500 at localhost lost 90.160889 Communications with UPS deltec-PRA1500 at localhost lost 90.162235 Current power value: 1 90.162541 Minimum power value: 1 95.162828 pollups: deltec-PRA1500 at localhost 95.163045 get_var: deltec-PRA1500 at localhost / status 95.164228 parse_status: [OB] 95.164385 do_notify: ntype 0x0004 (COMMOK) 95.164502 Communications with UPS deltec-PRA1500 at localhost established 160.214327 ups_on_line: deltec-PRA1500 at localhost (first time) 160.214426 do_not...