[Check_mk (english)] Service Delivery Failed

Hi,

I am having an issue with a new check I have written for monitoing Cloudera Hadoop Services.

I have a plugin bash script which calls a python script which gets a list of services and status out of Cloudera Manager API. This seems to all work ok.

I can see the data coming back from the host when I run cmk -d against the host, but when I try and run a services inventory in the Check_MK GUI I get the error shown in the screenshot, “Service Delivery Failed”

Probably something really small and silly but I just can’t spot my error.

Regards

Rob

check_mk_output.rtf (1.08 KB)

cloudera (56 Bytes)

cloudera.py (373 Bytes)

cloudera_check (1.69 KB)

Hi Rob,

I tweaked your cloudera check a little bit :slight_smile: , please find it attached.

Possible status values can be put in status_map dictionary with resulting cmk states as values. Because I do neither know your devices nor the Cloudera service I’ve put some dummies in. Enjoy.

For every cloudera service a cmk service will get discovered. Service output is always the same (cmk automatically prepends it with “OK -”, "WARN - ", "CRIT - ", "UNKN - " according to the state), but will contain nice labels if state is not 0.

Don’t forget to rediscover services of affected hosts…

If it does not work report back with errors.

HTH,

Marcel

cloudera_check.py (855 Bytes)

···

ROB HUGHES bob.hughes@btinternet.com schrieb am Di., 5. Juli 2016 um 15:07 Uhr:

Hi,

I am having an issue with a new check I have written for monitoing Cloudera Hadoop Services.

I have a plugin bash script which calls a python script which gets a list of services and status out of Cloudera Manager API. This seems to all work ok.

I can see the data coming back from the host when I run cmk -d against the host, but when I try and run a services inventory in the Check_MK GUI I get the error shown in the screenshot, “Service Delivery Failed”

Probably something really small and silly but I just can’t spot my error.

Regards

Rob


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en