# Copyright (C) 2003 Shawn Ferry # # 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. # $Id: EmpireSystemedge.pm,v 1.1 2010-12-27 00:03:55 ivan Exp $ # Shawn Ferry package Torrus::DevDiscover::EmpireSystemedge; use strict; use Torrus::Log; $Torrus::DevDiscover::registry{'EmpireSystemedge'} = { 'sequence' => 500, 'checkdevtype' => \&checkdevtype, 'discover' => \&discover, 'buildConfig' => \&buildConfig }; # define the oids that are needed to determine support, # capabilities and information about the device our %oiddef = ( 'empire' => '1.3.6.1.4.1.546', 'sysedge_opmode' => '1.3.6.1.4.1.546.1.1.1.17.0', 'empireSystemType' => '1.3.6.1.4.1.546.1.1.1.12.0', # Empire Cpu Table 'empireCpuStatsTable' => '1.3.6.1.4.1.546.13.1.1', 'empireCpuStatsIndex' => '1.3.6.1.4.1.546.13.1.1.1', 'empireCpuStatsDescr' => '1.3.6.1.4.1.546.13.1.1.2', # Empire Cpu Totals 'empireCpuTotalWait' => '1.3.6.1.4.1.546.13.5.0', # Empire Swap Counters 'empireNumPageSwapIns' => '1.3.6.1.4.1.546.1.1.7.8.18.0', # Empire Load Average 'empireLoadAverage' => '1.3.6.1.4.1.546.1.1.7.8.26.0', # Empire Device Table and Oids 'empireDevTable' => '1.3.6.1.4.1.546.1.1.1.7.1', 'empireDevIndex' => '1.3.6.1.4.1.546.1.1.1.7.1.1', 'empireDevMntPt' => '1.3.6.1.4.1.546.1.1.1.7.1.3', 'empireDevBsize' => '1.3.6.1.4.1.546.1.1.1.7.1.4', 'empireDevTblks' => '1.3.6.1.4.1.546.1.1.1.7.1.5', 'empireDevType' => '1.3.6.1.4.1.546.1.1.1.7.1.10', 'empireDevDevice' => '1.3.6.1.4.1.546.1.1.1.7.1.2', # Empire Device Stats Table and Oids 'empireDiskStatsTable' => '1.3.6.1.4.1.546.12.1.1', 'empireDiskStatsIndex' => '1.3.6.1.4.1.546.12.1.1.1', 'empireDiskStatsHostIndex' => '1.3.6.1.4.1.546.12.1.1.9', 'hrDeviceDescr' => '1.3.6.1.2.1.25.3.2.1.3', # Empire Performance and related oids 'empirePerformance' => '1.3.6.1.4.1.546.1.1.7', 'empireNumTraps' => '1.3.6.1.4.1.546.1.1.7.8.15.0', # Empire Process Stats 'empireRunq' => '1.3.6.1.4.1.546.1.1.7.8.4.0', 'empireDiskWait' => '1.3.6.1.4.1.546.1.1.7.8.5.0', 'empirePageWait' => '1.3.6.1.4.1.546.1.1.7.8.6.0', 'empireSwapActive' => '1.3.6.1.4.1.546.1.1.7.8.7.0', 'empireSleepActive' => '1.3.6.1.4.1.546.1.1.7.8.8.0', # Empire Extensions NTREGPERF 'empireNTREGPERF' => '1.3.6.1.4.1.546.5.7', 'empireDnlc' => '1.3.6.1.4.1.546.1.1.11', 'empireRpc' => '1.3.6.1.4.1.546.8.1', 'empireNfs' => '1.3.6.1.4.1.546.8.2', 'empireMon' => '1.3.6.1.4.1.546.6.1.1', 'empirePmon' => '1.3.6.1.4.1.546.15.1.1', 'empireLog' => '1.3.6.1.4.1.546.11.1.1', ); our %storageDescTranslate = ( '/' => {'subtree' => 'root' } ); # template => 1 if specific templates for the name explicitly exist, # othewise the template used is based on ident # # Generally only hosts that have been directly observed should have # templates, the "unix" and "nt" templates are generally aiming for the # lowest common denominator. # # templates also need to be added to devdiscover-config.pl # # Templated "names" require a specific template for each of the # following base template types: #