root@pve1:~# perl /var/web-gui/data/wwwroot/cgi-bin/admin.pl
sh: 1: sudo: not found
Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> // ZFS appliance </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="3600;url=/cgi-bin/admin.pl?action=logout_admin" />
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<!-- jquery, always needed -->
<script type="text/javascript" src="/_doc/menu/inc/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="/_doc/exist.js"></script>
<!-- predefine to avoid error if missing on some pages -->
<script type="text/javascript">
function rgraph_iostat() { }
function rgraph_arczilstat() { }
function rgraph_netstat() { }
function rgraph_cpustat() { }
function rgraph_servicestat() { }
</script>
<!-- napp-it related, you may edit a copy under /_my/ -->
<link rel='stylesheet' type='text/css' href='/_doc/menu.css'>
<script type='text/javascript' src='/_doc/napp-it.js'></script>
<!-- rgraph related on about and statistics -->
<script src="/_doc/rgraph/RGraph.common.core.js" ></script>
<script src="/_doc/rgraph/RGraph.common.dynamic.js" ></script>
<script src="/_doc/rgraph/RGraph.common.tooltips.js" ></script>
<script src="/_doc/rgraph/RGraph.common.key.js" ></script>
<script src="/_doc/rgraph/RGraph.hbar.js" ></script>
<!--[if lt IE 9]><script src="/_doc/excanvas/excanvas.js"></script><![endif]-->
<script type="text/javascript">
function auto_load(){
$.ajax({
url: "/cgi-bin/admin-mon.pl",
cache: false,
data: {
id : "",
l1 : "",
l2 : "",
l3 : "",
prop : "",
prop2 : "",
list : ""
},
success: function(data){
$("#auto_load_div").html(data);
var mess = data;
var arr = mess.split("<~>");
if (arr[0] != '') { $('#status_time').html(arr[0]); } // time
if (arr[1] != '') { $('#status_info').html(arr[1]); } // status line
if (arr[2] != '') { $('#content').html(arr[2]); } // div #content update
if (arr[3] != '') { $('#wsarea').html(arr[3]); } // div #wsarea update
if (arr[4] != '') { $('#wsdata').html(arr[4]); } // div #wsdata update
if (arr[5] != '') { rgraph_iostat(arr[5]); } // draw rgraph with ws data5
if (arr[6] != '') { rgraph_arczilstat(arr[6]); } // draw rgraph with ws data
if (arr[7] != '') { rgraph_netstat(arr[7]); } // draw rgraph with ws data
if (arr[8] != '') { rgraph_cpustat(arr[8]); } // draw rgraph with ws data
if (arr[9] != '') { rgraph_servicestat(arr[9]); } // draw rgraph with ws data
}
});
}
$(document).ready(function(){
auto_load(); //Call auto_load() function when DOM is Ready
});
//Refresh auto_load() function after 1000 milliseconds
setInterval(auto_load,1000);
</script>
</head><body>
<div id="header">
<div id="header2">
<div id="nilogo"><img src='/_doc/logo.png' alt=''></div>
<span id="host"></span>
<span id="release"> ZFS appliance v. 17.01 free Apr.14.2017</span>
</div>
</div>
<!-- center-->
<div id='center_log' style='position: absolute; z-index:2000; top: 150px; left: 10px; padding:0px; margin:0px auto; width: 100%; text-align:center;'>
<div id='mylog_close'>
<div style='position:absolute; z-index: 2002; width: 870px; text-align:center; margin-top:2px'><a title="move me" href="#" onmousedown="dragStart(event, 'center_log')"><b>Monitor extension</b></a></div>
<div style='position:absolute; z-index: 2001; width: 900px; text-align:right'>
<a href='#' onclick="$('#mylog_close').animate({height: 'hide', opacity: 'hide'}, 'fast');$('.logwindow').animate({height: 'hide', opacity: 'hide'}, 'fast');" title='close'><img src='/_doc/close.png' alt=''></a>
</div>
</div>
<div id='mylog_cmd' class='logwindow'><br>Monitor-Extension: Command Log
</div>
<div id='minilog' style='position:fixed; bottom:0px; display:none; width: 100%; height: 45px; z-index: 20'> minilog<br>
</div>
<div id='miniover' style='position:fixed; bottom:0px; width: 100%; height: 6px; z-index: 21'> <br>
</div>
</div><!-- end center -->
<style type="text/css">
#status { position: absolute; width:99%; text-align: right; top:78px; z-index:9; } }
</style>
<!--nows-->
<table style="width:99%; height:60%">
<tr><td>
<div id='status'>
<div id='status_time' style='display:inline;z-index: 111'> PRO Monitor: <i>inactive</i> </div>
<div id='status_info' style='display:inline; margin-left:8px'>
<a title="Pool state"> Pool <img src='/_doc/grey.png' alt='Pool state'> </a>
<a title="ZFS pool capacity"> Cap <img src='/_doc/grey.png' alt='Capacity'> </a>
<a title="ZFS disk activity"> Disk <img src='/_doc/grey.png' alt='Disk activity'> </a>
<a title="Network activity"> Net <img src='/_doc/grey.png' alt='Network activity'> </a>
<a title="CPU activity"> CPU <img src='/_doc/grey.png' alt='CPU activity'> </a>
<a title="Job state"> Job <img src='/_doc/grey.png' alt='Job state'> </a>
</div>
</div>
</td></tr>
<tr>
<td style="vertical-align:middle; text-align: center; padding-top: 30px">
<form name="login" method="post" action="/cgi-bin/admin.pl">
<table border="0" style="margin:auto; text-align:left; width: 450px; height:180px; border: 1px solid #cccccc; background-color: #cccccc">
<tr style='background: url(/_doc/oibg.png) repeat-x'>
<td colspan="2" style="text-align:left; padding-left: 190px; vertical-align: middle; height: 25px;font-size:16px"><b>Login</b></td>
</tr>
<tr style='background: url(/_doc/oibg.png) repeat-x'>
<td style="width: 160px; text-align: right; vertical-align: middle; height: 25px;font-size:13px"><b>user:</b> </td>
<td style="vertical-align: middle; height: 25px; font-size: 14px"> <select name="name" class="select" style="width: 107px">
<option selected>admin</option>
<option>operator</option>
</select>
</td>
</tr>
<tr style='background: url(/_doc/oibg.png) repeat-x'>
<td style="width: 160px; text-align: right; vertical-align: middle; height: 25px;font-size:13px"><b>pass:</b> </td>
<td style="vertical-align: middle; height: 20px"><input type="password" name="pass" style='font-size: 12px; width: 100px'>
<input type='submit' name='submit' value='login' style='font-size: 11px; margin-left:30px'>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:left; background-color:#eeeeee; padding:8px"">
<br><br>
<font style="font-size:11px"><b>Info: </b><br>First login: admin, no password; delete *.cfg in the _log folder to get defaults<br><br>
Please do not disable Javascript. For realtime monitoring you need a HTML5 <br>
websocket capable browser. For https and websocket prefer Google Chrome. <br>
It is suggested to use a secure SAN or network for management.<br><br>
<span style="color:#ff0000"></span></font>
<br><br>
</td>
</tr></table>
</form>
</td>
</tr></table>
</div>
<!--admin 2379--></body></html>
<script type="text/javascript">
$("#mylog_cmd").append("<hr>--- \/var\/web-gui\/data\/wwwroot\/cgi-bin\/admin-lib.pl &log_add 855 <- \/var\/web-gui\/data\/wwwroot\/cgi-bin\/admin.pl &log_end 3016 <- \/var\/web-gui\/data\/wwwroot\/cgi-bin\/admin.pl &login 218 ---<br><br> <br><br> - End logging, details see monitor extension + topmenu edit-<br><br>");
$("#mylog_cmd").animate({ scrollTop: $("#mylog_cmd").prop("scrollHeight") }, 50);
$("#minilog").append("--- \/var\/web-gui\/data\/wwwroot\/cgi-bin\/admin-lib.pl &log_add 855 <- \/var\/web-gui\/data\/wwwroot\/cgi-bin\/admin.pl &log_end 3016 <- \/var\/web-gui\/data\/wwwroot\/cgi-bin\/admin.pl &login 218 ---<br><br> <br><br> - End logging, details see monitor extension + topmenu edit-<br>");
$("#minilog").animate({ scrollTop: $("#minilog").prop("scrollHeight") }, 10);
</script>
<script type="text/javascript">
$("#minilog").val("more >> topmenu Edit + monitor extension.");
$("#mylog_close").animate({height: 'hide', opacity: 'hide'}, 'fast');
$("#mylog_cmd").animate({height: 'hide', opacity: 'hide'}, 'fast');
$("#minilog").animate({opacity: 'hide'}, 'slow');
$("#miniover").mouseenter(function() {
$("#minilog").animate({height: 'show', opacity: 'show'}, 'slow');
});
$("#miniover").mouseleave(function() {
$("#minilog").animate({height: 'hide', opacity: 'hide'}, 'slow');
});
</script>