Exemple #1
0
if($argv[1]=="--ufdbguardd"){echo "\n".ufdbguardd();exit;}
if($argv[1]=="--ufdb-tail"){echo "\n".ufdbguardd_tail();exit;}
if($argv[1]=="--squidguard-tail"){echo "\n".squidguard_logger();exit;}
if($argv[1]=="--dkim-milter"){echo "\n".milter_dkim();exit;}
if($argv[1]=="--dropbox"){echo "\n".dropbox();exit;}
if($argv[1]=="--artica-policy"){echo "\n".artica_policy();exit;}
if($argv[1]=="--vboxwebsrv"){echo "\n".virtualbox_webserv();exit;}
if($argv[1]=="--tftpd"){echo "\n".tftpd();exit;}
if($argv[1]=="--vdi"){echo "\n".virtualbox_webserv()."\n".tftpd()."\n".dhcpd_server();exit;}
if($argv[1]=="--crossroads"){echo "\n".crossroads();exit;}
if($argv[1]=="--artica-status"){echo "\n".artica_status();exit;}
if($argv[1]=="--artica-executor"){echo "\n".artica_executor();exit;}
if($argv[1]=="--artica-background"){echo "\n".artica_background();exit;}
if($argv[1]=="--pptpd"){echo "\n".pptpd();exit;}
if($argv[1]=="--pptpd-clients"){echo "\n".pptp_clients();exit;}
if($argv[1]=="--bandwith"){echo "\n".bandwith();exit;}
if($argv[1]=="--apt-mirror"){echo "\n".apt_mirror();exit;}
if($argv[1]=="--squidclamav-tail"){echo "\n".squid_clamav_tail();exit;}
if($argv[1]=="--ddclient"){echo "\n".ddclient();exit;}
if($argv[1]=="--cluebringer"){echo "\n".cluebringer();exit;}
if($argv[1]=="--apachesrc"){echo "\n".apachesrc();exit;}
if($argv[1]=="--assp"){echo "\n".assp();exit;}
if($argv[1]=="--freewebs"){echo "\n".apachesrc()."\n".pure_ftpd();exit;}
if($argv[1]=="--openvpn"){echo "\n".openvpn();exit;}
if($argv[1]=="--vboxguest"){echo "\n".vboxguest();exit;}
if($argv[1]=="--sabnzbdplus"){echo "\n".sabnzbdplus();exit;}
if($argv[1]=="--openvpn-clients"){echo "\n".OpenVPNClientsStatus();exit;}
if($argv[1]=="--stunnel"){echo "\n".stunnel();exit;}
if($argv[1]=="--meta-checks"){echo "\n".meta_checks();exit;}
if($argv[1]=="--smbd"){echo "\n".smbd();exit;}
if($argv[1]=="--vnstat"){echo "\n".vnstat();exit;}
Exemple #2
0
    exit;
}
if ($argv[1] == "--artica-background") {
    echo "\n" . artica_background();
    exit;
}
if ($argv[1] == "--pptpd") {
    echo "\n" . pptpd();
    exit;
}
if ($argv[1] == "--pptpd-clients") {
    echo "\n" . pptp_clients();
    exit;
}
if ($argv[1] == "--bandwith") {
    echo "\n" . bandwith();
    exit;
}
if ($argv[1] == "--apt-mirror") {
    echo "\n" . apt_mirror();
    exit;
}
if ($argv[1] == "--squidclamav-tail") {
    echo "\n" . squid_clamav_tail();
    exit;
}
if ($argv[1] == "--ddclient") {
    echo "\n" . ddclient();
    exit;
}
if ($argv[1] == "--cluebringer") {
Exemple #3
0
if (!$GLOBALS["FORCE"]) {
    if (systemMaxOverloaded()) {
        error_log(basename(__FILE__) . "::Fatal: Aborting report, this system is too many overloaded...");
        die;
    }
}
$unix = new unix();
$GLOBALS["CLASS_UNIX"] = $unix;
$pidfile = "/etc/artica-postfix/" . basename(__FILE__) . "pid";
$currentpid = trim(@file_get_contents($pidfile));
if ($unix->process_exists($currentpid)) {
    die;
}
@file_put_contents($pidfile, getmypid());
if ($argv[1] == "--bandwith") {
    bandwith();
    die;
}
if ($argv[1] == "--loadavg") {
    loadavg();
    die;
}
if ($argv[1] == "--mem") {
    loadmem();
    die;
}
if ($argv[1] == "--cpu") {
    loadcpu();
    die;
}
if ($argv[1] == "--queues") {
Exemple #4
0
                            <th>Direcci&oacute;n IP</th>
                            <th>Segmento</th>
                        </tr>
                    </thead>

                    <tbody>
                        <?php 
    $API->write("/queue/simple/getall", true);
    $READ = $API->read(false);
    $ARRAY = $API->parse_response($READ);
    if (count($ARRAY) > 0) {
        // si hay mas de 1 queue.
        for ($x = 0; $x < count($ARRAY); $x++) {
            $name = sanear_string($ARRAY[$x]['name']);
            $segmento_comercial = segmento($ARRAY[$x]['priority']);
            $ancho_banda = bandwith($ARRAY[$x]['limit-at']);
            $datos_queue = '<tr>';
            $datos_queue .= '<td>' . $name . '</td>';
            $datos_queue .= '<td><span class="UploadAsignado">' . $ancho_banda . '</span></td>';
            $datos_queue .= '<td>' . $ARRAY[$x]['target'] . '</td>';
            $datos_queue .= '<td>' . $segmento_comercial . '</td>';
            $datos_queue .= '</tr>';
            echo $datos_queue;
        }
    } else {
        // si no hay ningun binding
        echo "No hay ningun IP-Bindings. //<br/>";
    }
    ?>
            </tbody>
            </table>