Network İzleme
-
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
-
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; } ?>
-
Selam,
Soru için aşağıdaki etiketleri araştırmanızı öneririm.
#cacti #prtg #nagios #snmp
-
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 -
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ıkhocam 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.
-
Sagolsun samet hocam onun sayesinde cacti kurdum onu kurcalıyorum hala :D Eline saglık seninde ustam