-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cisco-standard): mode configuration wrong calculation #5282
base: develop
Are you sure you want to change the base?
fix(cisco-standard): mode configuration wrong calculation #5282
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Quentin !
closure_custom_perfdata => $self->can('custom_status_perfdata'), | ||
closure_custom_threshold_check => \&catalog_status_threshold, | ||
perfdatas => [ | ||
{ template => '%s', min => 0 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ template => '%s', min => 0 } | |
{ template => '%s', min => 0, unit => 's' } |
You can use the following variables: %{running_last_changed}, %{running_last_saved}, %{startup_last_changed} | ||
|
||
=item B<--critical-status> | ||
=item B<--warning-*> B<--critical-*> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=item B<--warning-*> B<--critical-*> | |
=item B<--warning-config-running-ahead> | |
Thresholds. | |
=item B<--critical-config-running-ahead> |
Define the conditions to match for the status to be CRITICAL (default: '%{running_last_changed} > %{running_last_saved}'). | ||
You can use the following variables: %{running_last_changed}, %{running_last_saved}, %{startup_last_changed} | ||
Thresholds. | ||
Can be: 'config-running-ahead'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be: 'config-running-ahead'. |
my $ccmHistoryRunningLastChanged = $ctime - $uptime + ($results->{$oid_ccmHistoryRunningLastChanged} / 100); | ||
my $ccmHistoryRunningLastSaved = $ctime - $uptime + ($results->{$oid_ccmHistoryRunningLastSaved} / 100); | ||
my $ccmHistoryStartupLastChanged = $ctime - $uptime + ($results->{$oid_ccmHistoryStartupLastChanged} / 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my $ccmHistoryRunningLastChanged = $ctime - $uptime + ($results->{$oid_ccmHistoryRunningLastChanged} / 100); | |
my $ccmHistoryRunningLastSaved = $ctime - $uptime + ($results->{$oid_ccmHistoryRunningLastSaved} / 100); | |
my $ccmHistoryStartupLastChanged = $ctime - $uptime + ($results->{$oid_ccmHistoryStartupLastChanged} / 100); | |
my $start_time = $ctime - $uptime; | |
my $ccmHistoryRunningLastChanged = $start_time + ($results->{$oid_ccmHistoryRunningLastChanged} / 100); | |
my $ccmHistoryRunningLastSaved = $start_time + ($results->{$oid_ccmHistoryRunningLastSaved} / 100); | |
my $ccmHistoryStartupLastChanged = $start_time + ($results->{$oid_ccmHistoryStartupLastChanged} / 100); |
my $runningUnchangedDuration = time() - $ccmHistoryRunningLastChanged; | ||
my $startupUnchangedDuration = time() - $ccmHistoryStartupLastChanged; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my $runningUnchangedDuration = time() - $ccmHistoryRunningLastChanged; | |
my $startupUnchangedDuration = time() - $ccmHistoryStartupLastChanged; | |
my $runningUnchangedDuration = $ctime - $ccmHistoryRunningLastChanged; | |
my $startupUnchangedDuration = $ctime - $ccmHistoryStartupLastChanged; |
Community contributors
Description
It fixed following issue: #4908
CTOR-1081
Type of change
How this pull request can be tested ?
You can test it with following snmpwalk:
Checklist