How can monitor EMC devices by checkmk

I founded the agent in follow path :
/opt/omd/sites/cmk/local/share/check_mk/agents/special/agent_emcunity

I have just added follow line to metric part :
“disk-latency” : {“cmd_option” : [ “/metrics/value/rt -path sp…physical.disk…responseTime show -interval 5 -count 1 -output csv”]},

metrics = {
    "temp"    : {"cmd_option" : [ "/metrics/value/rt -path sp.*.platform.storageProcessorTemperature show -interval 5 -count 1 -output csv" ]},
    "cpu"     : {"cmd_option" : [ "/metrics/value/rt -path sp.*.cpu.summary.utilization show -interval 5 -count 1 -output csv"]},
    "disk-latency"     : {"cmd_option" : [ "/metrics/value/rt -path sp.*.physical.disk.*.responseTime show -interval 5 -count 1 -output csv"]},

}

and don’t have any change in line 102 for checks part it is such as follow :

checks = {
    "battery"    : {"cmd_option" : "/env/bat show -detail"},
    "pwrsupply"  : {"cmd_option" : "/env/ps show -detail"},
    "fan"        : {"cmd_option" : "/env/fan show -detail"},
    "memory"     : {"cmd_option" : "/env/mm show -detail"},
    "dpe"        : {"cmd_option" : "/env/dpe show -detail"},
    "sp"         : {"cmd_option" : "/env/sp show -detail"},
    "disk"       : {"cmd_option" : "/env/disk show -detail"},
    "ssd"        : {"cmd_option" : "/env/ssd show -detail"},
    "general"    : {"cmd_option" : "/sys/general show -detail"},
    "pool"       : {"cmd_option" : "/stor/config/pool show -detail"},
    "lun"        : {"cmd_option" : "/stor/prov/luns/lun show -detail"},
    "vmfs"       : {"cmd_option" : "/stor/prov/vmware/vmfs show -detail"},
    "fs"         : {"cmd_option" : "/stor/prov/fs show -detail"},
    "fc"         : {"cmd_option" : "/net/port/fc show -detail"},
    "hostcons"       : {"cmd_option" : "/remote/host show -detail"},
}

After do above changes did not see any changes for item in GUI
Would you please help me what is next step ? Do I have to create new mkp file ? what should I do now ?

The first test after this extension is to check the agent output. There you should find a section <<<disk-latency>>>. The agent output you can get with a “cmk -d hostname” or from the gui with the Check_MK service and there the “Download agent output” function.

If your section is there the real work began.
You need a check that does something with this values.
All the checks for the EMC unity you find inside the folder “~/local/share/check_mk/checks/” starting with emcunity_…
You see there that every checks has the name of the section of data it is responsible for.

Now such a check must be build for the new data.

Yes in the output shows follow :

<<<emcunity_disk-latency:sep(44)>>>
2023-01-06 07:23:30,spa,dae_0_1_disk_0,18.44

2023-01-06 07:23:30,spa,dae_0_1_disk_10,19.56

2023-01-06 07:23:30,spa,dae_0_1_disk_12,394.3

2023-01-06 07:23:30,spa,dae_0_1_disk_14,15297

2023-01-06 07:23:30,spa,dae_0_1_disk_16,6872

2023-01-06 07:23:30,spa,dae_0_1_disk_18,25.64

2023-01-06 07:23:30,spa,dae_0_1_disk_2,14956

2023-01-06 07:23:30,spa,dae_0_1_disk_20,20839

2023-01-06 07:23:30,spa,dae_0_1_disk_22,20675

2023-01-06 07:23:30,spa,dae_0_1_disk_24,20.81

2023-01-06 07:23:30,spa,dae_0_1_disk_4,12090

2023-01-06 07:23:30,spa,dae_0_1_disk_6,654.1

2023-01-06 07:23:30,spa,dae_0_1_disk_8,23352

2023-01-06 07:23:30,spa,dae_0_2_disk_0,20.44

2023-01-06 07:23:30,spa,dae_0_2_disk_10,20.78

2023-01-06 07:23:30,spa,dae_0_2_disk_12,120.9

2023-01-06 07:23:30,spa,dae_0_2_disk_14,13864

2023-01-06 07:23:30,spa,dae_0_2_disk_16,20.46

2023-01-06 07:23:30,spa,dae_0_2_disk_18,215.8

2023-01-06 07:23:30,spa,dae_0_2_disk_2,197.4

2023-01-06 07:23:30,spa,dae_0_2_disk_20,16707

2023-01-06 07:23:30,spa,dae_0_2_disk_22,198.1

2023-01-06 07:23:30,spa,dae_0_2_disk_24,5603

2023-01-06 07:23:30,spa,dae_0_2_disk_4,213.6

2023-01-06 07:23:30,spa,dae_0_2_disk_6,19352

2023-01-06 07:23:30,spa,dae_0_2_disk_8,333.3

2023-01-06 07:23:30,spa,dae_0_3_disk_0,181.5

2023-01-06 07:23:30,spa,dae_0_3_disk_10,21032

2023-01-06 07:23:30,spa,dae_0_3_disk_12,1635

2023-01-06 07:23:30,spa,dae_0_3_disk_14,167.2

2023-01-06 07:23:30,spa,dae_0_3_disk_16,387.2

and I saw that path foe some items such as cpu but really this is complex for me would you please help me to write that ? according to above output it is showing latency for each disk such as : dae_0_3_disk_16,387.2

Would you please help me about it ?

Please keep in mind that we do this here in our free time. If i have such a system at one of my customers it would be a little bit different.
In your case the next step with the check plugin needs some time. I think that’s the reason why you don’t get a quick answer.
Only to display the value it is not so complicated, but if you want to define thresholds or what some nice graphs the work volume gets bigger quickly.

6 Likes

I always admire Andreas’ patience. I feel that writing or extending a check plugin is not the kind of support you can expect from a community forum like this. Sure, one can ask, but surely not urge or demand.

Instead, one might pay tribe29 or a Checkmk partner to do such custom development if one doesn’t have development skills/manpower in house.

4 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.