2008-07-31 Ramon Novoa <rnovoa@artica.es>
* include/help/en/help_wmiquery.php, include/help/en/help_wmifield.php, include/help/en/help_wmikey.php: Added to repository. WMI help pages. * include/languages/language_en.php, pandoradb.sql, pandoradb_data.sql, godmode/agentes/agent_template.php, godmode/agentes/module_manager_editor_network.php, godmode/agentes/module_manager_editor_wmi.php, godmode/agentes/module_manager_editor.php, godmode/modules/manage_network_components_form.php, godmode/modules/manage_network_components.php: Added support for WMI modules, including components and templates. * godmode/modules/manage_network_components_form_network.php, godmode/modules/manage_network_components_form_wmi.php: Added to repository. Component editors. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
497617d5e6
commit
33fbe0f64e
|
@ -1,3 +1,22 @@
|
|||
2008-07-31 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/help/en/help_wmiquery.php,
|
||||
include/help/en/help_wmifield.php,
|
||||
include/help/en/help_wmikey.php: Added to repository. WMI help pages.
|
||||
* include/languages/language_en.php, pandoradb.sql,
|
||||
pandoradb_data.sql,
|
||||
godmode/agentes/agent_template.php,
|
||||
godmode/agentes/module_manager_editor_network.php,
|
||||
godmode/agentes/module_manager_editor_wmi.php,
|
||||
godmode/agentes/module_manager_editor.php,
|
||||
godmode/modules/manage_network_components_form.php,
|
||||
godmode/modules/manage_network_components.php: Added support for WMI
|
||||
modules, including components and templates.
|
||||
* godmode/modules/manage_network_components_form_network.php,
|
||||
godmode/modules/manage_network_components_form_wmi.php: Added to
|
||||
repository. Component editors.
|
||||
|
||||
|
||||
2008-07-30 Sancho Lerena <slerena@gmail.com>
|
||||
|
||||
* pandoradb.sql: Some changes in structure for new export server. Removed
|
||||
|
|
|
@ -60,7 +60,7 @@ if (isset($_POST["template_id"])){
|
|||
while ($row2=mysql_fetch_array($result2)){
|
||||
// Insert each module from tnetwork_component into agent
|
||||
$module_sql = "INSERT INTO tagente_modulo
|
||||
(id_agente, id_tipo_modulo, descripcion, nombre, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, ip_target, id_module_group, id_modulo)
|
||||
(id_agente, id_tipo_modulo, descripcion, nombre, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, ip_target, id_module_group, id_modulo, plugin_user, plugin_pass, plugin_parameter, max_timeout)
|
||||
VALUES ( $id_agente,
|
||||
'".$row2["type"]."',
|
||||
'".$row2["description"]."',
|
||||
|
@ -75,7 +75,11 @@ if (isset($_POST["template_id"])){
|
|||
'".$row2["snmp_oid"]."',
|
||||
'$direccion_agente',
|
||||
'".$row2["id_module_group"]."',
|
||||
'2'
|
||||
'".$row2["id_modulo"]."',
|
||||
'".$row2["plugin_user"]."',
|
||||
'".$row2["plugin_pass"]."',
|
||||
'".$row2["plugin_parameter"]."',
|
||||
'".$row2["max_timeout"]."'
|
||||
)";
|
||||
mysql_query ($module_sql);
|
||||
$id_agente_modulo = mysql_insert_id();
|
||||
|
|
|
@ -51,7 +51,7 @@ if($form_network_component == "")
|
|||
$form_network_component = get_parameter_post("form_network_component", "");
|
||||
|
||||
// Using network component to fill some fields
|
||||
if (($form_moduletype == "networkserver") && ($form_network_component != "") && (!isset($_POST['crtbutton'])) && (!isset($_POST['oid']))){
|
||||
if (($form_moduletype == "networkserver" || $form_moduletype == "wmiserver") && ($form_network_component != "") && (!isset($_POST['crtbutton'])) && (!isset($_POST['oid']))){
|
||||
// Preload data from template
|
||||
$row = get_db_row ("tnetwork_component", 'id_nc', $form_network_component);
|
||||
if ($row == 0){
|
||||
|
@ -70,12 +70,12 @@ if (($form_moduletype == "networkserver") && ($form_network_component != "") &&
|
|||
$form_interval = $row["module_interval"];
|
||||
$form_maxvalue = $row["max"];
|
||||
$form_minvalue = $row["min"];
|
||||
$form_max_timeout = "";
|
||||
$form_max_timeout = $row["max_timeout"];
|
||||
$form_id_export = 0;
|
||||
$form_disabled = 0;
|
||||
$form_plugin_user = "";
|
||||
$form_plugin_pass = "";
|
||||
$form_plugin_parameter = "";
|
||||
$form_plugin_user = $row["plugin_user"];
|
||||
$form_plugin_pass = $row["plugin_pass"];
|
||||
$form_plugin_parameter = $row["plugin_parameter"];
|
||||
$form_prediction_module = "";
|
||||
$form_id_plugin = "";
|
||||
$form_post_process = "";
|
||||
|
|
|
@ -107,7 +107,7 @@ if ($update_module_id != NULL){
|
|||
} else {
|
||||
echo '<select name="form_network_component">';
|
||||
echo '<option>---'.$lang_label["manual_config"].'---</option>';
|
||||
$sql1='SELECT * FROM tnetwork_component ORDER BY name';
|
||||
$sql1='SELECT * FROM tnetwork_component WHERE id_modulo = 2 ORDER BY name';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_nc"]."'>";
|
||||
|
|
|
@ -43,7 +43,7 @@ if ($update_module_id != NULL){
|
|||
}
|
||||
else{
|
||||
$id_agente = $row['id_agente'];
|
||||
$form_id_tipo_modulo = $row['id_tipo_modulo']; // It doesn't matter
|
||||
$form_id_tipo_modulo = $row['id_tipo_modulo'];
|
||||
$form_description = $row['descripcion'];
|
||||
$form_name = $row['nombre'];
|
||||
$form_minvalue = $row['min'];
|
||||
|
@ -92,6 +92,36 @@ echo "<input type='hidden' name='id_agente_modulo'' value='".$update_module_id."
|
|||
// id_modulo 6 - WMI
|
||||
echo "<input type='hidden' name='form_id_modulo' value='6'>";
|
||||
|
||||
// WMI component usage
|
||||
echo "<tr><td class='datos3'>";
|
||||
echo lang_string ("using_network_component");
|
||||
pandora_help ("network_component");
|
||||
echo "</td><td class='datos3' colspan=2>";
|
||||
|
||||
if ($update_module_id != NULL){
|
||||
echo "<span class='redi'>Not available in edition mode</span>";
|
||||
echo "<input type='hidden' name='form_id_tipo_modulo' value='".$form_id_tipo_modulo."'>";
|
||||
} else {
|
||||
echo '<select name="form_network_component">';
|
||||
echo '<option>---'.$lang_label["manual_config"].'---</option>';
|
||||
$result=mysql_query('SELECT * FROM tnetwork_component WHERE id_modulo = 6 ORDER BY name');
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_nc"]."'>";
|
||||
echo substr($row["name"],0,30);
|
||||
echo " / ";
|
||||
echo substr($row["description"],0,15);
|
||||
echo "</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
}
|
||||
|
||||
echo '</td>';
|
||||
echo '<td class="datos3">';
|
||||
echo '<input type="hidden" name="form_moduletype" value="'.$form_moduletype.'">';
|
||||
if ($update_module_id == NULL){
|
||||
echo '<input align="right" name="updbutton" type="submit" class="sub next" value="'.$lang_label["get_data"].'">';
|
||||
}
|
||||
|
||||
// Name / IP_target
|
||||
echo '<tr>';
|
||||
echo '<td class="datos2">'.lang_string ("module_name")."</td>";
|
||||
|
@ -104,15 +134,21 @@ echo '</tr>';
|
|||
echo '<tr>';
|
||||
echo '<td class="datos">'.lang_string ("ip_target")."</td>";
|
||||
echo '<td class="datos"><input type="text" name="form_ip_target" size="20" value="'.$form_ip_target.'"></td>';
|
||||
echo '<td class="datos">'.lang_string ("WMI Query")."</td>";
|
||||
echo '<td class="datos">'.lang_string ("WMI Query");
|
||||
pandora_help("wmiquery");
|
||||
echo "</td>";
|
||||
echo '<td class="datos"><input type="text" name="form_snmp_oid" size="25" value="'.$form_snmp_oid.'"></td>';
|
||||
echo '</tr>';
|
||||
|
||||
// Specific string and field number
|
||||
echo '<tr>';
|
||||
echo '<td class="datos2">'.lang_string ("Key string")."</td>";
|
||||
echo '<td class="datos2">'.lang_string ("Key string");
|
||||
pandora_help("wmikey");
|
||||
echo "</td>";
|
||||
echo '<td class="datos2"><input type="text" name="form_snmp_community" size="20" value="'.$form_snmp_community.'"></td>';
|
||||
echo '<td class="datos2">'.lang_string ("Answer field number")."</td>";
|
||||
echo '<td class="datos2">'.lang_string ("Field number");
|
||||
pandora_help("wmifield");
|
||||
echo "</td>";
|
||||
echo '<td class="datos2"><input type="text" name="form_tcp_port" size="3" value="'.$form_tcp_port.'"></td>';
|
||||
echo '</tr>';
|
||||
|
||||
|
@ -136,6 +172,9 @@ if ($update_module_id != NULL){
|
|||
echo "<input type='hidden' name='form_id_tipo_modulo' value='".$form_id_tipo_modulo."'>";
|
||||
} else {
|
||||
echo '<select name="form_id_tipo_modulo">';
|
||||
if ($form_id_tipo_modulo != 0) {
|
||||
echo "<option value='".$form_id_tipo_modulo."'>".giveme_module_type($form_id_tipo_modulo)."</option>";
|
||||
}
|
||||
$sql1='SELECT id_tipo, nombre FROM ttipo_modulo WHERE categoria IN (0,1,2) ORDER BY nombre;';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
|
|
|
@ -74,11 +74,21 @@ if (isset($_GET["create"])){ // Create module
|
|||
$module_interval = entrada_limpia($_POST["module_interval"]);
|
||||
if (isset($_POST["id_group"]))
|
||||
$id_group = entrada_limpia($_POST["id_group"]);
|
||||
|
||||
if (isset($_POST["plugin_user"]))
|
||||
$plugin_user = entrada_limpia($_POST["plugin_user"]);
|
||||
if (isset($_POST["plugin_pass"]))
|
||||
$plugin_pass = entrada_limpia($_POST["plugin_pass"]);
|
||||
if (isset($_POST["plugin_parameter"]))
|
||||
$plugin_parameter = entrada_limpia($_POST["plugin_parameter"]);
|
||||
if (isset($_POST["max_timeout"]))
|
||||
$max_timeout = entrada_limpia($_POST["max_timeout"]);
|
||||
if (isset($_POST["id_modulo"]))
|
||||
$id_modulo = entrada_limpia($_POST["id_modulo"]);
|
||||
|
||||
|
||||
$sql_insert="INSERT INTO tnetwork_component (name, description, module_interval, type, max, min, tcp_send, tcp_rcv, tcp_port, snmp_oid, snmp_community, id_module_group, id_group)
|
||||
VALUES ('$name', '$description', '$module_interval', '$type', '$modulo_max', '$modulo_min', '$tcp_send', '$tcp_rcv', '$tcp_port', '$snmp_oid' ,'$snmp_community', '$id_module_group', '$id_group')";
|
||||
$sql_insert="INSERT INTO tnetwork_component (name, description, module_interval, type, max, min, tcp_send, tcp_rcv, tcp_port, snmp_oid, snmp_community, id_module_group, id_group, id_modulo, plugin_user, plugin_pass, plugin_parameter, max_timeout)
|
||||
VALUES ('$name', '$description', '$module_interval', '$type', '$modulo_max', '$modulo_min', '$tcp_send', '$tcp_rcv', '$tcp_port', '$snmp_oid' ,'$snmp_community', '$id_module_group', '$id_group', '$id_modulo', '$plugin_user', '$plugin_pass', '$plugin_parameter', '$max_timeout')";
|
||||
|
||||
$result=mysql_query($sql_insert);
|
||||
if (! $result)
|
||||
echo "<h3 class='error'>".$lang_label["create_no"]."</h3>";
|
||||
|
@ -124,12 +134,21 @@ if (isset($_GET["update"])){ // if modified any parameter
|
|||
$module_interval = entrada_limpia($_POST["module_interval"]);
|
||||
if (isset($_POST["id_group"]))
|
||||
$id_group = entrada_limpia($_POST["id_group"]);
|
||||
if (isset($_POST["plugin_user"]))
|
||||
$plugin_user = entrada_limpia($_POST["plugin_user"]);
|
||||
if (isset($_POST["plugin_pass"]))
|
||||
$plugin_pass = entrada_limpia($_POST["plugin_pass"]);
|
||||
if (isset($_POST["plugin_parameter"]))
|
||||
$plugin_parameter = entrada_limpia($_POST["plugin_parameter"]);
|
||||
if (isset($_POST["max_timeout"]))
|
||||
$max_timeout = entrada_limpia($_POST["max_timeout"]);
|
||||
|
||||
$sql_update ="UPDATE tnetwork_component SET name = '$name',
|
||||
description = '$description', snmp_oid = '$snmp_oid', snmp_community = '$snmp_community',
|
||||
id_group = '$id_group', tcp_rcv = '$tcp_rcv', tcp_send = '$tcp_send', max = '$modulo_max',
|
||||
min = '$modulo_min', tcp_port = '$tcp_port', id_module_group = '$id_module_group', type = '$type',
|
||||
module_interval = '$module_interval' WHERE id_nc = '$id_nc'";
|
||||
module_interval = '$module_interval', plugin_user = '$plugin_user', plugin_pass = '$plugin_pass',
|
||||
plugin_parameter = '$plugin_parameter', max_timeout = '$max_timeout' WHERE id_nc = '$id_nc'";
|
||||
$result=mysql_query($sql_update);
|
||||
if (! $result)
|
||||
echo "<h3 class='error'>".$lang_label["modify_no"]."</h3>";
|
||||
|
@ -159,36 +178,42 @@ echo "<h2>".$lang_label["module_management"]." > ";
|
|||
echo $lang_label["network_component_management"]."</h2>";
|
||||
|
||||
// Show group selector
|
||||
if (isset($_POST["ncgroup"]))
|
||||
if (isset($_POST["ncgroup"])) {
|
||||
$ncgroup = $_POST["ncgroup"];
|
||||
else
|
||||
} else {
|
||||
$ncgroup = 0;
|
||||
echo "<form method='POST' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components'>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr><td colspan='2' valign='top'>";
|
||||
echo "<h3>".$lang_label["filter"]."</h3></td></tr>";
|
||||
echo "<tr><td>".$lang_label["group"]."</td>";
|
||||
echo "<td valign='middle'>";
|
||||
echo "<tr><td>";
|
||||
echo "<form method='POST' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components'>";
|
||||
echo $lang_label["group"] . " ";
|
||||
echo "<select name='ncgroup' onChange='javascript:this.form.submit();'>";
|
||||
|
||||
if ($ncgroup != 0){
|
||||
echo "<option value='$ncgroup'>".give_network_component_group_name($ncgroup)."</option>";
|
||||
}
|
||||
echo "<option value='0'>".$lang_label["all"]."</option>";
|
||||
$sql1 = "SELECT * FROM tnetwork_component_group WHERE id_sg != '$ncgroup' ORDER BY name";
|
||||
$result = mysql_query($sql1);
|
||||
while ($row = mysql_fetch_array ($result))
|
||||
$result = mysql_query("SELECT * FROM tnetwork_component_group WHERE id_sg != '$ncgroup' ORDER BY name");
|
||||
while ($row = mysql_fetch_array ($result)) {
|
||||
echo "<option value='" . $row["id_sg"] . "'>". give_network_component_group_name ($row["id_sg"])."</option>";
|
||||
echo "</select>";
|
||||
echo "<td valign='middle'>";
|
||||
echo "<noscript><input name='uptbutton' type='submit' class='sub' value='".$lang_label["show"]."'></noscript>";
|
||||
echo "</td></form></table><br>";
|
||||
}
|
||||
echo "</select></form></td>";
|
||||
echo "<td>";
|
||||
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&create=1'>";
|
||||
echo "<select name='id_modulo'>";
|
||||
echo "<option value='2'>".lang_string("Create a new network component");
|
||||
echo "<option value='6'>".lang_string("Create a new WMI component");
|
||||
echo "</select> ";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
|
||||
echo "</td></tr></table>";
|
||||
|
||||
if ($ncgroup != 0)
|
||||
if ($ncgroup != 0) {
|
||||
$sql1 = "SELECT * FROM tnetwork_component WHERE id_group = $ncgroup ORDER BY name";
|
||||
else
|
||||
} else {
|
||||
$sql1 = "SELECT * FROM tnetwork_component ORDER BY id_group,name";
|
||||
}
|
||||
|
||||
$result = mysql_query ($sql1);
|
||||
if ( $row = mysql_num_rows ($result)){
|
||||
|
@ -221,7 +246,7 @@ if ( $row = mysql_num_rows ($result)){
|
|||
$module_group2 = $row["id_module_group"];
|
||||
|
||||
echo "<tr><td class='".$tdcolor."_id'>";
|
||||
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&update=1&id_nc=".$row["id_nc"]."'>".$nombre_modulo."</a></td>";
|
||||
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&update=1&id_modulo=".$row["id_modulo"]."&id_nc=".$row["id_nc"]."'>".$nombre_modulo."</a></td>";
|
||||
echo "<td class='".$tdcolor."f9'>";
|
||||
if ($id_tipo > 0) {
|
||||
echo "<img src='images/".show_icon_type($id_tipo)."' border='0'>";
|
||||
|
@ -248,13 +273,8 @@ if ( $row = mysql_num_rows ($result)){
|
|||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
echo "<table width='750px'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&create=1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
|
||||
echo "</form></td></tr></table>";
|
||||
|
||||
} else
|
||||
} else {
|
||||
echo "<div class='nf'>No modules</div>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -14,123 +14,7 @@
|
|||
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
?>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
function type_change()
|
||||
{
|
||||
// type 1-4 - Generic_xxxxxx
|
||||
if ((document.modulo.tipo.value > 0) && (document.modulo.tipo.value < 5)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#ddd";
|
||||
document.modulo.ip_target.disabled=true;
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
// type 15-18- SNMP
|
||||
if ((document.modulo.tipo.value > 14) && (document.modulo.tipo.value < 19 )){
|
||||
document.modulo.snmp_oid.style.background="#fff";
|
||||
document.modulo.snmp_oid.style.disabled=false;
|
||||
document.modulo.snmp_community.style.background="#fff";
|
||||
document.modulo.snmp_community.disabled=false;
|
||||
document.modulo.combo_snmp_oid.style.background="#fff";
|
||||
document.modulo.combo_snmp_oid.disabled=false;
|
||||
document.modulo.oid.disabled=false;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
if (document.modulo.tipo.value == 18) {
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
} else {
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
}
|
||||
// type 6-7 - ICMP
|
||||
if ((document.modulo.tipo.value == 6) || (document.modulo.tipo.value == 7)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.combo_snmp_oid.style.background="#ddd";
|
||||
document.modulo.combo_snmp_oid.disabled=true;
|
||||
document.modulo.oid.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
// type 8-11 - TCP
|
||||
if ((document.modulo.tipo.value > 7) && (document.modulo.tipo.value < 12)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#fff";
|
||||
document.modulo.tcp_send.disabled=false;
|
||||
document.modulo.tcp_rcv.style.background="#fff";
|
||||
document.modulo.tcp_rcv.disabled=false;
|
||||
document.modulo.tcp_port.style.background="#fff";
|
||||
document.modulo.tcp_port.disabled=false;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
}
|
||||
// type 12 - UDP
|
||||
if (document.modulo.tipo.value == 12){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#fff";
|
||||
document.modulo.tcp_send.disabled=false;
|
||||
document.modulo.tcp_rcv.style.background="#fff";
|
||||
document.modulo.tcp_rcv.disabled=false;
|
||||
document.modulo.tcp_port.style.background="#fff";
|
||||
document.modulo.tcp_port.disabled=false;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<?PHP
|
||||
|
||||
// Load global vars
|
||||
require("include/config.php");
|
||||
|
||||
|
@ -146,143 +30,12 @@ if (give_acl($id_user, 0, "PM")!=1) {
|
|||
exit;
|
||||
}
|
||||
|
||||
if (isset($_GET["update"])){ // Edit mode
|
||||
$id_nc = entrada_limpia ($_GET["id_nc"]);
|
||||
$sql1 = "SELECT * FROM tnetwork_component where id_nc = $id_nc ORDER BY name";
|
||||
$result=mysql_query($sql1);
|
||||
$row=mysql_fetch_array($result);
|
||||
$name = $row["name"];
|
||||
$type = $row["type"];
|
||||
$description = $row["description"];
|
||||
$modulo_max = $row["max"];
|
||||
$modulo_min = $row["min"];
|
||||
$module_interval = $row["module_interval"];
|
||||
$tcp_port = $row["tcp_port"];
|
||||
$tcp_rcv = $row["tcp_rcv"];
|
||||
$tcp_send = $row["tcp_send"];
|
||||
$snmp_community = $row["snmp_community"];
|
||||
$snmp_oid = $row["snmp_oid"];
|
||||
$id_module_group = $row["id_module_group"];
|
||||
$id_group = $row["id_group"];
|
||||
} elseif (isset($_GET["create"])){
|
||||
$id_nc = -1;
|
||||
$name = "";
|
||||
$snmp_oid = "";
|
||||
$description = "";
|
||||
$id_group = 1;
|
||||
$oid = "";
|
||||
$modulo_max = "0";
|
||||
$modulo_min = "0";
|
||||
$module_interval = "0";
|
||||
$tcp_port = "";
|
||||
$tcp_rcv = "";
|
||||
$tcp_send = "";
|
||||
$snmp_community = "public";
|
||||
$id_module_group = "";
|
||||
$id_group = "";
|
||||
$type = 0;
|
||||
$id_modulo = (int) get_parameter ("id_modulo", "");
|
||||
if ($id_modulo == 6) {
|
||||
require ("godmode/modules/manage_network_components_form_wmi.php");
|
||||
}
|
||||
|
||||
echo "<h2>".$lang_label["network_component_management"]."</h2>";
|
||||
echo '<table width="700" cellspacing="4" cellpadding="4" class="databox_color">';
|
||||
|
||||
// Different Form url if it's a create or if it's a update form
|
||||
if ($id_nc != -1) {
|
||||
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&update=1&id_nc=$id_nc'>";
|
||||
} else {
|
||||
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&create=1'>";
|
||||
else if ($id_modulo == 2){
|
||||
require ("godmode/modules/manage_network_components_form_network.php");
|
||||
}
|
||||
echo "<tr>";
|
||||
echo '<tr><td class="datos2">'.$lang_label["module_name"];
|
||||
echo "<td class='datos2'><input type='text' name='name' size='25' value='$name'>";
|
||||
|
||||
//-- Module type combobox
|
||||
echo "<td class='datos2'>".$lang_label["module_type"]."</td>";
|
||||
echo "<td class='datos2'>";
|
||||
echo '<select name="tipo" onChange="type_change()">';
|
||||
$sql1="SELECT id_tipo, nombre FROM ttipo_modulo WHERE id_tipo != '$type' ORDER BY nombre";
|
||||
$result=mysql_query($sql1);
|
||||
echo "<option value='$type'>". dame_nombre_tipo_modulo($type);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_tipo"]."'>".$row["nombre"]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
|
||||
echo "</td></tr>";
|
||||
echo "<tr>";
|
||||
echo "<td class='datos'>".$lang_label["group"]."</td>";
|
||||
echo "<td class='datos'>";
|
||||
echo "<select name='id_group'>";
|
||||
echo "<option value='$id_group'>".give_network_component_group_name($id_group)."</option>";
|
||||
$sql1 = "SELECT * FROM tnetwork_component_group where id_sg != '$id_group'";
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result))
|
||||
echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"])."</option>";
|
||||
echo "</select>";
|
||||
|
||||
|
||||
echo "<td class='datos'>".$lang_label["module_group"]."</td>";
|
||||
echo '<td class="datos">';
|
||||
echo '<select name="id_module_group">';
|
||||
if ($id_nc != -1 )
|
||||
echo "<option value='".$id_module_group."'>".dame_nombre_grupomodulo($id_module_group);
|
||||
$sql1='SELECT * FROM tmodule_group';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result))
|
||||
echo "<option value='".$row["id_mg"]."'>".$row["name"]."</option>";
|
||||
echo "</select>";
|
||||
|
||||
echo "<tr>";
|
||||
echo '<td class="datos2">'.$lang_label["module_interval"];
|
||||
echo '<td class="datos2">';
|
||||
echo '<input type="text" name="module_interval" size="5" value="'.$module_interval.'">';
|
||||
?>
|
||||
|
||||
<td class="datos2"><?php echo $lang_label["tcp_port"] ?></td>
|
||||
<td class="datos2">
|
||||
<input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>">
|
||||
</td></tr>
|
||||
<tr><td class="datos"><?php echo $lang_label["snmp_oid"] ?><?php pandora_help("snmpoid"); ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="snmp_oid" size="25" value="<?php echo $snmp_oid ?>">
|
||||
</td>
|
||||
<td class="datos"><?php echo $lang_label["snmp_community"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="snmp_community" size="25" value="<?php echo $snmp_community ?>">
|
||||
</td></tr>
|
||||
<tr><td class="datos2t"><?php echo $lang_label["tcp_send"] ?></td>
|
||||
<td class="datos2">
|
||||
<textarea name="tcp_send" cols="20" rows="2"><?php echo $tcp_send ?></textarea>
|
||||
</td>
|
||||
<td class="datos2t"><?php echo $lang_label["tcp_rcv"] ?></td>
|
||||
<td class="datos2">
|
||||
<textarea name="tcp_rcv" cols="20" rows="2"><?php echo $tcp_rcv ?></textarea>
|
||||
</td></tr>
|
||||
<tr><td class="datos"><?php echo $lang_label["mindata"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>">
|
||||
</td>
|
||||
<td class="datos"><?php echo $lang_label["maxdata"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>">
|
||||
</td></tr>
|
||||
<?PHP
|
||||
|
||||
echo '<tr><td class="datos2t">'.$lang_label["comments"];
|
||||
echo '<td class="datos2" colspan=3>';
|
||||
echo '<textarea name="descripcion" cols=70 rows=2>';
|
||||
echo $description;
|
||||
echo "</textarea>";
|
||||
echo "</td></tr>";
|
||||
echo "</table>";
|
||||
|
||||
echo "<table width='700px'>";
|
||||
echo "</tr><td align='right'>";
|
||||
if ($id_nc != "-1")
|
||||
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
|
||||
else
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
|
||||
echo "</form>";
|
||||
echo "</td></tr></table>";
|
||||
|
||||
?>
|
||||
|
|
|
@ -0,0 +1,291 @@
|
|||
<?PHP
|
||||
// Pandora FMS - the Free monitoring system
|
||||
// ========================================
|
||||
// Copyright (c) 2004-2007 Sancho Lerena, slerena@openideas.info
|
||||
// Copyright (c) 2005-2007 Artica Soluciones Tecnologicas
|
||||
|
||||
// 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 version 2
|
||||
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
?>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
function type_change()
|
||||
{
|
||||
// type 1-4 - Generic_xxxxxx
|
||||
if ((document.modulo.tipo.value > 0) && (document.modulo.tipo.value < 5)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#ddd";
|
||||
document.modulo.ip_target.disabled=true;
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
// type 15-18- SNMP
|
||||
if ((document.modulo.tipo.value > 14) && (document.modulo.tipo.value < 19 )){
|
||||
document.modulo.snmp_oid.style.background="#fff";
|
||||
document.modulo.snmp_oid.style.disabled=false;
|
||||
document.modulo.snmp_community.style.background="#fff";
|
||||
document.modulo.snmp_community.disabled=false;
|
||||
document.modulo.combo_snmp_oid.style.background="#fff";
|
||||
document.modulo.combo_snmp_oid.disabled=false;
|
||||
document.modulo.oid.disabled=false;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
if (document.modulo.tipo.value == 18) {
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
} else {
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
}
|
||||
// type 6-7 - ICMP
|
||||
if ((document.modulo.tipo.value == 6) || (document.modulo.tipo.value == 7)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.combo_snmp_oid.style.background="#ddd";
|
||||
document.modulo.combo_snmp_oid.disabled=true;
|
||||
document.modulo.oid.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
// type 8-11 - TCP
|
||||
if ((document.modulo.tipo.value > 7) && (document.modulo.tipo.value < 12)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#fff";
|
||||
document.modulo.tcp_send.disabled=false;
|
||||
document.modulo.tcp_rcv.style.background="#fff";
|
||||
document.modulo.tcp_rcv.disabled=false;
|
||||
document.modulo.tcp_port.style.background="#fff";
|
||||
document.modulo.tcp_port.disabled=false;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
}
|
||||
// type 12 - UDP
|
||||
if (document.modulo.tipo.value == 12){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#fff";
|
||||
document.modulo.tcp_send.disabled=false;
|
||||
document.modulo.tcp_rcv.style.background="#fff";
|
||||
document.modulo.tcp_rcv.disabled=false;
|
||||
document.modulo.tcp_port.style.background="#fff";
|
||||
document.modulo.tcp_port.disabled=false;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<?PHP
|
||||
// Load global vars
|
||||
require("include/config.php");
|
||||
|
||||
if (comprueba_login() == 0)
|
||||
$id_user = $_SESSION["id_usuario"];
|
||||
else
|
||||
$id_user = "";
|
||||
|
||||
if (give_acl($id_user, 0, "PM")!=1) {
|
||||
audit_db($id_user,$REMOTE_ADDR, "ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if (isset($_GET["update"])){ // Edit mode
|
||||
$id_nc = entrada_limpia ($_GET["id_nc"]);
|
||||
$sql1 = "SELECT * FROM tnetwork_component where id_nc = $id_nc ORDER BY name";
|
||||
$result=mysql_query($sql1);
|
||||
$row=mysql_fetch_array($result);
|
||||
$name = $row["name"];
|
||||
$type = $row["type"];
|
||||
$description = $row["description"];
|
||||
$modulo_max = $row["max"];
|
||||
$modulo_min = $row["min"];
|
||||
$module_interval = $row["module_interval"];
|
||||
$tcp_port = $row["tcp_port"];
|
||||
$tcp_rcv = $row["tcp_rcv"];
|
||||
$tcp_send = $row["tcp_send"];
|
||||
$snmp_community = $row["snmp_community"];
|
||||
$snmp_oid = $row["snmp_oid"];
|
||||
$id_module_group = $row["id_module_group"];
|
||||
$id_group = $row["id_group"];
|
||||
} elseif (isset($_GET["create"])){
|
||||
$id_nc = -1;
|
||||
$name = "";
|
||||
$snmp_oid = "";
|
||||
$description = "";
|
||||
$id_group = 1;
|
||||
$oid = "";
|
||||
$modulo_max = "0";
|
||||
$modulo_min = "0";
|
||||
$module_interval = "0";
|
||||
$tcp_port = "";
|
||||
$tcp_rcv = "";
|
||||
$tcp_send = "";
|
||||
$snmp_community = "public";
|
||||
$id_module_group = "";
|
||||
$id_group = "";
|
||||
$type = 0;
|
||||
}
|
||||
|
||||
echo "<h2>".$lang_label["network_component_management"]."</h2>";
|
||||
echo '<table width="700" cellspacing="4" cellpadding="4" class="databox_color">';
|
||||
|
||||
// Different Form url if it's a create or if it's a update form
|
||||
if ($id_nc != -1) {
|
||||
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&update=1&id_nc=$id_nc'>";
|
||||
} else {
|
||||
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&create=1'>";
|
||||
}
|
||||
echo "<tr>";
|
||||
echo '<tr><td class="datos2">'.$lang_label["module_name"];
|
||||
echo "<td class='datos2'><input type='text' name='name' size='25' value='$name'>";
|
||||
|
||||
//-- Module type combobox
|
||||
echo "<td class='datos2'>".$lang_label["module_type"]."</td>";
|
||||
echo "<td class='datos2'>";
|
||||
echo '<select name="tipo" onChange="type_change()">';
|
||||
$sql1="SELECT id_tipo, nombre FROM ttipo_modulo WHERE id_tipo != '$type' ORDER BY nombre";
|
||||
$result=mysql_query($sql1);
|
||||
echo "<option value='$type'>". dame_nombre_tipo_modulo($type);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_tipo"]."'>".$row["nombre"]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
|
||||
echo "</td></tr>";
|
||||
echo "<tr>";
|
||||
echo "<td class='datos'>".$lang_label["group"]."</td>";
|
||||
echo "<td class='datos'>";
|
||||
echo "<select name='id_group'>";
|
||||
echo "<option value='$id_group'>".give_network_component_group_name($id_group)."</option>";
|
||||
$sql1 = "SELECT * FROM tnetwork_component_group where id_sg != '$id_group'";
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result))
|
||||
echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"])."</option>";
|
||||
echo "</select>";
|
||||
|
||||
|
||||
echo "<td class='datos'>".$lang_label["module_group"]."</td>";
|
||||
echo '<td class="datos">';
|
||||
echo '<select name="id_module_group">';
|
||||
if ($id_nc != -1 )
|
||||
echo "<option value='".$id_module_group."'>".dame_nombre_grupomodulo($id_module_group);
|
||||
$sql1='SELECT * FROM tmodule_group';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result))
|
||||
echo "<option value='".$row["id_mg"]."'>".$row["name"]."</option>";
|
||||
echo "</select>";
|
||||
|
||||
echo "<tr>";
|
||||
echo '<td class="datos2">'.$lang_label["module_interval"];
|
||||
echo '<td class="datos2">';
|
||||
echo '<input type="text" name="module_interval" size="5" value="'.$module_interval.'">';
|
||||
?>
|
||||
|
||||
<td class="datos2"><?php echo $lang_label["tcp_port"] ?></td>
|
||||
<td class="datos2">
|
||||
<input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>">
|
||||
</td></tr>
|
||||
<tr><td class="datos"><?php echo $lang_label["snmp_oid"] ?><?php pandora_help("snmpoid"); ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="snmp_oid" size="25" value="<?php echo $snmp_oid ?>">
|
||||
</td>
|
||||
<td class="datos"><?php echo $lang_label["snmp_community"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="snmp_community" size="25" value="<?php echo $snmp_community ?>">
|
||||
</td></tr>
|
||||
<tr><td class="datos2t"><?php echo $lang_label["tcp_send"] ?></td>
|
||||
<td class="datos2">
|
||||
<textarea name="tcp_send" cols="20" rows="2"><?php echo $tcp_send ?></textarea>
|
||||
</td>
|
||||
<td class="datos2t"><?php echo $lang_label["tcp_rcv"] ?></td>
|
||||
<td class="datos2">
|
||||
<textarea name="tcp_rcv" cols="20" rows="2"><?php echo $tcp_rcv ?></textarea>
|
||||
</td></tr>
|
||||
<tr><td class="datos"><?php echo $lang_label["mindata"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>">
|
||||
</td>
|
||||
<td class="datos"><?php echo $lang_label["maxdata"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>">
|
||||
</td></tr>
|
||||
<?PHP
|
||||
|
||||
echo '<tr><td class="datos2t">'.$lang_label["comments"];
|
||||
echo '<td class="datos2" colspan=3>';
|
||||
echo '<textarea name="descripcion" cols=70 rows=2>';
|
||||
echo $description;
|
||||
echo "</textarea>";
|
||||
echo "</td></tr>";
|
||||
echo "</table>";
|
||||
|
||||
// Module type, hidden
|
||||
echo '<input type="hidden" name="id_modulo" value="2">';
|
||||
|
||||
echo "<table width='700px'>";
|
||||
echo "</tr><td align='right'>";
|
||||
if ($id_nc != "-1")
|
||||
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
|
||||
else
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
|
||||
echo "</form>";
|
||||
echo "</td></tr></table>";
|
||||
|
||||
?>
|
|
@ -0,0 +1,215 @@
|
|||
<?PHP
|
||||
// Pandora FMS - the Free monitoring system
|
||||
// ========================================
|
||||
// Copyright (c) 2008 Ramon Novoa, rnovoa@artica.es
|
||||
// Copyright (c) 2008 Artica Soluciones Tecnologicas
|
||||
|
||||
// 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 version 2
|
||||
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
// Load global variables
|
||||
require("include/config.php");
|
||||
|
||||
// Check user rights
|
||||
if (comprueba_login() == 0)
|
||||
$id_user = $_SESSION["id_usuario"];
|
||||
else
|
||||
$id_user = "";
|
||||
|
||||
if (give_acl($id_user, 0, "PM")!=1) {
|
||||
audit_db($id_user,$REMOTE_ADDR, "ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
// Update an existing component
|
||||
if (isset($_GET["update"])){
|
||||
$id_nc = entrada_limpia ($_GET["id_nc"]);
|
||||
$sql1 = "SELECT * FROM tnetwork_component where id_nc = $id_nc ORDER BY name";
|
||||
$result=mysql_query($sql1);
|
||||
$row=mysql_fetch_array($result);
|
||||
$name = $row["name"];
|
||||
$type = $row["type"];
|
||||
$description = $row["description"];
|
||||
$modulo_max = $row["max"];
|
||||
$modulo_min = $row["min"];
|
||||
$module_interval = $row["module_interval"];
|
||||
$tcp_port = $row["tcp_port"];
|
||||
$tcp_rcv = $row["tcp_rcv"];
|
||||
$tcp_send = $row["tcp_send"];
|
||||
$snmp_community = $row["snmp_community"];
|
||||
$snmp_oid = $row["snmp_oid"];
|
||||
$id_module_group = $row["id_module_group"];
|
||||
$id_group = $row["id_group"];
|
||||
$plugin_user = $row["plugin_user"];
|
||||
$plugin_pass = $row["plugin_pass"];
|
||||
$plugin_parameter = $row["plugin_parameter"];
|
||||
$max_timeout = $row["max_timeout"];
|
||||
}
|
||||
// Add a new component
|
||||
elseif (isset($_GET["create"])){
|
||||
$id_nc = -1;
|
||||
$name = "";
|
||||
$snmp_oid = "";
|
||||
$description = "";
|
||||
$id_group = 1;
|
||||
$oid = "";
|
||||
$modulo_max = "0";
|
||||
$modulo_min = "0";
|
||||
$module_interval = "300";
|
||||
$tcp_port = "";
|
||||
$tcp_rcv = "";
|
||||
$tcp_send = "";
|
||||
$snmp_community = "";
|
||||
$id_module_group = "";
|
||||
$id_group = "";
|
||||
$type = 0;
|
||||
$plugin_user = "Administrator";
|
||||
$plugin_pass = "";
|
||||
$plugin_parameter = "";
|
||||
$max_timeout = 10;
|
||||
}
|
||||
|
||||
echo '<h2>' . lang_string('WMI component management') . '</h2>';
|
||||
if ($id_nc != -1) {
|
||||
// Update
|
||||
echo '<form name="modulo" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&update=1&id_nc=' . $id_nc . '">';
|
||||
} else {
|
||||
// Add
|
||||
echo '<form name="modulo" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&create=1">';
|
||||
}
|
||||
echo '<table width="700" cellspacing="4" cellpadding="4" class="databox_color">';
|
||||
echo '<tr>';
|
||||
|
||||
// Name
|
||||
echo '<tr><td class="datos2">' . $lang_label['module_name'];
|
||||
echo '<td class="datos2"><input type="text" name="name" size="25" value="' . $name . '">';
|
||||
|
||||
// Type
|
||||
echo '<td class="datos2">' . $lang_label['module_type'] . '</td>';
|
||||
echo '<td class="datos2">';
|
||||
echo '<select name="tipo">';
|
||||
echo '<option value="' . $type . '">' . dame_nombre_tipo_modulo($type);
|
||||
$result = mysql_query('SELECT id_tipo, nombre FROM ttipo_modulo WHERE categoria IN (0,1,2) ORDER BY nombre;');
|
||||
while ($row = mysql_fetch_array($result)){
|
||||
echo '<option value="' . $row['id_tipo'] . '">' . $row['nombre'] . '</option>';
|
||||
}
|
||||
echo '</select>';
|
||||
echo '</td></tr>';
|
||||
echo '<tr>';
|
||||
|
||||
// Component group
|
||||
echo '<td class="datos">' . $lang_label['group'] . '</td>';
|
||||
echo '<td class="datos">';
|
||||
echo '<select name="id_group">';
|
||||
echo '<option value="' . $id_group . '">' . give_network_component_group_name($id_group) . '</option>';
|
||||
$result = mysql_query('SELECT * FROM tnetwork_component_group where id_sg != \'' . $id_group . '\';');
|
||||
while ($row = mysql_fetch_array($result)) {
|
||||
echo '<option value="' . $row['id_sg'] . '">' . give_network_component_group_name($row['id_sg']) . '</option>';
|
||||
}
|
||||
echo '</select>';
|
||||
|
||||
// Module group
|
||||
echo '<td class="datos">' . $lang_label['module_group'] . '</td>';
|
||||
echo '<td class="datos">';
|
||||
echo '<select name="id_module_group">';
|
||||
if ($id_nc != -1 ) {
|
||||
echo '<option value="' . $id_module_group . '">' . dame_nombre_grupomodulo($id_module_group);
|
||||
}
|
||||
$result = mysql_query('SELECT * FROM tmodule_group');
|
||||
while ($row = mysql_fetch_array($result))
|
||||
echo '<option value="' . $row['id_mg'] . '">' . $row['name'] . '</option>';
|
||||
echo '</select>';
|
||||
echo '<tr>';
|
||||
|
||||
// Interval
|
||||
echo '<td class="datos2">' . $lang_label['module_interval'];
|
||||
echo '<td class="datos2">';
|
||||
echo '<input type="text" name="module_interval" size="5" value="'.$module_interval.'">';
|
||||
|
||||
// Timeout
|
||||
echo '<td class="datos2">' . lang_string ("max_timeout") . '</td>';
|
||||
echo '<td class="datos2">';
|
||||
echo '<input type="text" name="max_timeout" size="5" value="' . $max_timeout . '">';
|
||||
echo '</td></tr>';
|
||||
|
||||
// WMI Query
|
||||
echo '<tr><td class="datos">' . lang_string ('WMI Query') ;
|
||||
pandora_help("wmiquery");
|
||||
echo '</td>';
|
||||
echo '<td class="datos">';
|
||||
echo '<input type="text" name="snmp_oid" size="25" value="' . $snmp_oid . '">';
|
||||
echo '</td>';
|
||||
|
||||
// Key string
|
||||
echo '<td class="datos">' . lang_string ('Key string');
|
||||
pandora_help("wmikey");
|
||||
echo '</td>';
|
||||
echo '<td class="datos">';
|
||||
echo '<input type="text" name="snmp_community" size="25" value="' . $snmp_community . '">';
|
||||
echo '</td></tr>';
|
||||
|
||||
// Field
|
||||
echo '<td class="datos2">' . lang_string ("Field number");
|
||||
pandora_help("wmifield");
|
||||
echo '</td>';
|
||||
echo '<td class="datos2">';
|
||||
echo '<input type="text" name="tcp_port" size="5" value="' . $tcp_port . '">';
|
||||
echo '</td></tr>';
|
||||
|
||||
// Username
|
||||
echo '<tr><td class="datos2t">' . lang_string ('Username') . '</td>';
|
||||
echo '<td class="datos2">';
|
||||
echo '<input type="text" name="plugin_user" size="25" value="' . $plugin_user . '">';
|
||||
echo '</td>';
|
||||
|
||||
// Password
|
||||
echo '<td class="datos2t">' . lang_string ('Password') . '</td>';
|
||||
echo '<td class="datos2">';
|
||||
echo '<input type="password" name="plugin_pass" size="25" value="' . $plugin_pass . '">';
|
||||
echo '</td></tr>';
|
||||
|
||||
// Min data
|
||||
echo '<tr><td class="datos">' . $lang_label['mindata'] . '</td>';
|
||||
echo '<td class="datos">';
|
||||
echo '<input type="text" name="modulo_min" size="5" value="' . $modulo_min . '">';
|
||||
echo '</td>';
|
||||
echo '<td class="datos">' . $lang_label['maxdata'] . '</td>';
|
||||
echo '<td class="datos">';
|
||||
|
||||
// Max data
|
||||
echo '<input type="text" name="modulo_max" size="5" value="' . $modulo_max . '">';
|
||||
echo '</td></tr>';
|
||||
|
||||
// Comments
|
||||
echo '<tr><td class="datos2t">'.$lang_label['comments'];
|
||||
echo '<td class="datos2" colspan=3>';
|
||||
echo '<textarea name="descripcion" cols=70 rows=2>';
|
||||
echo $description;
|
||||
echo '</textarea>';
|
||||
echo '</td></tr>';
|
||||
echo '</table>';
|
||||
|
||||
// Module type, hidden
|
||||
echo '<input type="hidden" name="id_modulo" value="6">';
|
||||
|
||||
// Update/Add buttons
|
||||
echo '<table width="700px">';
|
||||
echo '</tr><td align="right">';
|
||||
if ($id_nc != '-1')
|
||||
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
|
||||
else
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
|
||||
echo '</td></tr></table>';
|
||||
echo '</form>';
|
||||
|
||||
?>
|
|
@ -0,0 +1,3 @@
|
|||
<h1>Field number</h1>
|
||||
|
||||
Row number to retrieve from the WQL query result (starting from zero).
|
|
@ -0,0 +1,3 @@
|
|||
<h1>Key string</h1>
|
||||
|
||||
Optional. Substring to look for in the WQL query result. The module returns 1 if found, 0 if not.
|
|
@ -0,0 +1,5 @@
|
|||
<h1>WMI Query</h1>
|
||||
|
||||
Any valid WQL query. According to Microsoft, the WMI Query Language (WQL) is a subset of standard American National Standards Institute Structured Query Language (ANSI SQL) with minor semantic changes to support WMI.
|
||||
<br><br>
|
||||
Example: SELECT LoadPercentage from Win32_Processor WHERE DeviceID = "CPU0"
|
|
@ -677,18 +677,18 @@ $lang_label["cat_2"]="Network agent data";
|
|||
$lang_label["cat_3"]="Network agent monitor";
|
||||
$lang_label["unknown"]="Unknown";
|
||||
$lang_label["create_module"]="Create module";
|
||||
$lang_label["network_templates"]="Network templates";
|
||||
$lang_label["network_templates"]="Module templates";
|
||||
$lang_label["snmp_modules"]="SNMP modules";
|
||||
$lang_label["network_components_groups"]="Network components groups";
|
||||
$lang_label["network_components"]="Network components";
|
||||
$lang_label["network_components"]="Module components";
|
||||
$lang_label["create_ok"]="Created successfully";
|
||||
$lang_label["create_no"]="Not created. Error inserting data";
|
||||
$lang_label["modify_ok"]="Updated successfully";
|
||||
$lang_label["modify_no"]="Not updated. Error updating data";
|
||||
$lang_label["delete_no"]="Not deleted. Error deleting data";
|
||||
$lang_label["delete_ok"]="Deleted successfully";
|
||||
$lang_label["network_component_group_management"]="Network Component group management";
|
||||
$lang_label["network_component_management"]="Network component management";
|
||||
$lang_label["network_component_group_management"]="Component group management";
|
||||
$lang_label["network_component_management"]="Module component management";
|
||||
$lang_label["oid"]="OID";
|
||||
$lang_label["recon_server"]="Recon Server";
|
||||
$lang_label["recon_server_help"]="You must select a Recon Server for the Task, otherwise the Recon Task will never run";
|
||||
|
@ -701,9 +701,9 @@ $lang_label["md5_checksum"]="MD5 Check";
|
|||
$lang_label["nc_groups"]="Component groups";
|
||||
$lang_label["nc.group"]="NC.Group";
|
||||
$lang_label["manual_config"]="Manual setup";
|
||||
$lang_label["network_component"]="Network Component";
|
||||
$lang_label["network_component"]="Module Component";
|
||||
$lang_label["not_available_in_edit_mode"]="Not available in edition mode";
|
||||
$lang_label["using_network_component"]="Using Network Component";
|
||||
$lang_label["using_network_component"]="Using Module Component";
|
||||
$lang_label["view_mode"]="View mode";
|
||||
$lang_label["setup_mode"]="Setup mode";
|
||||
$lang_label["refresh_data"]="Refresh data";
|
||||
|
@ -731,7 +731,7 @@ $lang_label["yes"]="Yes";
|
|||
$lang_label["no"]="No";
|
||||
$lang_label["view"]="View";
|
||||
$lang_label["number_of_modules"]="# Modules";
|
||||
$lang_label["network_profile_management"]="Network profile management";
|
||||
$lang_label["network_profile_management"]="Module template management";
|
||||
$lang_label["graph_builder"]="Graph builder";
|
||||
$lang_label["combined_image"]="Combined image render";
|
||||
$lang_label["redraw"]="Redraw";
|
||||
|
|
|
@ -399,6 +399,11 @@ CREATE TABLE `tnetwork_component` (
|
|||
`snmp_community` varchar(255) NOT NULL default 'NULL',
|
||||
`snmp_oid` varchar(400) NOT NULL,
|
||||
`id_module_group` tinyint(4) NOT NULL default '0',
|
||||
`id_modulo` int(11) unsigned default '0',
|
||||
`plugin_user` varchar(250) default '',
|
||||
`plugin_pass` varchar(250) default '',
|
||||
`plugin_parameter` text,
|
||||
`max_timeout` tinyint(3) unsigned default '0',
|
||||
PRIMARY KEY (`id_nc`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
|
|
@ -220,54 +220,61 @@ INSERT INTO tmodule VALUES (4,'Plugin module');
|
|||
INSERT INTO tmodule VALUES (5,'Prediction module');
|
||||
INSERT INTO tmodule VALUES (6,'WMI module');
|
||||
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (1,'OS Total process','Total process in Operating System (UNIX MIB)',13,15,0,0,180,0,'','','public','HOST-RESOURCES-MIB::hrSystemProcesses.0 ',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (2,'OS CPU Load (1 min)','CPU Load in Operating System (UNIX MIB)',13,15,0,0,180,0,'','','public','UCD-SNMP-MIB::laLoad.1',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (3,'Sysname','Get name of system using SNMP standard MIB',1,17,0,0,900,0,'','','public','.1.3.6.1.2.1.1.1.0',1);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (4,'OS Users','Active users in Operating System (UNIX MIB)',13,15,0,0,180,0,'','','public','HOST-RESOURCES-MIB::hrSystemNumUsers.0',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (11,'Catalyst CPU Usage (5min)','Cisco Catalyst Switches CPU Usage. Taken from ftp://ftp.cisco.com/pub/mibs/oid/OLD-CISCO-CPU-MIB.oid',2,15,0,0,180,0,'','','public','1.3.6.1.4.1.9.2.1.58',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (22,'HSRP Status','Get status of HSRP',2,18,0,0,180,0,'','','public','1.3.6.1.4.1.9.9.106.1.2.1.1.15.12.106',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (24,'NIC #1 status','Status of NIC#1',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.1',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (25,'NIC #2 status','Status of NIC #2',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.2',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (26,'NIC #3 status','Status of NIC #3',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.3',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (27,'NIC #1 outOctects','Output throughtput on Interface #1',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.1',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (28,'NIC #2 outOctects','Output troughtput on interface #2',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.2',1);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (29,'NIC #3 outOctects','Output troughtput on Interface #3',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.3',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (30,'NIC #1 inOctects','Input troughtput on Interface #1',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.10.1',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (31,'NIC #2 inOctects','Input throughtput for interface #2',10,16,0,0,180,0,'','NULL','public','.1.3.6.1.2.1.2.2.1.10.2',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (32,'NIC #3 inOctects','Input throught on interface #3',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.10.3',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (34,'Host Alive','Check if host is alive using ICMP ping check.',10,6,0,0,120,0,'','','','',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (36,'Host Latency','Get host network latency in miliseconds, using ICMP.',10,7,0,0,180,0,'','','','',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (37,'Check HTTP Server','Test APACHE2 HTTP service remotely (Protocol response, not only openport)',10,9,0,0,300,80,'GET / HTTP/1.0^M^M','HTTP/1.1 200 OK','','',3);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (38,'Check FTP Server','Check FTP protocol, not only check port.',10,9,0,0,300,21,'QUIT','221','','',3);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (39,'Check SSH Server','Checks port 22 is opened',10,9,0,0,300,22,'','','','',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (40,'Check Telnet server','Check telnet port',10,9,0,0,300,23,'','','','',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (41,'Check SMTP server','Check if SMTP port it's open',10,9,0,0,300,25,'','','','',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (42,'Check POP3 server','Check POP3 port.',10,9,0,0,300,110,'','','','',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (43,'NIC #7 outOctects','Get outcoming octects from NIC #7',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.7',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (44,'NIC #7 inOctects','Get incoming octects from NIC #7',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.10.7',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (45,'NIC #4 Status','Get status of NIC #4',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.4',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (46,'NIC #5 Status','Get status of NIC #5',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.5',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (47,'NIC #6 Status','Get status of NIC #6',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.6',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (48,'NIC #7 Status','Get status of NIC #7',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.7',2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (49,'OS CPU Load (5 min)','CPU load on a 5 min average interval. UCD-SNMP Mib (Usually for all Linux and some UNIX)',13,15,0,0,180,0,'','','public','UCD-SNMP-MIB::laLoad.2',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (50,'System Description','Get system description (all mibs).',1,17,0,0,9000,0,'','','public','SNMPv2-MIB::sysDescr.0',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (51,'OS Raw Interrupts','Get system raw interrupts from SO',13,16,0,0,180,0,'','','public','UCD-SNMP-MIB::ssRawInterrupts.0',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (52,'OS IO Signals sent','IO Signals sent by Kernel',13,16,0,0,180,0,'','','public','UCD-SNMP-MIB::ssIOSent.0',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (53,'System Uptime','Sistem uptime in timeticks',1,15,0,0,180,0,'','','public','HOST-RESOURCES-MIB::hrSystemUptime.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (54,'System IO Recv','Linux System IO Recv ',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.6.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (55,'System SwapIn ','Linux System Swap In',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.3.0',1);
|
||||
INSERT INTO `tnetwork_component` VALUES (56,'System Buffer Memory','Linux System Buffer Memory (used as available\nmemory)',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.4.14.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (57,'System Cached Memory','Linux System Cached Memory (used as free\nmemory)',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.4.15.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (58,'System Processes','Total system process on any host',12,15,0,0,180,0,'','','public','.1.3.6.1.2.1.25.1.6.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (59,'CPU User','Linux User CPU Usage (%)',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.9.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (60,'CPU System','Linux System CPU usage',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.10.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (177,'System Context Change','Linux System Context changes ',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.8.0',4);
|
||||
INSERT INTO `tnetwork_component` VALUES (178,'System Interrupts','Linux system interrupts ',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.7.0',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`) VALUES (176,'Catalyst Free Mem','Taken from ftp://ftp.cisco.com/pub/mibs/oid/OLD-CISCO-MEMORY-MIB.oid',2,15,0,0,180,0,'','','public','1.3.6.1.4.1.9.2.1.8',4);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (1,'OS Total process','Total process in Operating System (UNIX MIB)',13,15,0,0,180,0,'','','public','HOST-RESOURCES-MIB::hrSystemProcesses.0 ',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (2,'OS CPU Load (1 min)','CPU Load in Operating System (UNIX MIB)',13,15,0,0,180,0,'','','public','UCD-SNMP-MIB::laLoad.1',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (3,'Sysname','Get name of system using SNMP standard MIB',1,17,0,0,900,0,'','','public','.1.3.6.1.2.1.1.1.0',1,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (4,'OS Users','Active users in Operating System (UNIX MIB)',13,15,0,0,180,0,'','','public','HOST-RESOURCES-MIB::hrSystemNumUsers.0',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (11,'Catalyst CPU Usage (5min)','Cisco Catalyst Switches CPU Usage. Taken from ftp://ftp.cisco.com/pub/mibs/oid/OLD-CISCO-CPU-MIB.oid',2,15,0,0,180,0,'','','public','1.3.6.1.4.1.9.2.1.58',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (22,'HSRP Status','Get status of HSRP',2,18,0,0,180,0,'','','public','1.3.6.1.4.1.9.9.106.1.2.1.1.15.12.106',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (24,'NIC #1 status','Status of NIC#1',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.1',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (25,'NIC #2 status','Status of NIC #2',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.2',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (26,'NIC #3 status','Status of NIC #3',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.3',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (27,'NIC #1 outOctects','Output throughtput on Interface #1',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.1',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (28,'NIC #2 outOctects','Output troughtput on interface #2',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.2',1,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (29,'NIC #3 outOctects','Output troughtput on Interface #3',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.3',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (30,'NIC #1 inOctects','Input troughtput on Interface #1',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.10.1',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (31,'NIC #2 inOctects','Input throughtput for interface #2',10,16,0,0,180,0,'','NULL','public','.1.3.6.1.2.1.2.2.1.10.2',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (32,'NIC #3 inOctects','Input throught on interface #3',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.10.3',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (34,'Host Alive','Check if host is alive using ICMP ping check.',10,6,0,0,120,0,'','','','',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (36,'Host Latency','Get host network latency in miliseconds, using ICMP.',10,7,0,0,180,0,'','','','',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (37,'Check HTTP Server','Test APACHE2 HTTP service remotely (Protocol response, not only openport)',10,9,0,0,300,80,'GET / HTTP/1.0^M^M','HTTP/1.1 200 OK','','',3,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (38,'Check FTP Server','Check FTP protocol, not only check port.',10,9,0,0,300,21,'QUIT','221','','',3,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (39,'Check SSH Server','Checks port 22 is opened',10,9,0,0,300,22,'','','','',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (40,'Check Telnet server','Check telnet port',10,9,0,0,300,23,'','','','',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (41,'Check SMTP server','Check if SMTP port it's open',10,9,0,0,300,25,'','','','',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (42,'Check POP3 server','Check POP3 port.',10,9,0,0,300,110,'','','','',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (43,'NIC #7 outOctects','Get outcoming octects from NIC #7',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.16.7',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (44,'NIC #7 inOctects','Get incoming octects from NIC #7',10,16,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.10.7',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (45,'NIC #4 Status','Get status of NIC #4',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.4',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (46,'NIC #5 Status','Get status of NIC #5',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.5',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (47,'NIC #6 Status','Get status of NIC #6',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.6',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (48,'NIC #7 Status','Get status of NIC #7',10,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.7',2,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (49,'OS CPU Load (5 min)','CPU load on a 5 min average interval. UCD-SNMP Mib (Usually for all Linux and some UNIX)',13,15,0,0,180,0,'','','public','UCD-SNMP-MIB::laLoad.2',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (50,'System Description','Get system description (all mibs).',1,17,0,0,9000,0,'','','public','SNMPv2-MIB::sysDescr.0',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (51,'OS Raw Interrupts','Get system raw interrupts from SO',13,16,0,0,180,0,'','','public','UCD-SNMP-MIB::ssRawInterrupts.0',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (52,'OS IO Signals sent','IO Signals sent by Kernel',13,16,0,0,180,0,'','','public','UCD-SNMP-MIB::ssIOSent.0',4,2);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (53,'System Uptime','Sistem uptime in timeticks',1,15,0,0,180,0,'','','public','HOST-RESOURCES-MIB::hrSystemUptime.0',4,2);
|
||||
INSERT INTO `tnetwork_component` VALUES (54,'System IO Recv','Linux System IO Recv ',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.6.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (55,'System SwapIn ','Linux System Swap In',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.3.0',1,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (56,'System Buffer Memory','Linux System Buffer Memory (used as available\nmemory)',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.4.14.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (57,'System Cached Memory','Linux System Cached Memory (used as free\nmemory)',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.4.15.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (58,'System Processes','Total system process on any host',12,15,0,0,180,0,'','','public','.1.3.6.1.2.1.25.1.6.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (59,'CPU User','Linux User CPU Usage (%)',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.9.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (60,'CPU System','Linux System CPU usage',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.10.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (177,'System Context Change','Linux System Context changes ',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.8.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (178,'System Interrupts','Linux system interrupts ',5,15,0,0,180,0,'','','public','.1.3.6.1.4.1.2021.11.7.0',4,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`) VALUES (176,'Catalyst Free Mem','Taken from ftp://ftp.cisco.com/pub/mibs/oid/OLD-CISCO-MEMORY-MIB.oid',2,15,0,0,180,0,'','','public','1.3.6.1.4.1.9.2.1.8',4,2);
|
||||
|
||||
INSERT INTO `tnetwork_component` VALUES (61,'GigabitEthernet1/0/1 Status','',2,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.10101',2,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (62,'GigabitEthernet1/0/2 Status','',2,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.10102',2,2,'','','',0);
|
||||
INSERT INTO `tnetwork_component` VALUES (63,'GigabitEthernet1/0/3 Status','',2,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.10103',2,2,'','','',0);
|
||||
|
||||
|
||||
-- WMI components
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `plugin_user`, `max_timeout`) VALUES (200, 'CPU load', 'CPU0 load average', 14, 1, 100, 0, 300, 1, '', '', '', 'SELECT LoadPercentage from Win32_Processor WHERE DeviceID = "CPU0"', 1, 6, 'Administrator', 10);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `plugin_user`, `max_timeout`) VALUES (201, 'Free RAM', 'Available RAM memory in bytes', 14, 1, 0, 0, 300, 0, '', '', '', 'SELECT AvailableBytes from Win32_PerfRawData_PerfOS_Memory', 1, 6, 'Administrator', 10);
|
||||
INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `plugin_user`, `max_timeout`) VALUES (202, 'Windows version', 'Operating system version', 14, 3, 0, 0, 300, 1, '', '', '', 'SELECT Caption FROM Win32_OperatingSystem', 1, 6, 'Administrator', 10);
|
||||
|
||||
INSERT INTO `tnetwork_component` VALUES (61,'GigabitEthernet1/0/1 Status','',2,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.10101',2);
|
||||
INSERT INTO `tnetwork_component` VALUES (62,'GigabitEthernet1/0/2 Status','',2,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.10102',2);
|
||||
INSERT INTO `tnetwork_component` VALUES (63,'GigabitEthernet1/0/3 Status','',2,18,0,0,180,0,'','','public','.1.3.6.1.2.1.2.2.1.8.10103',2);
|
||||
|
||||
--
|
||||
-- Dumping data for table `tnetwork_component_group`
|
||||
|
@ -280,6 +287,7 @@ INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (10,'N
|
|||
INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (11,'Microsoft Windows MIB',12);
|
||||
INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (12,'Operating Systems',0);
|
||||
INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (13,'UCD Mibs (Linux, UCD-SNMP)',12);
|
||||
INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (14,'WMI',12);
|
||||
|
||||
|
||||
-- Network profile
|
||||
|
@ -289,6 +297,7 @@ INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (2,'Basic
|
|||
INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (3,'Basic DMZ Server monitoring','This group of network checks, checks for default services located on DMZ servers...');
|
||||
INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (4,'Full SNMP Monitoring','');
|
||||
INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (5,'Linux Server','Full Monitoring of a Linux server services.');
|
||||
INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (6,'Basic WMI monitoring','Basic monitoring of a Windows host.');
|
||||
|
||||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (1,24,1);
|
||||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (2,25,1);
|
||||
|
@ -332,5 +341,8 @@ INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (39
|
|||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (40,51,5);
|
||||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (41,52,5);
|
||||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (42,39,5);
|
||||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (43,200,6);
|
||||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (44,201,6);
|
||||
INSERT INTO `tnetwork_profile_component` (`id_npc`, `id_nc`, `id_np`) VALUES (45,202,6);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue