OP#436 add main file control link to wiki

This commit is contained in:
2026-02-21 14:21:14 +01:00
parent 0bd03f3168
commit 523464cbfb
5 changed files with 33 additions and 45 deletions

View File

@@ -1 +0,0 @@
certbot certonly -t -n --agree-tos --webroot -w <%= @ng_certbot_webroot %>/ -d <%= @ng_webserver_name %> --email <%= @ng_mail_user %>

View File

@@ -1,4 +0,0 @@
#!/bin/bash
<% if @ng_enable_certbot == true %>
test -d /etc/letsencrypt/archive/<%= @ng_nagios_server %>
<% end %>

View File

@@ -1,7 +0,0 @@
#!/bin/bash
<% if @ng_enable_certbot == true %>
case `find /etc/letsencrypt/renewal -type f -name "<%= @ng_nagios_server %>.conf" -mtime +80` in
'') echo 'No filename found' exit 0 ;;
*) echo 'Found filename' exit 1 ;;
esac
<% end %>

View File

@@ -9,13 +9,13 @@
log_file=<%= @ng_log_file %>
# OBJECT CONFIGURATION FILE(S)
# These are the object configuration files in which you define hosts,
# host groups, contacts, contact groups, services, etc.
# You can split your object definitions across several config files
# if you wish (as shown below), or keep them all in a single config file.
# This section has been outsourced into <%= @ng_conf_d_dir %>/*.cfg files,
# because the commands are now built via PuppetDB exports and imports.
# Original files are available at https://3for.me/hn6ca (membership area)
# or at nagios.org
# You can specify individual object config files as shown below:
cfg_file=/etc/nagios/objects/commands.cfg
cfg_file=<%= @ng_target_command %>
cfg_file=/etc/nagios/objects/contacts.cfg
cfg_file=/etc/nagios/objects/timeperiods.cfg
cfg_file=/etc/nagios/objects/templates.cfg