snmpwalk.php 888 B

12345678910111213141516171819202122232425
  1. <?php
  2. require_once ($_SERVER['DOCUMENT_ROOT']."/inc/auth.php");
  3. require_once ($_SERVER['DOCUMENT_ROOT']."/inc/languages/" . $language . ".php");
  4. require_once ($_SERVER['DOCUMENT_ROOT']."/inc/idfilter.php");
  5. ?>
  6. <html>
  7. <head>
  8. <title>Панель администратора</title>
  9. <link rel="stylesheet" type="text/css" href=<? echo "\"/$style.css\""; ?>>
  10. <meta http-equiv="content-type" content="application/xhtml+xml">
  11. <meta charset="UTF-8">
  12. </head>
  13. <body>
  14. <div id="cont">
  15. <?php
  16. $dev_info = get_record($db_link,'devices','id='.$id);
  17. $interfaces = get_snmp_interfaces($dev_info['ip'], $dev_info['community'], $dev_info['snmp_version']);
  18. print "<table class=\"data\" cellspacing=\"1\" cellpadding=\"4\">\n";
  19. print "<tr><td><b>Snmp interfaces</b></td></tr>\n";
  20. foreach ($interfaces as $key => $int) { print "<tr><td>$key => $int</td></tr>"; }
  21. print "</table>\n";
  22. ?>
  23. </div>
  24. </body>
  25. </html>