Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
1cb343d4
Commit
1cb343d4
authored
Oct 23, 2014
by
Jonathan Gazeley
Browse files
Remove site-specific Nagios checks from Forge module
parent
c593c27b
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
1cb343d4
...
...
@@ -5,7 +5,6 @@ class freeradius (
)
inherits
freeradius::params
{
include
samba
include
nagios::plugins::radius
file
{
'radiusd.conf'
:
name
=>
"
$fr_basepath
/radiusd.conf"
,
...
...
manifests/nagios.pp
deleted
100644 → 0
View file @
c593c27b
class
freeradius::nagios
{
# Add the nrpe user to the radiusd group
User
<|
title
==
'nrpe'
|>
{
groups
+>
'radiusd'
}
# Check radiusd daemon
@@
nagios_service
{
"check_radiusd_
${::fqdn}
"
:
check_command
=>
'check_nrpe!check_radiusd'
,
service_description
=>
'RADIUS'
,
use
=>
'1min-service'
,
}
@@
nagios_servicedependency
{
"check_radiusd_
${::fqdn}
"
:
dependent_host_name
=>
$::fqdn
,
dependent_service_description
=>
'RADIUS'
,
service_description
=>
'NRPE'
,
}
# Check certificate expiry
@@
nagios_service
{
"check_x509cert_
${::fqdn}
"
:
check_command
=>
'check_nrpe!check_x509cert'
,
service_description
=>
'SSL certificates'
,
use
=>
'hourly-service'
,
}
@@
nagios_servicedependency
{
"check_x509cert_
${::fqdn}
"
:
dependent_host_name
=>
$::fqdn
,
dependent_service_description
=>
'SSL certificates'
,
service_description
=>
'NRPE'
,
}
# Check winbind connectivity
@@
nagios_service
{
"check_wbinfo_
${::fqdn}
"
:
check_command
=>
'check_nrpe!check_wbinfo'
,
service_description
=>
'Winbind'
,
use
=>
'1min-service'
,
}
@@
nagios_servicedependency
{
"check_wbinfo_
${::fqdn}
"
:
dependent_host_name
=>
$::fqdn
,
dependent_service_description
=>
'Winbind'
,
service_description
=>
'NRPE'
,
}
# Check NTLM auth backend
@@
nagios_service
{
"check_ntlm_
${::fqdn}
"
:
check_command
=>
'check_nrpe!check_ntlm'
,
service_description
=>
'NTLM'
,
use
=>
'1min-service'
,
}
@@
nagios_servicedependency
{
"check_ntlm_
${::fqdn}
"
:
dependent_host_name
=>
$::fqdn
,
dependent_service_description
=>
'NTLM'
,
service_description
=>
'NRPE'
,
}
# Check RADIUS status server
@@
nagios_service
{
"check_radsstest_
${::fqdn}
"
:
check_command
=>
'check_radsstest'
,
service_description
=>
'RADIUS status'
,
use
=>
'3min-service'
,
}
@@
nagios_service
{
"check_radius_statistics_
${::fqdn}
"
:
check_command
=>
'check_radius_status'
,
service_description
=>
'RADIUS statistics'
,
use
=>
'1min-service'
,
}
# Each server being monitored by RADIUS Statistics needs this file creating on monitor
@@
file
{
"/tmp/radius-stats-
${::ipaddress}
.ini"
:
ensure
=>
present
,
tag
=>
'radius-statistics.ini'
,
owner
=>
'nagios'
,
group
=>
'nagios'
,
mode
=>
'0664'
,
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment