Ad Widget

Collapse

Process monitoring via SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vfilatov
    Junior Member
    • May 2021
    • 7

    #1

    Process monitoring via SNMP

    Hello!
    I ask for help in solving the problem.

    The task is as follows:
    The server has a process that should run regularly, but it crashes periodically. It must be monitored only via SNMP, the client cannot be installed on the server (company policy).
    At the moment, I monitor the process like this: I created a data element and by OID 1.3.6.1.2.1.25.4.2.1.7.11996 (where 11996 is the process ID) I check whether the process is running. The fact is that when the process
    crashes, the process ID changes and I have to change to a new ID in the data element.
    Code:
    snmpwalk -v 2c -c public 192.168.***.*** 1.3.6.1.2.1.25.4.2.1.7.11996
    HOST-RESOURCES-MIB::hrSWRunStatus.12964 = INTEGER: running(1)
    If we use the OID 1.3.6.1.2.1.25.4.2.1.2.11996, we will find out the name of the process
    Code:
    snmpwalk -v 2c -c public 192.168.***.*** 1.3.6.1.2.1.25.4.2.1.2.11996
    HOST-RESOURCES-MIB::hrSWRunName.12964 = STRING: "EosCryptoSvc3.exe"
    By OID 1.3.6.1.2.1.25.4.2.1.2, you can get a list of running processes on the server.
    Code:
    ...
    HOST-RESOURCES-MIB::hrSWRunName.11900 = STRING: "SearchUI.exe"
    HOST-RESOURCES-MIB::hrSWRunName.11908 = STRING: "Taskmgr.exe"
    [B]HOST-RESOURCES-MIB::hrSWRunName.11996 = STRING: "EosCryptoSvc3.exe"[/B]
    HOST-RESOURCES-MIB::hrSWRunName.12008 = STRING: "WmiPrvSE.exe"
    HOST-RESOURCES-MIB::hrSWRunName.12016 = STRING: "base32.exe"
    ...
    How do I make Zabbix get a list of running processes and search for the name of my process among them?
    Accordingly, if it finds it, then everything is fine, otherwise the trigger is triggered!
  • luisamaral
    Junior Member
    • Aug 2018
    • 15

    #2
    To solve this problem you need Dynamic Index.

    1 Dynamic indexes [Zabbix Documentation 5.2]

    Comment

    • vfilatov
      Junior Member
      • May 2021
      • 7

      #3
      To solve this problem you need Dynamic Index.

      1 Dynamic indexes [Zabbix Documentation 5.2]
      Thanks, it is works!

      Comment

      Working...