Revision e38e1efd
Added by Chris Buechler about 9 years ago
src/usr/local/www/status_carp.php | ||
---|---|---|
256 | 256 |
<div class="panel-body"> |
257 | 257 |
<ul> |
258 | 258 |
<?php |
259 |
|
|
260 |
$nodes = array(); |
|
261 |
$states = pfSense_get_pf_states(); |
|
262 |
for ($i = 0; $states != NULL && $i < count($states); $i++) { |
|
263 |
$nodes[$states[$i]['creatorid']] = 1; |
|
264 |
} |
|
265 |
foreach ($nodes as $node => $nenabled) { |
|
266 |
echo "<li>$node</li>"; |
|
267 |
} |
|
259 |
echo "<br />" . gettext("pfSync nodes") . ":<br />"; |
|
260 |
echo "<pre>"; |
|
261 |
system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u"); |
|
262 |
echo "</pre>"; |
|
268 | 263 |
?> |
264 |
|
|
269 | 265 |
</ul> |
270 | 266 |
</div> |
271 | 267 |
</div> |
Also available in: Unified diff
Restore 2.2.x and prior means of obtaining pfsync nodes to avoid exhausting memory on systems with large state tables. Ticket #6364