Zorka with Zabbix 3.0.0 Version

407 views
Skip to first unread message

José María Palacios Rodríguez

unread,
Apr 13, 2016, 5:17:38 AM4/13/16
to Zorka Users
Hi!!
Have anyone confirm if Zorka works on Zabbix last version 3.0.0 ??

I exported a template from Zabbix 2.0.2 to 3.0.0 and check all the settings but the items get not supported.:confused::confused:

In the test environment it works fine zorka last version and zabbix 2.0.2, but in the real environment with zorka last version and zabbix 3.0.0 is not working.

Any suggestions?

Thanks for your time ;-)

José María Palacios Rodríguez

unread,
Apr 14, 2016, 10:08:44 AM4/14/16
to Zorka Users
I checked the following:

scripts = jvm.bsh, zabbix.bsh, jboss/jboss7.bsh
zorka.spy.compute.frames = yes
zabbix.active = yes
zabbix.active.sender.interval = 60
zabbix.active.server.addr = Zabbix.serverIP:10051
zabbix.server.addr = 127.0.0.1,Zabbix.serverIP
zabbix.listen.port = 10150

(checked on zabbix agent same configuration but diferent port for zabbix agent 10050)

zorka.hostname = ServerWildfly_zorka
http.trace.exclude = ~.*.png, ~.*.gif, ~.*.js, ~.*.css, ~.*.jpg, ~.*.jpeg, ~.*favicon.ico

And for log:
zorka.log.agent = INFO
zorka.log.spy = INFO
zorka.log.tracer = INFO
zorka.log.exceptions = yes
zorka.log.fname = zorka.log
zorka.log.level = DEBUG

and in the log i see the following:

2016-04-14 11:03:36 DEBUG ZabbixUtils Message: '{"port":10150,"host":"xabbix_server_IP","request":"active checks","host_metadata":""}'
2016-04-14 11:03:36 DEBUG ZabbixUtils Message length: 105
2016-04-14 11:03:36 DEBUG ZabbixActiveRequest Zorka send: ZBXD i       {"port":10150,"host":"xabbix_server_IP","request":"active checks","host_metadata":""}
2016-04-14 11:03:36 DEBUG ZabbixActiveRequest Zorka get:{"response":"success","data":[{"key":"log[\"/var/log/zabbix/zabbix_agentd.log\"]","key_orig":"log[\"{$LOG_ZABBIX_AGENT_PATH}zabbix_agentd.log\"]","delay":60,"lastlogsize":16855,"mtime":0},{"key":"net.if.list","delay":86400,"lastlogsize":0,"mtime":0},{"key":"system.hw.chassis","delay":86400,"lastlogsize":0,"mtime":0},{"key":"system.run[lsof | wc -l]","delay":60,"lastlogsize":0,"mtime":0}]}
2016-04-14 11:03:36 DEBUG ZabbixActiveAgent ZabbixActive - schedule Tasks: {response=success, data=[{key=log["/var/log/zabbix/zabbix_agentd.log"], delay=60, lastlogsize=16855, mtime=0}, {key=net.if.list, delay=86400, lastlogsize=0, mtime=0}, {key=system.hw.chassis, delay=86400, lastlogsize=0, mtime=0}, {key=system.run[lsof | wc -l], delay=60, lastlogsize=0, mtime=0}]}
2016-04-14 11:03:36 DEBUG ZabbixActiveAgent ZabbixActive - new scheduled tasks: 0
2016-04-14 11:03:36 DEBUG ZabbixActiveAgent ZabbixActive - deleted old tasks: 0
2016-04-14 11:03:40 DEBUG ZabbixActiveTask Running task: log["/var/log/zabbix/zabbix_agentd.log"]
2016-04-14 11:03:40 DEBUG ZabbixActiveTask Translated task: log("/var/log/zabbix/zabbix_agentd.log")
2016-04-14 11:03:40 DEBUG ZorkaBshAgent Processing request BSH expression: log("/var/log/zabbix/zabbix_agentd.log")
2016-04-14 11:03:40 DEBUG ZorkaBshWorker Error evaluating expression 'log("/var/log/zabbix/zabbix_agentd.log")' [java.util.concurrent.ExecutionException: com.jitlogic.zorka.deps.bsh.EvalError: Sourced file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : Command not found: log( java.lang.String ) : at Line: 1 : in file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : log ( "/var/log/zabbix/zabbix_agentd.log" )
]

2016-04-14 11:00:40 DEBUG ZorkaBshWorker Error evaluating expression 'log("/var/log/zabbix/zabbix_agentd.log")' [java.util.concurrent.ExecutionException: com.jitlogic.zorka.deps.bsh.EvalError: Sourced file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : Command not found: log( java.lang.String ) : at Line: 1 : in file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : log ( "/var/log/zabbix/zabbix_agentd.log" )

java.util.concurrent.ExecutionException: com.jitlogic.zorka.deps.bsh.EvalError: Sourced file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : Command not found: log( java.lang.String ) : at Line: 1 : in file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : log ( "/var/log/zabbix/zabbix_agentd.log" )

Caused by: com.jitlogic.zorka.deps.bsh.EvalError: Sourced file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : Command not found: log( java.lang.String ) : at Line: 1 : in file: inline evaluation of: ``log("/var/log/zabbix/zabbix_agentd.log");'' : log ( "/var/log/zabbix/zabbix_agentd.log" )

2016-04-14 11:00:40 DEBUG ZorkaBshWorker Error evaluating expression 'system.run(lsof | wc -l)' [java.util.concurrent.ExecutionException: com.jitlogic.zorka.deps.bsh.EvalError: Sourced file: inline evaluation of: ``system.run(lsof | wc -l);'' : illegal use of undefined variable, class, or 'void' literal : at Line: 1 : in file: inline evaluation of: ``system.run(lsof | wc -l);'' : ) ;

Someone please, could you tell me what's wrong o what i should looking for?? Is not clear to me and there is no documentation about it.

Thanks a lot for your time.

José María Palacios Rodríguez

unread,
Apr 19, 2016, 5:12:54 AM4/19/16
to Zorka Users
All working now.
The problem were on the comunitation ports, to much firewalls hehe.

I hope this could help someone:

For zorka items syntax:

zorka.jmx["java", "A", "B","C"]
Where:
A = MBeamObjectName (jboss or java)
B = ObjectNameAtribute
C = specific item if necesary

Example: zorka.jmx["java","java.lang:type=MemoryPool,name=CMS Old Gen","Usage","used"]

Kamil Masłowski

unread,
Oct 4, 2017, 4:55:50 AM10/4/17
to Zorka Users
I use it with WIldfly 9/10 and Zabbix 3.0 without any issues. 

Rafal Lewczuk

unread,
Jun 12, 2018, 3:26:43 AM6/12/18
to Zorka Users

Integration with Zabbix 3.x+ works in both standard and active modes. Only encryption is absent at the moment.

It will take some time to implement TLS support as I cannot use standard implementation that is implemented in JRE. It would interfere with monitored applications in many cases, so some custom implementation (eg. stripped down bouncy castle) will be required.

Reply all
Reply to author
Forward
0 new messages