Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Network İzleme

    Scheduled Pinned Locked Moved Turkish
    6 Posts 3 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      en2li2
      last edited by

      Merhabalar, cihazları pingleyerek cihaz durumlarını gösterebilecek (çalışıp,çalışmadıgını) bir yazılım var mı pfsense te veya ubuntuda çalışabilecek

      1 Reply Last reply Reply Quote 0
      • E
        ertugrulgazi
        last edited by

        merhaba işinizi görecektir.

        /*
         *
         * Use the examples below to add your own servers. Coded by clone1018 [?]
         *
         */
        $title = "Simple Server Status"; // website's title
        $servers = array(
        
            'Google Web Search' => array(
                'ip' => 'google.com',
                'port' => 80,
                'info' => 'Hosted by The Cloud',
                'purpose' => 'Web Search'
            ),
            'Example Down Host' => array(
                'ip' => 'example.com',
                'port' => 8091,
                'info' => 'ShittyWebHost3',
                'purpose' => 'No purpose'
            )
        
        );
        
        if (isset($_GET['host'])) {
            $host = $_GET['host'];
        
            if (isset($servers[$host])) {
                header('Content-Type: application/json');
        
                $return = array(
                    'status' => test($servers[$host])
                );
        
                echo json_encode($return);
                exit;
            } else {
                header("HTTP/1.1 404 Not Found");
            }
        }
        
        $names = array();
        foreach ($servers as $name => $info) {
            $names[$name] = md5($name);
        }
        
        ?>
        
                <title><?php echo $title; ?></title>
        
                             $server): ?>
        
        |  | Name | Host | Purpose |
        | --- | --- | --- | --- |
        |  |  |  |  |
        
        /* Misc at the bottom */
        function test($server) {
            $socket = @fsockopen($server['ip'], $server['port'], $errorNo, $errorStr, 3);
            if ($errorNo == 0) {
                return true;
            } else {
                return false;
            }
        }
        
        function in_array_r($needle, $haystack, $strict = false) {
            foreach ($haystack as $item) {
                if (($strict ? $item === $needle : $item == $needle) || (is_array($item) && in_array_r($needle, $item, $strict))) {
                    return true;
                }
            }
        
            return false;
        }
        
        ?>
        
        1 Reply Last reply Reply Quote 0
        • S
          sametyilmaznet
          last edited by

          Selam,

          Soru için aşağıdaki etiketleri araştırmanızı öneririm.

          #cacti #prtg #nagios  #snmp

          Samet YILMAZ
          Blog : http://www.sametyilmaz.com.tr
          Facebook Grup : https://www.facebook.com/groups/pfsenseturkey
          E-Posta : sametyilmaz[at]yandex[dot]com

          1 Reply Last reply Reply Quote 0
          • E
            en2li2
            last edited by

            Teşekkür ederim çalıştı istedigim gibi.
            Ama log tutsa ve cihaz düştügünde belirli bir süre baglanamadıgında mail atabilse daha iyi olurdu bence Ama emegine saglık

            1 Reply Last reply Reply Quote 0
            • E
              ertugrulgazi
              last edited by

              @en2li2:

              Teşekkür ederim çalıştı istedigim gibi.
              Ama log tutsa ve cihaz düştügünde belirli bir süre baglanamadıgında mail atabilse daha iyi olurdu bence Ama emegine saglık

              hocam bunu ben yazmadım bahsettiğiniz mümkün fakat biraz php bilgisi gerekli bununla sadece modemlere ping atıp sonucu görüyorsunuz  samet hocam etiket paylaşmış onları araştırmalısınz bu arada teşşekkürler sayesinde yeni şeyler öğrene biliyoruz.

              1 Reply Last reply Reply Quote 0
              • E
                en2li2
                last edited by

                Sagolsun samet hocam onun sayesinde cacti kurdum onu kurcalıyorum hala :D Eline saglık seninde ustam

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.