Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSD
public
zabbix-templates
Commits
9def6ec5
Commit
9def6ec5
authored
Feb 06, 2020
by
Fulvio Galeazzi
Browse files
2020-02-06: FG; Updated to match new output from 'osd df' command.
parent
47877156
Changes
4
Hide whitespace changes
Inline
Side-by-side
Ceph/Script/cephDiskPerf.pl
View file @
9def6ec5
...
...
@@ -171,7 +171,7 @@ foreach my $_lineS (@_dataSize)
next
unless
(
$fields
[
0
]
=~
/^\d+$/
);
my
$osdNum
=
$fields
[
0
];
my
$type
=
$fields
[
1
];
my
$frac
=
$fields
[
7
];
my
$frac
=
$fields
[
11
];
my
$size
=
$fields
[
4
];
$size
=~
s/iB$//
;
$size
=~
s/B$//
;
...
...
Ceph/Script/cephHealth.pl
View file @
9def6ec5
...
...
@@ -41,7 +41,7 @@ sub convertNumber
}
elsif
(
$lastChar
eq
"
m
")
{
$value
=
$string
*
0.001
*
0.001
;
}
elsif
(
$lastChar
eq
"
k
")
{
$value
=
$string
*
0.001
*
0.001
;
$value
=
$string
*
0.001
*
0.001
*
0.001
;
}
else
{
$value
=
$value
*
0.001
*
0.001
*
0.001
*
0.001
;
}
...
...
Ceph/Script/cephUsage.pl
View file @
9def6ec5
...
...
@@ -43,7 +43,7 @@ sub convertNumber
}
elsif
(
$lastChar
eq
"
m
")
{
$value
=
$string
*
0.001
*
0.001
;
}
elsif
(
$lastChar
eq
"
k
")
{
$value
=
$string
*
0.001
*
0.001
;
$value
=
$string
*
0.001
*
0.001
*
0.001
;
}
else
{
$value
=
$value
*
0.001
*
0.001
*
0.001
*
0.001
;
}
...
...
Ceph/Script/queryCephDisks.pl
View file @
9def6ec5
...
...
@@ -194,7 +194,7 @@ foreach my $_line (@_data)
next
unless
(
$fields
[
0
]
=~
/^\d+$/
);
my
$osdNum
=
$fields
[
0
];
my
$type
=
$fields
[
1
];
my
$frac
=
$fields
[
7
];
my
$frac
=
$fields
[
10
];
my
$size
=
$fields
[
4
];
$size
=~
s/iB$//
;
$size
=~
s/B$//
;
...
...
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