Monitoring process state through Pmon SNMP messages
Posted: Mon Feb 26, 2018 12:44 pm
Hi all!
I'm trying to monitor the state (running, stopped, starting,...) of specific processes through Pmon SNMP messages.
I have found that there is a pmonState (oid 1.3.6.1.4.1.13828.2.1.10.1.6) element in the WinCC OA MIB that contains information about the state of all the managers.
I can query this values to get the state of all the managers or a particular one (oid 1.3.6.1.4.1.13828.2.1.10.1.6.xxx), but I found that polling this values is very slow (also 100ms that is the limit) and sometimes I lose events (for example when a manager automatically restarts after been stopped). When querying the values for all the managers (oid 1.3.6.1.4.1.13828.2.1.10.1.6B) the polling can take up to 2 seconds, although it is configured to 100ms.
I have also seen in the help documentation that there are some specific elements that can be enabled with the config entry sendManagerStateChange = "Yes" in the [pmon] section.
managerUp (oid 1.3.6.1.4.1.13828.2.1.9.1) Is triggered when a manager is started.
managerDown (oid 1.3.6.1.4.1.13828.2.1.9.2) Is triggered when a manager is stopped.
configChanged (oid 1.3.6.1.4.1.13828.2.1.9.3) Is triggered when the contents of the managerTable have been changed (a manager is added, removed or edited).
startupFault (oid 1.3.6.1.4.1.13828.2.1.9.4) Is triggered when a stopped manager which should be running is found during the startup of a project.
projectStop (oid 1.3.6.1.4.1.13828.2.1.9.5) Is triggered as soon as the command to stop the project is received.
But I can't find this elements in the WinCC OA MIB structure and I don't know how to access them nor if this could solve me needs. I configured them manually but it doesn't works.
Thank's for the help!
Marc
WinCC OA v3.15 P007
I'm trying to monitor the state (running, stopped, starting,...) of specific processes through Pmon SNMP messages.
I have found that there is a pmonState (oid 1.3.6.1.4.1.13828.2.1.10.1.6) element in the WinCC OA MIB that contains information about the state of all the managers.
I can query this values to get the state of all the managers or a particular one (oid 1.3.6.1.4.1.13828.2.1.10.1.6.xxx), but I found that polling this values is very slow (also 100ms that is the limit) and sometimes I lose events (for example when a manager automatically restarts after been stopped). When querying the values for all the managers (oid 1.3.6.1.4.1.13828.2.1.10.1.6B) the polling can take up to 2 seconds, although it is configured to 100ms.
I have also seen in the help documentation that there are some specific elements that can be enabled with the config entry sendManagerStateChange = "Yes" in the [pmon] section.
managerUp (oid 1.3.6.1.4.1.13828.2.1.9.1) Is triggered when a manager is started.
managerDown (oid 1.3.6.1.4.1.13828.2.1.9.2) Is triggered when a manager is stopped.
configChanged (oid 1.3.6.1.4.1.13828.2.1.9.3) Is triggered when the contents of the managerTable have been changed (a manager is added, removed or edited).
startupFault (oid 1.3.6.1.4.1.13828.2.1.9.4) Is triggered when a stopped manager which should be running is found during the startup of a project.
projectStop (oid 1.3.6.1.4.1.13828.2.1.9.5) Is triggered as soon as the command to stop the project is received.
But I can't find this elements in the WinCC OA MIB structure and I don't know how to access them nor if this could solve me needs. I configured them manually but it doesn't works.
Thank's for the help!
Marc
WinCC OA v3.15 P007