rev 2846 -> all int macaddrs=00:00:00:00:00:00
thi is the diff with -6 rev:
Index: includes/polling/ports.inc.php =================================================================== --- includes/polling/ports.inc.php (revisione 2840) +++ includes/polling/ports.inc.php (copia locale) @@ -182,14 +177,7 @@ if (strpos($this_port['ifPhysAddress'], ":")) { list($a_a, $a_b, $a_c, $a_d, $a_e, $a_f) = explode(":", $this_port['ifPhysAddress']); - $ah_a = zeropad($a_a); - $ah_b = zeropad($a_b); - $ah_c = zeropad($a_c); - $ah_d = zeropad($a_d); - $ah_e = zeropad($a_e); - $ah_f = zeropad($a_f); - #$this_port['ifPhysAddress'] = $ah_a.":".$ah_b.":".$ah_c.":".$ah_d.":".$ah_e.":".$ah_f; - $this_port['ifPhysAddress'] = $ah_a.$ah_b.$ah_c.$ah_d.$ah_e.$ah_f; + $this_port['ifPhysAddress'] = zeropad($ah_a).zeropad($ah_b).zeropad($ah_c).zeropad($ah_d).zeropad($ah_e).zeropad($ah_f); }
"zeropad($ah_N)" in last +line should be without "h": $ah_N are absent variables! ;)
++++ $this_port['ifPhysAddress'] = zeropad($a_a).zeropad($a_b).zeropad($a_c).zeropad($a_d).zeropad($a_e).zeropad($a_f);
dario -- http://www.playnet.it phone +39 055 3226622 - fax +39 055 3226444 Brain Technology s.p.a. - AS 13284
Hi Dario,
Thanks for the patch, I had observed the effect as well this week, that's totally my fault :/
Thank you for finding and fixing :-)
Tom
On 23/01/2012 19:50, Dario Calamai wrote:
thi is the diff with -6 rev:
Index: includes/polling/ports.inc.php
--- includes/polling/ports.inc.php (revisione 2840) +++ includes/polling/ports.inc.php (copia locale) @@ -182,14 +177,7 @@ if (strpos($this_port['ifPhysAddress'], ":")) { list($a_a, $a_b, $a_c, $a_d, $a_e, $a_f) = explode(":", $this_port['ifPhysAddress']);
$ah_a = zeropad($a_a);
$ah_b = zeropad($a_b);
$ah_c = zeropad($a_c);
$ah_d = zeropad($a_d);
$ah_e = zeropad($a_e);
$ah_f = zeropad($a_f);
#$this_port['ifPhysAddress'] = $ah_a.":".$ah_b.":".$ah_c.":".$ah_d.":".$ah_e.":".$ah_f;
$this_port['ifPhysAddress'] = $ah_a.$ah_b.$ah_c.$ah_d.$ah_e.$ah_f;
$this_port['ifPhysAddress'] = zeropad($ah_a).zeropad($ah_b).zeropad($ah_c).zeropad($ah_d).zeropad($ah_e).zeropad($ah_f); }
"zeropad($ah_N)" in last +line should be without "h": $ah_N are absent variables! ;)
++++ $this_port['ifPhysAddress'] = zeropad($a_a).zeropad($a_b).zeropad($a_c).zeropad($a_d).zeropad($a_e).zeropad($a_f);
dario
http://www.playnet.it phone +39 055 3226622 - fax +39 055 3226444 Brain Technology s.p.a. - AS 13284
http://www.linkedin.com/in/dariocalamai _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
No problem Tom! Thank to you for what you do!
dario -- http://www.playnet.it phone +39 055 3226622 - fax +39 055 3226444 Brain Technology s.p.a. - AS 13284
http://www.linkedin.com/in/dariocalamai
On 23/gen/2012, at 19:53, Tom Laermans wrote:
Hi Dario,
Thanks for the patch, I had observed the effect as well this week, that's totally my fault :/
Thank you for finding and fixing :-)
Tom
On 23/01/2012 19:50, Dario Calamai wrote:
thi is the diff with -6 rev:
Index: includes/polling/ports.inc.php
--- includes/polling/ports.inc.php (revisione 2840) +++ includes/polling/ports.inc.php (copia locale) @@ -182,14 +177,7 @@ if (strpos($this_port['ifPhysAddress'], ":")) { list($a_a, $a_b, $a_c, $a_d, $a_e, $a_f) = explode(":", $this_port['ifPhysAddress']);
$ah_a = zeropad($a_a);
$ah_b = zeropad($a_b);
$ah_c = zeropad($a_c);
$ah_d = zeropad($a_d);
$ah_e = zeropad($a_e);
$ah_f = zeropad($a_f);
#$this_port['ifPhysAddress'] = $ah_a.":".$ah_b.":".$ah_c.":".$ah_d.":".$ah_e.":".$ah_f;
$this_port['ifPhysAddress'] = $ah_a.$ah_b.$ah_c.$ah_d.$ah_e.$ah_f;
}$this_port['ifPhysAddress'] = zeropad($ah_a).zeropad($ah_b).zeropad($ah_c).zeropad($ah_d).zeropad($ah_e).zeropad($ah_f);
"zeropad($ah_N)" in last +line should be without "h": $ah_N are absent variables! ;)
++++ $this_port['ifPhysAddress'] = zeropad($a_a).zeropad($a_b).zeropad($a_c).zeropad($a_d).zeropad($a_e).zeropad($a_f);
dario
http://www.playnet.it phone +39 055 3226622 - fax +39 055 3226444 Brain Technology s.p.a. - AS 13284
http://www.linkedin.com/in/dariocalamai _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Dario Calamai
-
Tom Laermans