Kaseya Community

SNMP Monitor Set for NAS

  • Hi everyone,

    Just been trying to figure out how to the SNMP monitoring in Kaseya. I believe I have worked most of it out but I am just trying to fine tune my monitor set.

    I am wanting to monitor the CPU usage of the NAS, I have loaded the vender's MIB file and found the correct OID. This is what my SNMP monitoring set


    Below is my monitoring set I dont think it is right

    mibObject: SystemInfo.SystemCPU-usage
    Collecter Operator: Changed
    Collection Threshold: -1

    Alarm Operator: Changed
    Alarm Threshold: 30

    This is the log file under "SNMP Log"

    8:50:10 am 16-Jul-10 CPU-Usage0 "1.9 %"
    8:45:13 am 16-Jul-10 CPU-Usage0 "3.7 %"
    8:43:29 am 16-Jul-10 CPU-Usage0 "2.8 %"
    8:38:18 am 16-Jul-10 CPU-Usage0 "1.9 %"
    8:37:46 am 16-Jul-10 CPU-Usage0 "2.9 %"
    8:32:22 am 16-Jul-10 CPU-Usage0 "3.8 %"
    8:29:45 am 16-Jul-10 CPU-Usage0 "1.9 %"
    8:25:20 am 16-Jul-10 CPU-Usage0 "2.8 %"
    8:24:48 am 16-Jul-10 CPU-Usage0 "0.9 %"
    8:22:42 am 16-Jul-10 CPU-Usage0 "1.8 %"
    8:22:00 am 16-Jul-10 CPU-Usage0 "1.9 %"
    8:11:29 am 16-Jul-10 CPU-Usage0 "2.8 %"
    8:10:21 am 16-Jul-10 CPU-Usage0 "3.7 %"
    8:08:15 am 16-Jul-10 CPU-Usage0 "1.9 %"
    8:07:11 am 16-Jul-10 CPU-Usage0 "3.8 %"


    And this is the email I recieve:

    Monitoring generated SNMP ALARM at 8:50:26 am 16-Jul-10 on sbs.root.henderson

    SNMP Device: boardroom.hna.local
    Monitor Set: (IND)QNAP
    Type: SNMP
    Log Object Name: CPU-Usage0
    Agent Alarm Time: 8:50:26 am 16-Jul-10
    Event Time: 10:50:26 pm 15-Jul-10 UTC
    Log Value: "1.9 %"
    Alarm Operator: Changed
    Alarm Threshold: 30
    Alarm Duration: 15 Second(s)
    Ticket ID: no ticket assigned


    What I want to do is alarm if the CPU usage reaches 30% I dont know if my logic or syntax is wrong. If someone could help me figure it out that would be great.

    Legacy Forum Name: SNMP Monitor Set for NAS,
    Legacy Posted By Username: Joshua Lehman
  • I think the MIB you're using seems to be returning only non-numeric data for CPU util hence the reason you only get offered "Changed" as the operator, rather than "Over" which is what you really want.

    You'll probably need to tweak it yourself or keep looking for a different MIB version that returns numeric data.

    SNMP

    Legacy Forum Name: How-To,
    Legacy Posted By Username: teamnet
  • This is the MIB from the vendor is there anyway I can modify the mib so that it outputs it in a numerical format?


    NAS-MIB DEFINITIONS ::= BEGIN

    IMPORTS
    enterprises, Counter, TimeTicks
    FROM RFC1155-SMI
    OBJECT-TYPE
    FROM RFC-1212
    TRAP-TYPE
    FROM RFC-1215;

    -- From RFC-1213 (MIB-II)
    DisplayString ::=
    OCTET STRING

    storage OBJECT IDENTIFIER ::= { enterprises 24681 }
    storageSystem OBJECT IDENTIFIER ::= { storage 1 }

    -- Frame Relay Multiplexer MIB groups
    -- system Event
    SystemEventMsg OBJECT IDENTIFIER ::= { storageSystem 1 }

    -- system event
    EventInformMsg OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS current
    DESCRIPTION
    "Information event of NAS system."
    ::= { SystemEventMsg 101 }

    EventWarningMsg OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS current
    DESCRIPTION
    "Warning event of NAS system."
    ::= { SystemEventMsg 102 }

    EventErrorMsg OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS current
    DESCRIPTION
    "Error event of NAS system."
    ::= { SystemEventMsg 103 }

    SystemTraps OBJECT IDENTIFIER ::= { storageSystem 10 }

    EventInform TRAP-TYPE
    ENTERPRISE SystemTraps
    VARIABLES { EventInformMsg }
    DESCRIPTION
    "Info: %s"
    ::= 1

    EventWarning TRAP-TYPE
    ENTERPRISE SystemTraps
    VARIABLES { EventWarningMsg }
    DESCRIPTION
    "Warn: %s"
    ::= 2

    EventError TRAP-TYPE
    ENTERPRISE SystemTraps
    VARIABLES { EventErrorMsg }
    DESCRIPTION
    "Error: %s"
    ::= 4

    -- system inform
    SystemInfo OBJECT IDENTIFIER ::= { storageSystem 2 }

    SystemCPU-Usage OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "System CPU usage"
    ::= { SystemInfo 1 }
    SystemTotalMem OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "System total memory"
    ::= { SystemInfo 2 }
    SystemFreeMem OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "System free memory"
    ::= { SystemInfo 3 }
    SystemUptime OBJECT-TYPE
    SYNTAX TimeTicks
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "The amount of time since this host was last
    initialized. Note that this is different from
    sysUpTime in the SNMPv2-MIB [RFC1907] because
    sysUpTime is the uptime of the network management
    portion of the system."
    ::= { SystemInfo 4 }
    CPU-Temperature OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "CPU temperature"
    ::= { SystemInfo 5 }
    SystemTemperature OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "System temperature"
    ::= { SystemInfo 6 }

    IfNumber OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "The number of network interfaces (regardless of
    their current state) present on this system."
    ::= { SystemInfo 8 }
    SystemIfTable OBJECT-TYPE
    SYNTAX SEQUENCE OF IfEntryDef
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
    "A list of interface entries. The number of
    entries is given by the value of IfNumber."
    ::= { SystemInfo 9 }
    IfEntry OBJECT-TYPE
    SYNTAX IfEntryDef
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
    "An interface entry containing objects at the
    subnetwork layer and below for a particular
    interface."
    INDEX { IfIndex }
    ::= { SystemIfTable 1 }
    IfEntryDef ::=
    SEQUENCE {
    IfIndex
    INTEGER,
    IfDescr
    DisplayString,
    IfPacketsReceived
    Counter,
    IfPacketsSent
    Counter,
    IfErrorPackets
    Counter
    }
    IfIndex OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "A unique value for each interface. Its value
    ranges between 1 and the value of IfNumber. The
    value for each interface must remain constant at
    least from one re-initialization of the entity's
    network management system to the next re-
    initialization."
    ::= { IfEntry 1 }
    IfDescr OBJECT-TYPE
    SYNTAX DisplayString (SIZE (0..255))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "A textual string containing information about the
    interface. This string should include the name of
    the manufacturer, the product name and the version
    of the hardware interface."
    ::= { IfEntry 2 }
    IfPacketsReceived OBJECT-TYPE
    SYNTAX Counter
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "System packets received."
    ::= { IfEntry 3 }
    IfPacketsSent OBJECT-TYPE
    SYNTAX Counter
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "System packets sent."
    ::= { IfEntry 4 }
    IfErrorPackets OBJECT-TYPE
    SYNTAX Counter
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "System error packets."
    ::= { IfEntry 5 }

    HdNumber OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "The number of hard disk (regardless of
    their current state) present on this system."
    ::= { SystemInfo 10 }
    SystemHdTable OBJECT-TYPE
    SYNTAX SEQUENCE OF HdEntryDef
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
    "A list of interface entries. The number of
    entries is given by the value of IfNumber."
    ::= { SystemInfo 11 }
    HdEntry OBJECT-TYPE
    SYNTAX HdEntryDef
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
    "An interface entry containing objects at the
    subnetwork layer and below for a particular
    interface."
    INDEX { HdIndex }
    ::= { SystemHdTable 1 }
    HdEntryDef ::=
    SEQUENCE {
    HdIndex
    INTEGER,
    HdDescr
    DisplayString,
    HdTemperature
    DisplayString,
    HdStatus
    INTEGER
    }
    HdIndex OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "A unique value for each hard disk. Its value
    ranges between 1 and the value of IfNumber. The
    value for each interface must remain constant at
    least from one re-initialization of the entity's
    network management system to the next re-
    initialization."
    ::= { HdEntry 1 }
    HdDescr OBJECT-TYPE
    SYNTAX DisplayString (SIZE (0..255))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "A textual string containing information about the
    interface. This string should include the name of
    the manufacturer, the product name and the version
    of the hardware interface."
    ::= { HdEntry 2 }
    HdTemperature OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "Hard disk temperature."
    ::= { HdEntry 3 }
    HdStatus OBJECT-TYPE
    SYNTAX INTEGER {
    ready(0),
    noDisk(-5),
    invalid(-6),
    rwError(-9),
    unknown(-4)
    }
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "HDD status. 0:not availible, 1:availible."
    ::= { HdEntry 4 }

    ModelName OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "Model name"
    ::= { SystemInfo 12 }
    HostName OBJECT-TYPE
    SYNTAX DisplayString
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "Model name"
    ::= { SystemInfo 13 }

    SysFanNumber OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "The number of system fan (regardless of
    their current state) present on this system."
    ::= { SystemInfo 14 }
    SystemFanTable OBJECT-TYPE
    SYNTAX SEQUENCE OF SysFanEntryDef
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
    "A list of interface entries. The number of
    entries is given by the value of SysFanNumber."
    ::= { SystemInfo 15 }
    SysFanEntry OBJECT-TYPE
    SYNTAX SysFanEntryDef
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
    "An system fan entry containing objects at the
    subnetwork layer and below for a particular
    interface."
    INDEX { SysFanIndex }
    ::= { SystemFanTable 1 }
    SysFanEntryDef ::=
    SEQUENCE {
    SysFanIndex
    INTEGER,
    SysFanDescr
    DisplayString,
    SysFanSpeed
    DisplayString
    }
    SysFanIndex OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "A unique value for each system fan. Its value
    ranges between 1 and the value of SysFanNumber. The
    value for each interface must remain constant at
    least from one re-initialization of the entity's
    network management system to the next re-
    initialization."
    ::= { SysFanEntry 1 }
    SysFanDescr OBJECT-TYPE
    SYNTAX DisplayString (SIZE (0..255))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "A textual string containing information about the
    interface. This string should include the name of
    the manufacturer, the product name and the version
    of the hardware interface."
    ::= { SysFanEntry 2 }
    SysFanSpeed OBJECT-TYPE
    SYNTAX DisplayString (SIZE (0..255))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
    "System fan speed."
    ::= { SysFanEntry 3 }

    END



    Legacy Forum Name: How-To,
    Legacy Posted By Username: Joshua Lehman
  • does anyone implemented QNAP SNMP monitoring successfully? If yes, could you please provide your SNMP Monitor Set Settings.