Skip to content

SNMP Monitoring

Oliver Sünder edited this page Jan 15, 2024 · 3 revisions

Table of Contents

SNMP

The Xyna Factory can be monitored via SNMP if the SNMP Statistics Standard Application is installed.

Example Request: snmpwalk -v2c -c public <host>:<port> 1.3.6.1.4.1.28747.1.11

Statistics that can be monitored include

Statistics queries

By default, the factory provides a set of statistics that are used to control and monitor the factory can be used. A corresponding interface is used to query these statistics via SNMP provided.

The information that can be queried includes, among other things:

  • Job statistics (in cluster operation, these statistics provide cluster-wide information)
  • System information
  • Interface information regarding trigger instances
  • Further statistics (e.g. registered for a specific project).

MIB

https://github.com/Xyna-Factory/xyna-factory/tree/main/modules/xact/snmp/mib

Statistics query via SNMP

  • Enable the SNMP trigger and filter instances.
  • OIDs can be found in the MIB provided; The fixed prefix for the Xyna Black Edition is: 1.3.6.1.4.1.28747.1.11
  • Query via SNMP walk: snmpwalk -v2c -c public <host></host>:<port></port> (The host to be specified must be selected according to the configuration in /etc/hosts)

Query order statistics

New order types are dynamically assigned an OID and persisted. The same OID is there with it available for this job type even after a Factory Server restart. In order to determine the associated OID for a new order type, an snmpwalk must be carried out via the “Order Statistics” (XPRC.XPCE.Stats.OrderStatistics - the corresponding OID for this results from the MIB). and search for the desired order type. The resulting OID can then be used to display the statistics for the order (i.e. total number of completed orders of this type, successfully or incorrectly completed jobs as well as jobs with a timeout) specifically via SNMP be queried.

Alarming

The Xyna Factory currently does not have any automatic alerting functionality in the event of system problems Makes notifications in the form of SNMP traps.

However, it is possible to create a project-specific one using the functionality provided Introduce alarming. Some options are shown below.

With the SNMP component, the factory provides a service for sending and processing SNMP commands ready. In addition to a provided SNMP trigger for receiving traps and requests, the SNMP commands get, set and trap are encapsulated in service methods and can therefore be used analogously to other building blocks in graphical process modeling become. Using these provided methods, a service can be created that occurs when it occurs issues an SNMP command in a critical situation. Triggering this service can situation-specific, e.g. when catching an exception, during periodically executed control services or similar.

See Also

Clone this wiki locally