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
f17052b0
Commit
f17052b0
authored
Jan 24, 2013
by
varac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added nrpe cmd and service definition
parent
1e5db13e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
manifests/nagios_plugin/duplicity.pp
manifests/nagios_plugin/duplicity.pp
+19
-4
No files found.
manifests/nagios_plugin/duplicity.pp
View file @
f17052b0
class
backupninja::nagios_plugin::duplicity
{
case
::
operatingsystem
{
case
$
::operatingsystem
{
'Debian'
:
{
package
{
'python-argparse'
:
ensure
=>
installed
,
}
}
'Ubuntu'
:
{
package
{
'python-argh'
:
ensure
=>
installed
,
}
}
default
:
{
notify
{
'Backupninja-Duplicity Nagios check needs python-argparse to be installed !'
:}
}
}
nagios::plugin
{
'check_backupninja_duplicity.py'
:
source
=>
'backupninja/nagios_plugins/duplicity/check_backupninja_duplicity.py'
file
{
'/usr/lib/nagios/plugins/check_backupninja_duplicity.py'
:
source
=>
'puppet:///modules/backupninja/nagios_plugins/duplicity/check_backupninja_duplicity.py'
,
mode
=>
'0755'
,
owner
=>
'nagios'
,
group
=>
'nagios'
,
}
# deploy helper script
...
...
@@ -18,5 +21,17 @@ class backupninja::nagios_plugin::duplicity {
group
=>
'nagios'
,
}
}
nagios::nrpe::command
{
'check_backupninja_duplicity'
:
command_line
=>
"
${::nagios::nrpe::nagios_plugin_dir}
/check_backupninja_duplicity"
}
nagios::service
{
'Backupninja Duplicity'
:
use_nrpe
=>
true
,
check_command
=>
'check_backupninja_duplicity'
,
nrpe_timeout
=>
'60'
,
# check only twice a day
normal_check_interval
=>
'720'
,
# recheck every hour
retry_check_interval
=>
'60'
,
}
}
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