Changelog: https://roxy-wi.org/changelog#6_2_2
pull/343/head
Pavel Loginov 2022-10-17 20:58:22 +03:00
parent 498153ef1a
commit c8eb548daf
2 changed files with 5 additions and 5 deletions

View File

@ -53,14 +53,14 @@
become: true become: true
copy: copy:
src: "/tmp/apache_exporter-{{ apache_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/apache_exporter" src: "/tmp/apache_exporter-{{ apache_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/apache_exporter"
dest: "/opt/prometheus/exporters/apache_exporter" dest: "{{prometheus_exporter_dir}}/apache_exporter"
mode: 0755 mode: 0755
owner: root owner: root
group: root group: root
notify: notify:
- restart apache exporter - restart apache exporter
when: not ansible_check_mode when: not ansible_check_mode
- name: Copy the apache_exporter systemd service file - name: Copy the apache_exporter systemd service file
become: true become: true
template: template:

View File

@ -329,7 +329,7 @@ $( function() {
if (data.indexOf('error:') != '-1') { if (data.indexOf('error:') != '-1') {
toastr.clear(); toastr.clear();
toastr.error(data); toastr.error(data);
} else if(data == 'no' || data == '' || data.indexOf('No') != '-1') { } else if(data == 'no' || data == '' || data.indexOf('No') != '-1' || data.indexOf('No such file or directory') != '-1') {
$('#cur_haproxy_exp_ver').text('HAProxy exporter has been not installed'); $('#cur_haproxy_exp_ver').text('HAProxy exporter has been not installed');
} else { } else {
$('#cur_haproxy_exp_ver').text(data); $('#cur_haproxy_exp_ver').text(data);
@ -352,7 +352,7 @@ $( function() {
if (data.indexOf('error:') != '-1') { if (data.indexOf('error:') != '-1') {
toastr.clear(); toastr.clear();
toastr.error(data); toastr.error(data);
} else if(data == 'no' || data == '') { } else if(data == 'no' || data == '' || data.indexOf('No such file or directory') != '-1') {
$('#cur_nginx_exp_ver').text('NGINX exporter has not been installed'); $('#cur_nginx_exp_ver').text('NGINX exporter has not been installed');
} else { } else {
$('#cur_nginx_exp_ver').text(data); $('#cur_nginx_exp_ver').text(data);
@ -375,7 +375,7 @@ $( function() {
if (data.indexOf('error:') != '-1') { if (data.indexOf('error:') != '-1') {
toastr.clear(); toastr.clear();
toastr.error(data); toastr.error(data);
} else if(data == 'no' || data == '') { } else if(data == 'no' || data == '' || data.indexOf('No such file or directory') != '-1') {
$('#cur_apache_exp_ver').text('Apache exporter has not been installed'); $('#cur_apache_exp_ver').text('Apache exporter has not been installed');
} else { } else {
$('#cur_apache_exp_ver').text(data); $('#cur_apache_exp_ver').text(data);