...
By default, NMIS8 will be in "classic" mode, you can select which mode you want with the new "Basic Setup" screen, reached from the menu "Setup -> Basic Setup", change the "Node Status Mode". The new Basic Setup screen looks like this:
When you change these settings, it may take one polling cycle (5 mins) for the dashboard to fully reflect the new status.
...
So the new state is Degraded, this is there to reflect the KPI's for a node and show you that the node is up and working, but has some other performance condition active.
The Gory Details of Classic Mode
Level Status - Normal, Warning, Minor, Major, Critical
Code Block |
---|
'node down' => {
'core' => {
'logging' => 'true',
'level' => 'Critical'
},
'access' => {
'logging' => 'true',
'level' => 'Major'
},
'distribution' => {
'logging' => 'true',
'level' => 'Major'
}
}, |
How these get calculated? % NodeUp (NodeDn) + role weight (access vs core)?
Code Block |
---|
$status_number = 100 * $statusHash{Normal};
$status_number = $status_number + ( 90 * $statusHash{Warning} );
$status_number = $status_number + ( 75 * $statusHash{Minor} );
$status_number = $status_number + ( 60 * $statusHash{Major} );
$status_number = $status_number + ( 50 * $statusHash{Critical} );
$status_number = $status_number + ( 40 * $statusHash{Fatal} );
if ( $status_number != 0 and $statusHash{count} != 0 ) {
$status_number = $status_number / $statusHash{count};
} |
Code Block |
---|
if ( $status_number == 100 ) { $overall_status = "Normal"; }
elsif ( $status_number >= 95 ) { $overall_status = "Warning"; }
elsif ( $status_number >= 90 ) { $overall_status = "Minor"; }
elsif ( $status_number >= 70 ) { $overall_status = "Major"; }
elsif ( $status_number >= 50 ) { $overall_status = "Critical"; }
elsif ( $status_number <= 40 ) { $overall_status = "Fatal"; }
elsif ( $status_number >= 30 ) { $overall_status = "Disaster"; }
elsif ( $status_number < 30 ) { $overall_status = "Catastrophic"; } |
TODO consequences of using fine-grained, when is a node degraded? what happens when you disable an event?