Skip to content

Commit

Permalink
Update cron task description
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Jan 13, 2025
1 parent ec47257 commit cc7e2d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kickstart_source_script/el_configurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ fi

# Prometheus el_configurator version support
cat << 'EOF' > /etc/cron.d/el_configurator
# Run el_configurator every 5 minutes
# Run el_configurator prometheus metrics every 5 minutes
*/5 * * * * root /usr/bin/bash -c 'el_configurator_date=$(date -r /root/.el-configurator.log +%s 2>/dev/null) \
&& echo -e "# HELP el_configurator_setup_date timestamp when last EL configurator was run\n# TYPE el_configurator_setup_date gauge\nel_configurator_setup_date ${el_configurator_date}" > /var/lib/node_exporter/textfile_collector/el_configurator.prom; \
if grep "EL POST SCRIPT: SUCCESS" /etc/motd >/dev/null 2>&1; then el_configurator_state=0; else el_configurator_state=1; fi; echo -e "# HELP el_configurator_state current state of el_configurator run\n# TYPE el_configurator_state gauge\nel_configurator_state ${el_configurator_state}" >> /var/lib/node_exporter/textfile_collector/el_configurator.prom'
Expand Down
2 changes: 1 addition & 1 deletion ks.rhel9.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ fi

# Prometheus el_configurator version support
cat << 'EOF' > /etc/cron.d/el_configurator
# Run el_configurator every 5 minutes
# Run el_configurator prometheus metrics every 5 minutes
*/5 * * * * root /usr/bin/bash -c 'el_configurator_date=$(date -r /root/.el-configurator.log +%s 2>/dev/null) \
&& echo -e "# HELP el_configurator_setup_date timestamp when last EL configurator was run\n# TYPE el_configurator_setup_date gauge\nel_configurator_setup_date ${el_configurator_date}" > /var/lib/node_exporter/textfile_collector/el_configurator.prom; \
if grep "EL POST SCRIPT: SUCCESS" /etc/motd >/dev/null 2>&1; then el_configurator_state=0; else el_configurator_state=1; fi; echo -e "# HELP el_configurator_state current state of el_configurator run\n# TYPE el_configurator_state gauge\nel_configurator_state ${el_configurator_state}" >> /var/lib/node_exporter/textfile_collector/el_configurator.prom'
Expand Down

0 comments on commit cc7e2d7

Please # to comment.