net-mgmt/os-nrpe (#3668)

This commit is contained in:
Michael
2023-11-13 09:53:20 +01:00
committed by GitHub
parent 028ee4c653
commit 5bcc4d5410
8 changed files with 20 additions and 14 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= nrpe
PLUGIN_VERSION= 1.0
PLUGIN_REVISION= 3
PLUGIN_VERSION= 1.1
PLUGIN_COMMENT= Execute nagios plugins
PLUGIN_DEPENDS= nrpe
PLUGIN_MAINTAINER= m.muenz@gmail.com
+7
View File
@@ -7,3 +7,10 @@ the plugin requests to the remote host. Requires that nrpe be running on the
remote host (either as a standalone daemon or as a service under inetd).
WWW: http://www.nagios.org/
Plugin Changelog:
-----------------
1.1
* Make plugin compatbile with nrpe (v4)
@@ -47,7 +47,7 @@ function nrpe_services()
'start' => array('nrpe start'),
'stop' => array('nrpe stop'),
),
'name' => 'nrpe3',
'name' => 'nrpe',
'pid' => '/var/run/nrpe.pid'
);
@@ -1,4 +1,4 @@
#!/bin/sh
mkdir -p /var/run/nrpe3
chown -R nagios:nagios /var/run/nrpe3
mkdir -p /var/run/nrpe
chown -R nagios:nagios /var/run/nrpe
@@ -1,23 +1,23 @@
[start]
command:/usr/local/etc/rc.d/nrpe3 start
command:/usr/local/etc/rc.d/nrpe start
parameters:
type:script
message:starting nrpe
[stop]
command:/usr/local/etc/rc.d/nrpe3 stop
command:/usr/local/etc/rc.d/nrpe stop
parameters:
type:script
message:stopping nrpe
[restart]
command:/usr/local/etc/rc.d/nrpe3 restart
command:/usr/local/etc/rc.d/nrpe restart
parameters:
type:script
message:restarting nrpe
[status]
command:/usr/local/etc/rc.d/nrpe3 status; exit 0
command:/usr/local/etc/rc.d/nrpe status; exit 0
parameters:
type:script_output
message:request nrpe status
@@ -1,3 +1,3 @@
nrpe:/etc/rc.conf.d/nrpe3
nrpe:/etc/rc.conf.d/nrpe
nrpe.cfg:/usr/local/etc/nrpe.cfg
nrpe_commands.cfg:/usr/local/etc/nrpe_commands.cfg
@@ -1,6 +1,6 @@
{% if helpers.exists('OPNsense.nrpe.general.enabled') and OPNsense.nrpe.general.enabled == '1' %}
nrpe3_setup="/usr/local/opnsense/scripts/OPNsense/Nrpe/setup.sh"
nrpe3_enable="YES"
nrpe_setup="/usr/local/opnsense/scripts/OPNsense/Nrpe/setup.sh"
nrpe_enable="YES"
{% else %}
nrpe3_enable="NO"
nrpe_enable="NO"
{% endif %}
@@ -3,7 +3,7 @@
log_facility=daemon
log_file=/var/log/nrpe.log
debug=0
pid_file=/var/run/nrpe3/nrpe.pid
pid_file=/var/run/nrpe/nrpe.pid
nrpe_user=nagios
nrpe_group=nagios