tuipveus

Tuipveus

Feb 22nd, 2010
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.24 KB | None | 0 0
  1.  
  2. Esimerkki-konffaus HP Proliantin hardwarevikalogin (eli hardwarevikojen) saamiseksi komentorivilt� palvelimessa, jossa on asennettuna Compaq Insight Manager tai HP Insight Manager.
  3.  
  4. Ohje:
  5.  
  6. Logissa olevien rivien m��r� on ns. summatieto, josta tiet�� onko syyt� tarkistaa palvelimen vikatiedot tarkemmin.
  7. snmpwalk -v 2c -c jraa localhost 1.3.6.1.4.1.232.6.1.3
  8.  
  9. Intergerin arvolla 2, j�rjestelm� on kunnossa eik� ole kuitattavia vikoja.
  10.  
  11.  
  12. kommentoi t�m�n konffin yl�puoliset konfiguroinnit, mik�li sama tiedosto sis�lt�� useamman esimerkin.
  13.  
  14. L�hteet:
  15. - https://support.ipmonitor.com/mibs/CPQHLTH-MIB/item.aspx?id=cpqHeMibCondition
  16. cpqHeMibCondition 1.3.6.1.4.1.232.6.1.3
  17. iso . org . dod . internet . private . enterprises . compaq . cpqHealth . cpqHeMibRev . cpqHeMibCondition
  18. - http://www.tools4ever.com/products/monitormagic/features/server-monitoring/hardware-monitoring/hp-systems-insight-manager/
  19. Integrates with Compaq Insight Manager and HP Systems Insight Manager:
  20. Monitors the following SNMP get values:
  21.  
  22. * cpqHeAsrCondition (This value specifies the overall condition of the ASR feature. (2=ok)) > 2
  23. * cpqHeCorrMemLogCondition (This value specifies the overall condition of the correctable memory error log feature. (2=ok)) > 2
  24. * cpqHeFltTolFanCondition (The condition of the fan. (2=ok)) > 2
  25. * cpqHeFltTolPwrSupplyCondition (This value specifies the overall condition of the fault tolerant power supply sub-system. (2=ok)) > 2
  26. * cpqHeMibCondition (The overall system health condition. (2=ok)) > 2
  27. * cpqHeTemperatureCelsius (This is the current temperature sensor reading in degrees.) > 50
  28. * cpqHeThermalCondition (This value specifies the overall condition of the system's thermal condition. (2=ok)) > 2
  29. * cpqHeThermalCpuFanStatus (The status of the processor fan(s) in the system. (2=ok)) > 2
  30. * cpqHeThermalFanStatus (The status of the fan(s) in the system. (2=ok)) > 2
  31. * cpqHeThermalTempStatus (The status of the system's temperature sensors. (2=ok)) > 2
  32. * cpqNicIfPhysAdapterCondition (The condition of this physical adapter (2=ok)) > 2
  33. * cpqNicMibCondition (This object represents the overall status of the network interface sub-system (2=ok)) > 2
  34. * cpqTapeLibraryCondition (Compaq Tape Library Status. (2=ok)) != 2
  35. * cpqTapePhyDrvCondition (Compaq Tape Physical Drive Cleaning Required Status. (2=true)) != 2
  36.  
  37.  
  38. Huom! tarkista tietoturva-asetukset ja etenkin snmp-arvojen kirjoitusoikeudet ennen konffin k�ytt�� tuotannossa!
  39.  
  40. /etc/snmpd/snmpd.conf (pohjana rhel 5.x):
  41.  
  42. # Following entries were added by HP Insight Management Agents at
  43. # Fri Oct 9 11:04:12 EEST 2009
  44. dlmod cmaX /usr/lib/libcmaX.so
  45. rwcommunity oxE5sEm7OxI 127.0.0.1
  46. syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
  47. syslocation Unknown (edit /etc/snmp/snmpd.conf)
  48. # ---------------------- END --------------------
  49. ###############################################################################
  50. # Sample configuration to make net-snmpd RFC 1213.
  51. # Unfortunately v1 and v2c don't allow any user based authentification, so
  52. # opening up the default config is not an option from a security point.
  53. #
  54. # WARNING: If you uncomment the following lines you allow write access to your
  55. # snmpd daemon from any source! To avoid this use different names for your
  56. # community or split out the write access to a different community and
  57. # restrict it to your local network.
  58. # otherwise they are still read only (see FAQ for net-snmp).
  59. #
  60.  
  61. # First, map the community name "public" into a "security name"
  62. # sec.name source community
  63. com2sec user1 default jraa
  64.  
  65. # Second, map the security name into a group name:
  66. # groupName securityModel securityName
  67. group temp v1 user1
  68. group temp v2c user1
  69.  
  70. # Third, create a view for us to let the group have rights to:
  71. # Open up the whole tree for ro, make the RFC 1213 required ones rw.
  72. # name incl/excl subtree mask(optional)
  73. view roview included .1
  74. view rwview included system.sysContact
  75. view rwview included system.sysName
  76. view rwview included system.sysLocation
  77. view rwview included interfaces.ifTable.ifEntry.ifAdminStatus
  78. view rwview included at.atTable.atEntry.atPhysAddress
  79. view rwview included at.atTable.atEntry.atNetAddress
  80. view rwview included ip.ipForwarding
  81. view rwview included ip.ipDefaultTTL
  82. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteDest
  83. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteIfIndex
  84. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric1
  85. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric2
  86. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric3
  87. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric4
  88. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteType
  89. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteAge
  90. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMask
  91. view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric5
  92. view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaIfIndex
  93. view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress
  94. view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaNetAddress
  95. view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaType
  96. view rwview included tcp.tcpConnTable.tcpConnEntry.tcpConnState
  97. view rwview included egp.egpNeighTable.egpNeighEntry.egpNeighEventTrigger
  98. view rwview included snmp.snmpEnableAuthenTraps
  99.  
  100. # Finally, grant the group read-only access to the systemview view.
  101. # group context sec.model sec.level prefix read write notif
  102. access temp "" any noauth exact roview rwview none
  103.  
  104.  
Add Comment
Please, Sign In to add comment