Skip to content
Snippets Groups Projects
Commit 555d6679 authored by Stephane Armanet's avatar Stephane Armanet
Browse files

remove monitoring script (to be implemented in node-exporter role)

parent 1c91521b
No related branches found
No related tags found
No related merge requests found
Pipeline #70904 passed
......@@ -6,7 +6,7 @@ nomachine_terminalsrv_rpm: https://artifactory.esss.lu.se/artifactory/swi-pkg/no
nomachine_node_rpm: https://artifactory.esss.lu.se/artifactory/swi-pkg/nomachine/nomachine-enterprise-terminal-server_7.3.2_1_x86_64.rpm
desktop_base_xfce_profile_reset: false
desktop_base_xfce_profile: "1screen"
nomachine_monitoring_scripts_url: https://gitlab.esss.lu.se/ics-infrastructure/devops-scripts/-/raw/master/nomachine/
nomachine_monitoring_scripts_repo: https://gitlab.esss.lu.se/ics-infrastructure/devops-scripts.git
nomachine_monitoring_scripts:
- nomachine_stats
- cpu_per_nomachine_user
......
......@@ -6,6 +6,7 @@
- freerdp.x86_64
- remmina.x86_64
- remmina-plugins-rdp.x86_64
- git
state: present
tags: setup
......@@ -25,20 +26,3 @@
owner: root
group: root
mode: 0755
when: "'nomachine_nodes' not in group_names"
- name: copy monitoring scripts to extend node_exporter for nomachine
get_url:
url: "{{ nomachine_monitoring_scripts_url }}/{{ item }}"
dest: "/usr/local/bin/{{ item }}"
mode: 0755
loop: "{{ nomachine_monitoring_scripts }}"
- name: setup crontab to collect nomachine metrics
cron:
name: "{{ item }}"
minute: "*"
job: "/usr/local/bin/{{ item }} > {{ node_exporter_textfile_dir }}/{{ item }}.prom"
user: root
cron_file: /etc/crontab
loop: "{{ nomachine_monitoring_scripts }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment