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.
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
By OID 1.3.6.1.2.1.25.4.2.1.2, you can get a list of running processes on the server.
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!
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)
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"
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" ...
Accordingly, if it finds it, then everything is fine, otherwise the trigger is triggered!
Comment