Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
puppet-backupninja
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chris
puppet-backupninja
Commits
7e1b7428
Commit
7e1b7428
authored
Apr 17, 2015
by
Jerome Charaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nagios stuff in server class
parent
8d973656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
manifests/server.pp
manifests/server.pp
+7
-2
No files found.
manifests/server.pp
View file @
7e1b7428
...
...
@@ -9,7 +9,8 @@ class backupninja::server (
$backupdir
=
'/backup'
,
$backupdir_ensure
=
'directory'
,
$backupserver_tag
=
$::fqdn
,
$manage_nagios
=
false
$manage_nagios
=
false
,
$nagios_server
=
undef
)
{
group
{
"backupninjas"
:
...
...
@@ -28,6 +29,10 @@ class backupninja::server (
if
$manage_nagios
{
if
$nagios_server
==
undef
{
fail
(
'Cannot manage nagios with undefined nagios_server parameter!'
)
}
include
nagios::nsca::client
file
{
"/usr/local/bin/checkbackups"
:
...
...
@@ -37,7 +42,7 @@ class backupninja::server (
}
cron
{
checkbackups
:
command
=>
"/usr/local/bin/checkbackups -d
$
real_
backupdir
| /usr/sbin/send_nsca -H
$nagios_server
-c /etc/send_nsca.cfg | grep -v 'sent to host successfully'"
,
command
=>
"/usr/local/bin/checkbackups -d
$backupdir
| /usr/sbin/send_nsca -H
$nagios_server
-c /etc/send_nsca.cfg | grep -v 'sent to host successfully'"
,
user
=>
"root"
,
hour
=>
"8-23"
,
minute
=>
59
,
...
...
Write
Preview
Markdown
is supported
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