The collector installer must be obtained from the Vyopta Admin Portal by following the Upgrade Collector workflow. The collector is not available using a package manager (for instance, apt or yum).
If needed, use the GET CONFIG FILE link to obtain the vyoptacollector.xml file.
Once obtained, place vyoptacollector.sh and vyoptacollector.xml in a directory that contains no spaces in its name, and cd to this directory. It is not recommended that this be placed on a networked filesystem.
Ensure that the execution bit is set on the installer by using the command:
chmod +x vyoptacollector.sh
and run the installer with:
./vyoptacollector.sh -install
In needed, please consult a local Linux administrator for assistance.
Starting, Stopping and finding the status of your collector on Linux
When installing the vyoptacollector.sh file for the first time, we will register the collector as a Systemd service. For more information on how Systemd works with our collector, please see the following doc
Enabling Systemd with the VyoptaCollector.jar (cross platform version)
To check the status, use the following command, and you should see the results below
sudo systemctl status VyoptaCPMDataCollectorService
● VyoptaCPMDataCollectorService.service - Manage vyopta collector service
Loaded: loaded (/etc/systemd/system/VyoptaCPMDataCollectorService.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2021-03-15 14:53:42 PDT; 53s ago
Main PID: 311453 (java)
Tasks: 115 (limit: 9252)
CGroup: /system.slice/VyoptaCPMDataCollectorService.service
├─311453 /bin/java -jar vyoptacollector.jar
└─311559 /usr/lib/jvm/java-11-openjdk-arm64/bin/java -Xmx2G --add-opens java.xml/com.s>
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.803 [311559][C+E][main] DEBUG com.vyopta.g>
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.829 [311559][C+E][main] INFO com.vyopta.g>
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.841 [311559][C+E][MonitorScheduler] DEBUG >
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.916 [311559][C+E][main] INFO com.vyopta.g>
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.917 [311559][C+E][main] INFO com.vyopta.g>
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.921 [311559][C+E][main] INFO com.vyopta.g>
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.925 [311559][C+E][main] INFO com.vyopta.g>
Mar 15 14:54:35 ubuntu java[311559]: 2021-03-15 14:54:35.928 [311559][C+E][main] INFO com.vyopta.g>
Mar 15 14:54:36 ubuntu java[311559]: 2021-03-15 14:54:36.031 [311559][C+E][MonitorScheduler] INFO >
Mar 15 14:54:36 ubuntu java[311559]: 2021-03-15 14:54:36.217 [311559][C+E][MonitorScheduler] DEBUG >
To restart the collector
sudo systemctl restart VyoptaCPMDataCollectorService
To stop the collector
sudo systemctl stop VyoptaCPMDataCollectorService
To start the collector
sudo systemctl start VyoptaCPMDataCollectorService
Comments
Please sign in to leave a comment.