monitors:submqttm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
monitors:submqttm [2020/11/13 12:13] – [Description] wnelismonitors:submqttm [2020/11/13 12:19] – [Installation] wnelis
Line 19: Line 19:
 === Client side === === Client side ===
  
-Source modules submqttm.py and watchdog.py in /usr/lib/xymon/client/ext+The source modules submqttm.py and watchdog.py shown in the next chapter are to be installed in directory /usr/lib/xymon/client/ext. Script submqttm.py needs to be running continuously, as the topcis can arrive at any time. Thus xymonlaunch is //not// used. In stead, a service is  defined which will start script submqttm.py at system start. 
 + 
 +Service submqttm is defined by creating a file named /etc/systemd/system as super user. An example of the content of this file is shown below. 
 + 
 +[Unit] 
 +Description=Xymon client with MQTT input 
 +  
 +[Service] 
 +Type=simple 
 +User=xymon 
 +Group=xymon 
 +ExecStart=/usr/lib/xymon/client/ext/submqttm.py 
 +WorkingDirectory=/usr/lib/xymon/client/ext 
 +StandardOutput=null 
 +StandardError=null 
 +Restart=on-abort 
 + 
 +[Install] 
 +WantedBy=multi-user.target 
 + 
 Continuously running, as the topics can arrive at any time. Continuously running, as the topics can arrive at any time.
 Tests with mode 'periodic' are run once every 5 minutes. Tests with mode 'periodic' are run once every 5 minutes.
  • monitors/submqttm.txt
  • Last modified: 2020/11/13 12:48
  • by wnelis