Skip to content

Commit

Permalink
Fix for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Feb 12, 2018
1 parent 0e05389 commit e2d93b8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
6 changes: 6 additions & 0 deletions addons/monit/monit_checks_configurations/00_packetfence.tt
Expand Up @@ -131,6 +131,12 @@ CHECK PROCESS packetfence-netdata MATCHING "netdata"
stop program = "[% SERVICE_BIN %] packetfence-netdata stop"
if 3 restarts within 10 cycles then alert

CHECK PROCESS packetfence-stat MATCHING "pfstats"
group PacketFence
start program = "[% SERVICE_BIN %] packetfence-stats restart"
stop program = "[% SERVICE_BIN %] packetfence-stats stop"
if 3 restarts within 10 cycles then alert

[% IF DOMAINS.size > 0 %]
CHECK PROCESS packetfence-winbind MATCHING "winbindd-wrapper"
group PacketFence
Expand Down
13 changes: 13 additions & 0 deletions conf/documentation.conf
Expand Up @@ -370,6 +370,13 @@ description=<<EOT
Should netdata be managed by PacketFence?
EOT

[services.pfstats]
type=toggle
options=enabled|disabled
description=<<EOT
Should pfstats be managed by PacketFence?
EOT

[services.httpd_binary]
type=hidden
description=<<EOT
Expand Down Expand Up @@ -446,6 +453,12 @@ description=<<EOT
Location of the netdata binary.
EOT

[services.pfstats_binary]
type=hidden
description=<<EOT
Location of the pfstats binary.
EOT

[services.radsniff_binary]
type=hidden
description=<<EOT
Expand Down
2 changes: 1 addition & 1 deletion conf/systemd/packetfence-stats.service
@@ -1,5 +1,5 @@
[Unit]
Description=PacketFence Collectd to Statsd daemon
Description=PacketFence Stats daemon
Wants=packetfence-base.target packetfence-config.service packetfence-iptables.service
After=packetfence-base.target packetfence-config.service packetfence-iptables.service

Expand Down
1 change: 1 addition & 0 deletions lib/pf/cmd/pf/service.pm
Expand Up @@ -37,6 +37,7 @@ Services managed by PacketFence:
pfmon | PF monitoring daemon
pfqueue | PF queueing service
pfsetvlan | PF VLAN isolation daemon
pfstats | PF statistics daemon
radiusd | FreeRADIUS daemon
radsniff | radsniff daemon
redis_ntlm_cache | Redis for the NTLM cache
Expand Down
6 changes: 6 additions & 0 deletions packetfence.rsyslog
Expand Up @@ -143,3 +143,9 @@ if $programname == "pfdhcp" then -/usr/local/pf/logs/packetfence.log
# MARIADB
if $syslogtag contains "mysqld" then -/usr/local/pf/logs/mariadb_error.log
& stop

# pfstats
if $syslogtag contains "pfstats" then -/usr/local/pf/logs/pfstats.log
& stop


0 comments on commit e2d93b8

Please sign in to comment.