Project

General

Profile

Actions

Task #7482

closed

On Alpine Linux the monit job for node-exporter uses the wrong path

Added by Nico Schottelius over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
12/15/2019
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

Current state is:


[22:56] router2.place5:/etc/monit# cat conf.d/node-exporter 
check process prometheus-node-exporter with pidfile /var/run/prometheus/prometheus-node-exporter.pid
   start program = "/etc/init.d/prometheus-node-exporter start" with timeout 60 seconds
   stop program  = "/etc/init.d/prometheus-node-exporter stop" 
[22:56] router2.place5:/etc/monit# 

However the init script is /etc/init.d/node-exporter.

Add an "os" check into manifest/dcl in the router section to use a different __ungleich_monit config depending on the OS.

MR for this one not direct push, please

Actions #1

Updated by Timothée Floure over 4 years ago

Add an "os" check into manifest/dcl in the router section to use a different __ungleich_monit config depending on the OS.

Wouldn't it be better to add this check to the `__ungleich_monit` type, which generate the `/etc/monit/conf.d/node-exporter` file?

Actions #2

Updated by Timothée Floure about 4 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Timothée Floure about 4 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF