FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backup-scheduler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yusuf Hamied Department of Chemistry
COs
backup-scheduler
Commits
9963256f
Commit
9963256f
authored
9 years ago
by
Dr Adam Thorn
Browse files
Options
Downloads
Patches
Plain Diff
Fix boundary checking for reporting yellow backup status in xymon script
parent
d2b51352
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ROOT/usr/lib/hobbit/client/ext/zfs-backups
+2
-2
2 additions, 2 deletions
ROOT/usr/lib/hobbit/client/ext/zfs-backups
with
2 additions
and
2 deletions
ROOT/usr/lib/hobbit/client/ext/zfs-backups
+
2
−
2
View file @
9963256f
...
...
@@ -58,8 +58,8 @@ print "Considering $hostname\n";
if
(
!
defined
(
$row
->
{'
age
'})
)
{
$row
->
{'
age
'}
=
9999999999999999
;};
if
(
$row
->
{'
age
'}
<
$row
->
{'
green_soft
'})
{
$bb
->
color_line
('
green
',
$row
->
{'
backup_task_name
'}
.
"
completed
"
.
$row
->
{'
age
'}
.
"
[<
"
.
$row
->
{'
green_soft
'}
.
"
] seconds ago.
\n
");
}
elsif
(
$row
->
{'
age
'}
<
$row
->
{'
yellow
_soft
'}
&&
$row
->
{'
age
'}
<
$row
->
{'
yellow_hard
'})
{
$bb
->
color_line
('
yellow
',
$row
->
{'
backup_task_name
'}
.
"
completed
"
.
$row
->
{'
age
'}
.
"
[<
"
.
$row
->
{'
yellow
_soft
'}
.
"
and
"
.
$row
->
{'
yellow_hard
'}
.
"
] seconds ago.
\n
");
}
elsif
(
$row
->
{'
age
'}
>
$row
->
{'
green
_soft
'}
&&
$row
->
{'
age
'}
<
$row
->
{'
yellow_hard
'})
{
$bb
->
color_line
('
yellow
',
$row
->
{'
backup_task_name
'}
.
"
completed
"
.
$row
->
{'
age
'}
.
"
[<
"
.
$row
->
{'
green
_soft
'}
.
"
and
"
.
$row
->
{'
yellow_hard
'}
.
"
] seconds ago.
\n
");
}
else
{
$bb
->
color_line
('
red
',
$row
->
{'
backup_task_name
'}
.
"
completed
"
.
$row
->
{'
age
'}
.
"
seconds ago.
\n
");
$bb
->
print
("
Should be completed before
$row
->{'yellow_soft'} and
$row
->{'yellow_hard'}.
\n
");
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment