mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add webinterface support for IPMI poller
git-svn-id: http://www.observium.org/svn/observer/trunk@1766 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
59
html/pages/device/edit/ipmi.inc.php
Normal file
59
html/pages/device/edit/ipmi.inc.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
if($_POST['editing']) {
|
||||
if($_SESSION['userlevel'] > "7") {
|
||||
include("includes/device-ipmi-edit.inc.php");
|
||||
}
|
||||
}
|
||||
|
||||
$device = mysql_fetch_assoc(mysql_query("SELECT * FROM `devices` WHERE `device_id` = '".$device['device_id']."'"));
|
||||
$descr = $device['purpose'];
|
||||
|
||||
if($updated && $update_message) {
|
||||
print_message($update_message);
|
||||
} elseif ($update_message) {
|
||||
print_error($update_message);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<table cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="edit" name="edit" method="post" action="">
|
||||
<input type=hidden name="editing" value="yes">
|
||||
<table width="500" border="0">
|
||||
<tr>
|
||||
<td width="150"><div align="right">IPMI/BMC Hostname</div></td>
|
||||
<td colspan="3"><input name="ipmi_hostname" size="32" value="<?php echo get_dev_attrib($device,'ipmi_hostname'); ?>"></input></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div align="right">IPMI/BMC Username</div></td>
|
||||
<td colspan="3"><input name="ipmi_username" size="32" value="<?php echo get_dev_attrib($device,'ipmi_username'); ?>"></input></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div align="right">IPMI/BMC Password</div></td>
|
||||
<td colspan="3"><input name="ipmi_password" size="32" value="<?php echo get_dev_attrib($device,'ipmi_password'); ?>"></input></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="3">
|
||||
<br />
|
||||
<input type="submit" name="Submit" value="Save" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
To disable IPMI polling, please clear the setting fields and click <b>Save</b>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
</form>
|
||||
</td>
|
||||
<td width="50"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user