Announcement

Collapse
No announcement yet.

Check_snmp_storage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Check_snmp_storage

    Bonjour,

    Suite à plusieurs heures de veine recherche, je me tourne vers vous pour abréger mon calvert. Je m'explique :

    Configuration de 2 machines linux :

    1 - Ubuntu 7.04 server en vmware (192.168.0.200)
    - nagios 3.0b5 + centreon 1.4.1
    2 - Ubuntu 7.10 utilisateur (machine physique) (192.168.0.3)
    Mon soucis :

    Je n'arrive pas à remonter l'espace disque de la machine(2) utilisateur.

    Mes fichiers de configuration :

    OOREON
    La commande : $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -r -w $ARG3$ -c $ARG4$
    Les valeurs : !public!/var!80!90
    L'erreur : ERROR: Description/Type table : Requested table is empty or does not exist.
    SNMPD (sur la machine(2) utilisateur)
    ******
    com2sec readonly 192.168.0.0/24 public
    ******
    group MyROGroup v1 readonly
    group MyROGroup v2c readonly
    group MyROGroup usm readonly
    group MyRWGroup v1 readwrite
    group MyRWGroup v2c readwrite
    group MyRWGroup usm readwrite
    ******
    # incl/excl subtree mask
    view all included .1 80
    ******
    # context sec.model sec.level match read write notif
    # access MyROSystem "" any noauth exact system none none
    access MyROGroup "" any noauth exact all none none
    access MyRWGroup "" any noauth exact all all none
    /etc/defauft/snmpd.conf (sur la machine(2) utilisateur)
    export MIBDIRS=/usr/share/snmp/mibs
    SNMPDRUN=yes
    SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1 192.168.0.3'
    TRAPDRUN=no
    TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
    SNMPDCOMPAT=yes
    ls /usr/share/snmp/mibs (sur la machine(2) utilisateur)
    AGENTX-MIB.txt IPV6-TCP-MIB.txt SNMP-TARGET-MIB.txt
    BGP4-MIB.txt IPV6-TC.txt SNMP-USER-BASED-SM-MIB.txt
    DISMAN-EVENT-MIB.txt IPV6-UDP-MIB.txt SNMP-USM-AES-MIB.txt
    DISMAN-SCHEDULE-MIB.txt LM-SENSORS-MIB.txt SNMP-USM-DH-OBJECTS-MIB.txt
    DISMAN-SCRIPT-MIB.txt NET-SNMP-AGENT-MIB.txt SNMPv2-CONF.txt
    EtherLike-MIB.txt NET-SNMP-EXAMPLES-MIB.txt SNMPv2-MIB.txt
    HCNUM-TC.txt NET-SNMP-EXTEND-MIB.txt SNMPv2-SMI.txt
    HOST-RESOURCES-MIB.txt NET-SNMP-MIB.txt SNMPv2-TC.txt
    HOST-RESOURCES-TYPES.txt NET-SNMP-TC.txt SNMPv2-TM.txt
    IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt NOTIFICATION-LOG-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt
    IANAifType-MIB.txt RFC1155-SMI.txt TCP-MIB.txt
    IANA-LANGUAGE-MIB.txt RFC1213-MIB.txt TRANSPORT-ADDRESS-MIB.txt
    IANA-RTPROTO-MIB.txt RFC-1215.txt UCD-DEMO-MIB.txt
    IF-INVERTED-STACK-MIB.txt RMON-MIB.txt UCD-DISKIO-MIB.txt
    IF-MIB.txt SMUX-MIB.txt UCD-DLMOD-MIB.txt
    INET-ADDRESS-MIB.txt SNMP-COMMUNITY-MIB.txt UCD-IPFWACC-MIB.txt
    IP-FORWARD-MIB.txt SNMP-FRAMEWORK-MIB.txt UCD-SNMP-MIB.txt
    IP-MIB.txt SNMP-MPD-MIB.txt UDP-MIB.txt
    IPV6-ICMP-MIB.txt SNMP-NOTIFICATION-MIB.txt
    IPV6-MIB.txt SNMP-PROXY-MIB.txt
    Quelques manips effectuées :

    [email protected]:~# snmpwalk -v 2c -c public 192.168.0.3

    SNMPv2-MIB:ysDescr.0 = STRING: Linux ubuntu 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686
    SNMPv2-MIB:ysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
    DISMAN-EVENT-MIB:ysUpTimeInstance = Timeticks: (428141) 1:11:21.41
    SNMPv2-MIB:ysContact.0 = STRING: Root <[email protected]> (configure /etc/snmp/snmpd.local.conf)
    SNMPv2-MIB:ysName.0 = STRING: ubuntu
    SNMPv2-MIB:ysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
    SNMPv2-MIB:ysORLastChange.0 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORID.1 = OID: SNMPv2-MIB:nmpMIB
    SNMPv2-MIB:ysORID.2 = OID: TCP-MIB::tcpMIB
    SNMPv2-MIB:ysORID.3 = OID: IP-MIB::ip
    SNMPv2-MIB:ysORID.4 = OID: UDP-MIB::udpMIB
    SNMPv2-MIB:ysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
    SNMPv2-MIB:ysORID.6 = OID: SNMP-FRAMEWORK-MIB:nmpFrameworkMIBCompliance
    SNMPv2-MIB:ysORID.7 = OID: SNMP-MPD-MIB:nmpMPDCompliance
    SNMPv2-MIB:ysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
    SNMPv2-MIB:ysORDescr.1 = STRING: The MIB module for SNMPv2 entities
    SNMPv2-MIB:ysORDescr.2 = STRING: The MIB module for managing TCP implementations
    SNMPv2-MIB:ysORDescr.3 = STRING: The MIB module for managing IP and ICMP implementations
    SNMPv2-MIB:ysORDescr.4 = STRING: The MIB module for managing UDP implementations
    SNMPv2-MIB:ysORDescr.5 = STRING: View-based Access Control Model for SNMP.
    SNMPv2-MIB:ysORDescr.6 = STRING: The SNMP Management Architecture MIB.
    SNMPv2-MIB:ysORDescr.7 = STRING: The MIB for Message Processing and Dispatching.
    SNMPv2-MIB:ysORDescr.8 = STRING: The management information definitions for the SNMP User-based Security Model.
    SNMPv2-MIB:ysORUpTime.1 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.2 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.3 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.4 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.5 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.6 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.7 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.8 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.8 = No more variables left in this MIB View (It is past the end of the MIB tree)


    SNMPv2-MIB:ysDescr.0 = STRING: Linux ubuntuServ 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686
    SNMPv2-MIB:ysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
    DISMAN-EVENT-MIB:ysUpTimeInstance = Timeticks: (967336) 2:41:13.36
    SNMPv2-MIB:ysContact.0 = STRING: Root <[email protected]> (configure /etc/snmp/snmpd.local.conf)
    SNMPv2-MIB:ysName.0 = STRING: ubuntuServ
    SNMPv2-MIB:ysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
    SNMPv2-MIB:ysORLastChange.0 = Timeticks: (1) 0:00:00.01
    SNMPv2-MIB:ysORID.1 = OID: IF-MIB::ifMIB
    SNMPv2-MIB:ysORID.2 = OID: SNMPv2-MIB:nmpMIB
    SNMPv2-MIB:ysORID.3 = OID: TCP-MIB::tcpMIB
    SNMPv2-MIB:ysORID.4 = OID: IP-MIB::ip
    SNMPv2-MIB:ysORID.5 = OID: UDP-MIB::udpMIB
    SNMPv2-MIB:ysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
    SNMPv2-MIB:ysORID.7 = OID: SNMP-FRAMEWORK-MIB:nmpFrameworkMIBCompliance
    SNMPv2-MIB:ysORID.8 = OID: SNMP-MPD-MIB:nmpMPDCompliance
    SNMPv2-MIB:ysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
    SNMPv2-MIB:ysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
    SNMPv2-MIB:ysORDescr.2 = STRING: The MIB module for SNMPv2 entities
    SNMPv2-MIB:ysORDescr.3 = STRING: The MIB module for managing TCP implementations
    SNMPv2-MIB:ysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
    SNMPv2-MIB:ysORDescr.5 = STRING: The MIB module for managing UDP implementations
    SNMPv2-MIB:ysORDescr.6 = STRING: View-based Access Control Model for SNMP.
    SNMPv2-MIB:ysORDescr.7 = STRING: The SNMP Management Architecture MIB.
    SNMPv2-MIB:ysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
    SNMPv2-MIB:ysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
    SNMPv2-MIB:ysORUpTime.1 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.2 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.3 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.4 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.5 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.6 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB:ysORUpTime.7 = Timeticks: (1) 0:00:00.01
    SNMPv2-MIB:ysORUpTime.8 = Timeticks: (1) 0:00:00.01
    SNMPv2-MIB:ysORUpTime.9 = Timeticks: (1) 0:00:00.01
    SNMPv2-MIB:ysORUpTime.9 = No more variables left in this MIB View (It is past the end of the MIB tree)
    [email protected]:~# snmpwalk -v 2c -c public 192.168.0.3 system.sysUpTime.0

    DISMAN-EVENT-MIB:ysUpTimeInstance = Timeticks: (304653) 0:50:46.53
    [email protected]:~# snmpwalk -v 2c -c public 192.168.0.200 system.sysUpTime.0

    DISMAN-EVENT-MIB:ysUpTimeInstance = Timeticks: (783372) 2:10:33.72

    Merci de votre aide.

  • #2
    Je me répond pour faire avancer la chose :

    SNMPD (sur la machine(2) utilisateur)

    ******
    com2sec readonly 192.168.0.0/24 public
    ******
    group MyROGroup v1 readonly
    group MyROGroup v2c readonly
    group MyROGroup usm readonly
    group MyRWGroup v1 readwrite
    group MyRWGroup v2c readwrite
    group MyRWGroup usm readwrite
    ******
    # incl/excl subtree mask
    view all included .1 80 <=========== SUPPRESSION DU MASK 80
    ******
    # context sec.model sec.level match read write notif
    # access MyROSystem "" any noauth exact system none none
    access MyROGroup "" any noauth exact all none none
    access MyRWGroup "" any noauth exact all all none
    Depuis j'ai la branche MIB compléte. Celà ne me donne toujours pas l'espace disque de ma machine mais j'avance.



    Blague :

    - T'as pris quoi comme resolution pour la nouvelle annee ?
    - 1024 x 768
    NAGIOS 3.0b5 <==> OREON 1.4.1
    VMWARE -Ubuntu server

    Comment

    Working...
    X