📄 index.jsp
字号:
<!--//// This file is part of the OpenNMS(R) Application.//// OpenNMS(R) is Copyright (C) 2002-2003 The OpenNMS Group, Inc. All rights reserved.// OpenNMS(R) is a derivative work, containing both original code, included code and modified// code that was published under the GNU General Public License. Copyrights for modified // and included code are below.//// OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.//// Modifications://// 2003 Feb 07: Fixed URLEncoder issues.// 2002 Nov 26: Fixed breadcrumbs issue.// 2002 Sep 24: Added a "select" option for SNMP data and a config page.// 2002 Sep 19: Added a "delete nodes" page to the webUI.// // Original code base Copyright (C) 1999-2001 Oculan Corp. All rights reserved.//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//// For more information contact:// OpenNMS Licensing <license@opennms.org>// http://www.opennms.org/// http://www.opennms.com///--><%@page language="java" contentType="text/html" session="true" import="org.opennms.netmgt.config.NotifdConfigFactory" %><html><head> <title>Admin | OpenNMS Web Console</title> <base HREF="<%=org.opennms.web.Util.calculateUrlBase( request )%>" /> <link rel="stylesheet" type="text/css" href="includes/styles.css" /><script language="Javascript" type="text/javascript" > function addInterfacePost() { document.addInterface.action="admin/newInterface.jsp?action=new"; document.addInterface.submit(); } function deletePost() { document.deleteNodes.submit(); } function submitPost() { document.getNodes.submit(); } function manageRanges() { document.manageRanges.submit(); } function snmpManagePost() { document.snmpManage.submit(); } function manageSnmp() { document.manageSnmp.submit(); } function snmpConfigPost() { document.snmpConfig.action="admin/snmpConfig.jsp"; document.snmpConfig.submit(); } function networkConnection() { document.networkConnection.submit(); } function dns() { document.dns.submit(); } function communication() { document.communication.submit(); } </script></head><body marginwidth="0" marginheight="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0"><% String breadcrumb1 = "Admin"; %><jsp:include page="/includes/header.jsp" flush="false" > <jsp:param name="title" value="Admin" /> <jsp:param name="location" value="admin" /> <jsp:param name="breadcrumb" value="<%=breadcrumb1%>" /></jsp:include><!-- Body --><br><FORM METHOD="POST" NAME="getNodes" ACTION="admin/getNodes"> <input type="hidden"/></FORM><FORM METHOD="POST" NAME="addInterface"> <input type="hidden"/></FORM><FORM METHOD="POST" NAME="deleteNodes" ACTION="admin/deleteNodes"> <input type="hidden"/></FORM><FORM METHOD="POST" NAME="snmpManage" ACTION="admin/snmpGetNodes"> <input type="hidden"/></FORM><FORM METHOD="POST" NAME="snmpConfig" ACTION="admin/snmpConfig"> <input type="hidden"/></FORM><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td> </td> <td valign="top"> <h3>Admin Options</h3> <p> <a href="admin/userGroupView/index.jsp">Configure Users and Groups</a> <!-- <p> <a HREF="admin/eventconf/list.jsp">Configure Events</a> --> <p> <a HREF="admin/notification/index.jsp">Configure Notifications</a> <p> <a HREF="javascript:submitPost()">Manage and Unmanage Interfaces and Services</a> <p> <a HREF="javascript:snmpManagePost()">Configure SNMP Data Collection per Interface</a> <p> <a HREF="javascript:snmpConfigPost()">Configure SNMP Community Names by IP</a> <p> <a HREF="javascript:addInterfacePost()">Add Interface</a> <p> <a HREF="javascript:deletePost()">Delete Nodes</a> <p> <a HREF="admin/pollerConfig/index.jsp">Configure Pollers</a> <p> <a HREF="admin/asset/index.jsp">Import and Export Asset Information</a> <p> <a HREF="admin/sched-outages/index.jsp">Scheduled Outages</a> <p> <!-- security link --> <FORM METHOD="POST" NAME="notificationStatus" ACTION="admin/updateNotificationStatus"> <%String status = "Unknown"; try { NotifdConfigFactory.init(); status = NotifdConfigFactory.getInstance().getPrettyStatus(); } catch (Exception e) { /*if factory can't be initialized, status is already 'Unknown'*/ } %> <table> <tr> <td colspan="3"> <b>Notification Status</b> </td> </tr> <tr> <%if (status.equals("Unknown")) { %> <td> <font color="FF0000">Unknown</font> </td> <% } %> <td> <input type="radio" name="status" value="on" <%=(status.equals("On") ? "checked" : "")%>> ON</input><br> <input type="radio" name="status" value="off" <%=(status.equals("Off") ? "checked" : "")%>> OFF</input> </td> <td> <input type="submit" value="Update Status"> </td> <%if (!status.equals("Unknown")) { %> <td> </td> <% } %> </tr> </table> </FORM> </p> </td> <td> </td> <td valign="top" width="60%"> <h3>Option Descriptions</h3> <p><b>Configure Users and Groups</b> allows you, the Administrator, to add, modify or delete existing users. If adding or modifying users, be prepared with user IDs, passwords, notification contact information (pager numbers and/or email addresses), and duty schedule information. You can then Add users to <em>Groups</em>. </p> <p><b>Configure Notifications</b> allows you to create new notification escalation plans, called <em>notification paths</em>, and then associate a notification path with an OpenNMS event. Each path can have any arbitrary number of escalations or targets (users or groups) and can send notices through email, pagers, et cetera. Each notification path can be triggered by any number of OpenNMS events and can further be associated with specific interfaces or services. </p> <p>When OpenNMS was first started, the nodes, interfaces, and services in the network were <em>discovered</em>. As your network grows and changes, the TCP/IP ranges you want to manage, as well as the interfaces and services within those ranges, may change. <b>Manage and Unmanage Interfaces and Services</b> allows you to change your OpenNMS configuration along with your network. </p> <P><B>Manage SNMP Data Collection per Interface</b>: This interface will allow you to configure which non-IP interfaces are used in SNMP Data Collection. </P> <P><B>Configure SNMP Community Names by IP</b>: This interface will allow you to configure the Community String used in SNMP Data Collection. </P> <p><b>Add Interface</b> is an interface to add an interface to the database. If the IP address of the interface is contained in the ipAddrTable of an existing node, the interface will be added into the node. Otherwise, a new node will be created. </p> <p><b>Delete Nodes</b> is an interface to permanently delete nodes from the database. </p> <p><b>Configure Pollers</b> provides an easy way to modify the polling status of standard services. It also enables the user to add and delete custom services. </p> <p><b>Import and Export Asset Information</b> provides an easy-to-use interface for adding data to OpenNMS's asset inventory from your database or spreadsheet application, as well as extracting data from the asset inventory for use in your favorite spreadsheet or database. Our comma-delimited file format is supported by most spreadsheet and database applications, and details for using the Import and Export functionalities can be found through this link as well. </p> <p><b>Scheduled Outages</b> provides an interface for adding and editing scheduled outages. You can pause notifications, polling, thresholding and data collection (or any combination of the four) for any interface/node for any time. </p> <p><b>Notification Status</b> provides both a visual reminder as to whether your users are being paged/emailed when important network events are received, as well as providing a way to turn the notification system on or off. <b>This is a system-wide setting affecting all notifications and all users.</b> Note that the current status of notifications is reflected in the upper right-hand corner of every OpenNMS screen with either a <em>Notices On</em> or <em>Notices Off</em> banner. </p> </td> <td> </td> </tr></table><br><jsp:include page="/includes/footer.jsp" flush="false" > <jsp:param name="location" value="admin" /></jsp:include></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -