Page 1 of 1

Monitoring process state through Pmon SNMP messages

Posted: Mon Feb 26, 2018 12:44 pm
by marcvelarodino
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

Re: Monitoring process state through Pmon SNMP messages

Posted: Wed Feb 28, 2018 11:32 am
by marcvelarodino
More on this topic.

As I understand, looking at the help entry "Traps" (qthelp://wincc_oa/doc/SNMP/SNMP-11.htm), if I configure the config entries sendManagerStateChange = "Yes" and v1TrapTarget, then the Pmon will send traps based on manager state changes, and the information for the received traps will be mapped to the internal data points below the node __SNMPManager.Trap.

I have tried it but for me doesn't work. I suppose I have missing something...

I have configured the Live Agent as described in the help and it worked fine, and I can send traps whose information is mapped to the mentioned datapoint.

I want to receive the traps from pmon. Could you provide me any help please?

Marc

Re: Monitoring process state through Pmon SNMP messages

Posted: Thu Mar 01, 2018 4:13 pm
by leoknipp
The DP element __SNMPManager.Trap is only set by the SNMP manager. A SNMP Manager is not a SNMP LiveAgent, these are different processes.
If such a manager is not running in your project the traps send by the Process Monitor cannot be received.
The Process Monitor has no access to the datapoints of the project.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: Monitoring process state through Pmon SNMP messages

Posted: Tue Mar 06, 2018 9:55 am
by marcvelarodino
Sorry, I do not explained it well.

I have a SNMP Manager running in my project. I also have the config entries described in the help. But I don't receive the traps from pmon in the __SNMPManager.Trap as expected.


I only mentioned the LiveAgent because with it, I can send traps that are received in this datapoint. I send the traps through the "SNMP Live Agent configuration" panel.

Re: Monitoring process state through Pmon SNMP messages

Posted: Tue Mar 06, 2018 3:26 pm
by leoknipp
I've tested it and it works when using the following entries for the Process Monitor:

[pmon]
allowSNMP = "yes"
sendManagerStateChange = "Yes"
v1TrapTarget = "/162"

For the SNMP Manager you have to define an agent with the same IP address.
Then the traps are written to the elements for the __SNMP_Manager datapoint.

When you have made the changes you have to restart the complete projekt including the Process Monitor.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: Monitoring process state through Pmon SNMP messages

Posted: Tue Mar 06, 2018 4:59 pm
by marcvelarodino
Resolved!

The key was to put the IP address instead of the computer name when configuring the SNMP Agent for the pmon.

Maybe a DNS issue, I don't know.

Thanks for the help!