ImTheLucKyOne / check_mk_emcunity

Check_MK Extensions for Dell EMC Unity Storages
GNU General Public License v3.0
5 stars 8 forks source link

Host Object Support (Degreaded/Warning) #9

Closed wernermarcel1 closed 5 years ago

wernermarcel1 commented 5 years ago

Please make possible that we get one Check thats include all HostObjects as MultiLine with the coresponding status.

If one of the Hosts has an Status Warning the complete Check goes to warning.

The Multilineoutput: Hostname OK Hostname Warning Hostname Critical

Get the Status of the Host : uemcli -d XXX -u ‘XXX’ -p 'XXX' /remote/host show -brief

Some examples :

9: ID = Host_9 Name = XXXX-02 Description = Tenant = Type = host Address = Netmask = OS type = Windows Server Ignored address = Health state = OK (5) Health details = "The component is operating normally. No action is required."

8: ID = Host_8 Name = XXXX-01 Description = Tenant = Type = host Address = Netmask = OS type = Windows Server Ignored address = Health state = Degraded/Warning (10) Health details = "The host only has one path to the storage system. Add multiple paths between host and storage systems to establish redundancy."

ImTheLucKyOne commented 5 years ago

I added a new check and edited the agent code accordingly.

Thanks for the idea Marcel.