centreon-plugins
centreon-plugins copied to clipboard
[storage::hp::3par::ssh::plugin] Request a new mode "nodes" (with CPU perfdata)
Hello
Please make a new mode nodes in storage::hp::3par::ssh::plugin to check the status of 3PAR compute nodes and processor performance information.
The current implementation of monitoring in the node.pm
code does not have checks for power performance information.
However, the state of CPU utilization in compute nodes is a key monitoring metric.
The information from the statcpu -iter 1 -d 1
command will allow us to see the current load on all CPU cores.
Example:
3PAR02 cli% statcpu -iter 1 -d 1
17:34:58 01/27/2022
node,cpu user sys idle intr/s ctxt/s
0,0 1 0 99
0,1 1 1 98
0,2 0 1 99
0,3 1 1 98
0,4 0 1 99
0,5 0 1 99
0,6 4 1 95
0,7 0 0 100
0,total 1 1 98 7276 9026
1,0 0 0 100
1,1 0 0 100
1,2 0 0 100
1,3 0 1 99
1,4 0 0 100
1,5 0 1 99
1,6 0 2 98
1,7 0 0 100
1,total 0 1 99 5312 4799
From command help:
col,statcpu - Explanation of column headers for statcpu
node,cpu Node ID, CPU ID. user Identifies a normal processes executing in user mode. sys Percentage of time executing system threads. idle Percentage of time idle. intr/s Count of interrupts serviced per second. ctxt/s Total number of context switches per second across all CPUs.
Data that is interesting to check and collect perfdata on them: "user" / "sys" / summary load (("user"+"sys") or (100%-"idle")) by each core and total on each CPU. Here we suppose to see perfdata for "user"/"sys"/summary load with warn/crit thresholds.
In this mode, checking the current general state of the nodes with the shownode -s
command can be added, similar to how it is done in the node.pm
code
3PAR01 cli% shownode -s
Node -State- -Detailed_State-
0 OK OK
1 OK OK
Hello Quentin,
There is good news regarding the upcoming work to expand the functionality of the plugin for 3PAR. I just looked at the modern HPE Primera storage and found that there is also 3PAR OS. And the commands are similar to those in the 3PAR storage system. So the HPE 3PAR Plugin can be used as the basis for the new HPE Primera Plugin!
Hello Quentin
Do you need any more information from me?
You can test with following archive: https://github.com/centreon/centreon-plugins/archive/refs/heads/MON-14751-3par-add-modes.zip
https://github.com/centreon/centreon-plugins/pull/3862
Thanks Quentin! This mode works well.