Ad Widget

Collapse

SNMP, process monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • serwan
    Junior Member
    • Jun 2015
    • 2

    #1

    SNMP, process monitoring

    Hello,

    I am trying to set up process monitoring via SNMP, but had small problem.

    1) snmpwalk gies results similar to the one below:

    =====
    processes list:

    linux-qvvt:~ # cat /tmp/walk4 | grep -i hrSWRunName | head
    HOST-RESOURCES-MIB::hrSWRunName.1 = STRING: "HMSAX"
    HOST-RESOURCES-MIB::hrSWRunName.11 = STRING: "SNMPAGT"
    HOST-RESOURCES-MIB::hrSWRunName.12 = STRING: "SNMPAGT"
    HOST-RESOURCES-MIB::hrSWRunName.100 = STRING: "NSK J6"
    HOST-RESOURCES-MIB::hrSWRunName.101 = STRING: "NSK J6"
    HOST-RESOURCES-MIB::hrSWRunName.1000 = STRING: "NMONTOR"
    HOST-RESOURCES-MIB::hrSWRunName.1001 = STRING: "NMEMMAN"
    HOST-RESOURCES-MIB::hrSWRunName.1002 = STRING: "NMSNGERR"
    HOST-RESOURCES-MIB::hrSWRunName.1003 = STRING: "OPCOLL"
    HOST-RESOURCES-MIB::hrSWRunName.1004 = STRING: "TMFMON"
    linux-qvvt:~ #
    =====
    process details:

    linux-qvvt:~ # cat /tmp/walk4 | grep -i swrun | grep 1004
    HOST-RESOURCES-MIB::hrSWRunIndex.1004 = INTEGER: 1004
    HOST-RESOURCES-MIB::hrSWRunName.1004 = STRING: "TMFMON"
    HOST-RESOURCES-MIB::hrSWRunID.1004 = OID: SNMPv2-SMI::enterprises.169.3.180.0
    HOST-RESOURCES-MIB::hrSWRunPath.1004 = STRING: "\\PKP.$SYSTEM.SYS02.TMFMON"
    HOST-RESOURCES-MIB::hrSWRunParameters.1004 = STRING: "-S(0,4) started May 13, 2015 14:48:15.7 by 255,255"
    HOST-RESOURCES-MIB::hrSWRunType.1004 = INTEGER: operatingSystem(2)
    HOST-RESOURCES-MIB::hrSWRunStatus.1004 = INTEGER: running(1)
    HOST-RESOURCES-MIB::hrSWRunPerfCPU.1004 = INTEGER: 1
    HOST-RESOURCES-MIB::hrSWRunPerfMem.1004 = INTEGER: 12464 KBytes
    linux-qvvt:~ #
    =====

    So seems I could use oid index (zabbix feature), and filter all details related to each process - problem is that such a configuration would have big disadvantages:
    1) would not reflect process changes - I could configure zabbix to take details of process TMFMON, having index 1004, but if process would be restarted, and its index changed - zabbix would not recognise it
    2) would also not reflect information related to new processes (i.e. new process with id 20045, started after zabbix conf would be done).

    I wonder now, is there as way to:
    - take process status (process list and process details) in regular period of times, and
    - do some preprocessing after, to be sure that zabbix would know that process with id 1004 is still same process, not new one with reused id, would find out new processes etc, and be able to manage it with one, done once, configuration?

    regards
    Tomasz
Working...