Check_MK jolokia plugin errors with Python2.6 RHEL 5.7

Hello,
I am trying to monitor an old production host that is running multiple JBoss 5.1 instances. Each instance in running on different IP on host. I have fully running agent (manually installed) and jolokia plugin (.war) deployed on all instances. RHEL5.7 by default comes with python 2.4x. That is too old. I installed python 2.6.8 from EPEL. Upon executing mk_jolokia_2 plugin I get following errors:

./mk_jolokia_2.py
<<<jolokia_info:sep(0)>>>
Traceback (most recent call last):
File “./mk_jolokia_2.py”, line 623, in
main()
File “./mk_jolokia_2.py”, line 617, in main
query_instance(instance)
File “./mk_jolokia_2.py”, line 521, in query_instance
write_section(‘jolokia_info’, generate_jolokia_info(inst))
File “./mk_jolokia_2.py”, line 197, in write_section
for line in iterable:
File “./mk_jolokia_2.py”, line 540, in generate_jolokia_info
data = fetch_var(inst, “version”, “”)
File “./mk_jolokia_2.py”, line 402, in fetch_var
obj = inst.post(data)
File “./mk_jolokia_2.py”, line 365, in post
return validate_response(raw_response)
File “./mk_jolokia_2.py”, line 383, in validate_response
response = raw.json()
TypeError: ‘dict’ object is not callable

Is this a python incompatibility error or mos-configuration error?
My jolokia.cfg has following content (IPs have been replaced):

vi jolokia.cfg
.# Settings for authentication
protocol = “http”
port = “8080”
mode = “basic_preemptive”
suburi = “jolokia”
instance = None

instances = [
{
.# Front Interface JBoss
“server”:“192.168.9.16”,
},
{
.# Backend01 JBoss
“server”:“192.168.9.13”,
},
{
.# Backend02 JBoss
“server”:“192.168.9.15”,
}
]

Any advice is welcome

Regards,
Olsi

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.