Zorka MuleESB installation

196 views
Skip to first unread message

gt redmine

unread,
Sep 4, 2014, 10:42:07 AM9/4/14
to zorka...@googlegroups.com
Hi,

Installation of Zorka 1.0.6 archive in $mule_home
modify wrapper.conf:
  wrapper.java.additional.8=-javaagent:$MULE_HOME/zorka/zorka.jar=$MULE_HOME/zorka
wrapper.java.additional.8.stripquotes=TRUE

modify zorka.properties

  commented scripts = jvm.bsh, zabbix.bsh
 uncommented scripts = jvm.bsh, zabbix.bsh, apps/muleesb.bsh
 zabbix.server.addr = addressofzabixsrv
 zabbix.listen.port = 10051
  zorka.name = nameofserveurMule

JAVA:
 java version "1.7.0_55"
 OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1~deb7u1)
 OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

when executing in local server :/zabbix_get -s 127.0.0.1 -p 10051 -k 'zorka.jmx["java", "Mule.default:name=MuleContext", "Version"]'
return nothing

when executing on zabbix server :/zabbix_get -s 192.168.0.xxx -p 10051 -k 'zorka.jmx["java", "Mule.default:name=MuleContext", "Version"]'
return ZBX_NOTSUPPORTED

In all items on template i've got the same error : Not supported by agent zabbix

Try to log if there an error, can't have logs.

Thanks for your help.

Regards.

Sorry for my english...

Rafal Lewczuk

unread,
Sep 9, 2014, 3:20:34 AM9/9/14
to zorka...@googlegroups.com
Hi,

Please look at zorka.log to see if there are any agent startup errors.

Also, check if JVM specific keys are working properly.

Regards,
rle

gt redmine

unread,
Sep 11, 2014, 9:18:23 AM9/11/14
to zorka...@googlegroups.com
Hi,

I'm not sure that zorka agent is running correctly.

Mule is OK, zabbix is OK but i didn't have zorka.log, the folder is empty.

Perhaps i made an error in zorka.properties...

By testing 
wrapper.java.additional.4=-javaagent:$MULE_HOME/zorka/zorka.jar=$MULE_HOME/zorka (replace 8 by 4)
in wrapper.conf,
 i've got this error:

##############################
Launching a JVM...

command: "C:\Windows\system32\java.exe" -Dmule.home="C:\mule" -Dmule.base="C:\mule" -Djava.net.preferIPv4Stack=TRUE -javaagent:$MULE_HOME/zorka/zorka.jar=$MULE_HOME/zorka -Dmule.verbose.exceptions=true -XX:MaxPermSize=128m "-Djava.endorsed.dirs=C:\mule\lib\endorsed" -Xmx512m -Djava.library.path="%LD_LIBRARY_PATH%;C:\mule/lib/boot" -classpath "%MULE_LIB%;C:\mule/conf;C:\mule/lib/boot/commons-cli-1.2.jar;C:\mule/lib/boot/log4j-1.2.16.jar;C:\mule/lib/boot/mule-module-boot-3.5.0.jar;C:\mule/lib/boot/mule-module-logging-3.5.0.jar;C:\mule/lib/boot/mule-module-reboot-3.5.0.jar;C:\mule/lib/boot/wrapper-3.2.3.jar" -Dwrapper.key="7RI8M__cNIpDwjAl" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=1120 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=2 org.mule.module.reboot.MuleContainerBootstrap

JVM started (PID=4328)

Error occurred during initialization of VM

agent library failed to init: instrument

Error opening zip file or JAR manifest missing : $MULE_HOME/zorka/zorka.jar

#########################################


PS: I didn't use java environnement before...

Regards.
JLS

Rafal Lewczuk

unread,
Sep 11, 2014, 9:36:03 AM9/11/14
to zorka...@googlegroups.com
Hi,

My guess is that wrapper does not substitute variables properly. Replace $MULE_HOME with full path to your MuleESB installation.

(I need to fix something in documentation)

Regards,
rle

Message has been deleted

gt redmine

unread,
Sep 12, 2014, 2:56:07 PM9/12/14
to zorka...@googlegroups.com
Hi,
Zorka agent is now running.


these are the only data appearing in loop in zorka.log

ZabbixActiveSenderTask ZabbixActiveSender finished
ZabbixActiveAgent ZabbixActive Refreshing Active Check
ZabbixUtils Message: '{ "request":"active checks", "host":"TEST-PC" }'
ZabbixUtils Message length: 53
ZabbixActiveRequest Zorka send: ZBXD 5       { "request":"active checks", "host":"TEST-PC" }
ZabbixActiveRequest Zorka get:{"response":"success",
"data":[]}
ZabbixActiveAgent ZabbixActive - schedule Tasks: {response=success, data=[]}
ZabbixActiveAgent ZabbixActive - new scheduled tasks: 0
ZabbixActiveAgent ZabbixActive - deleted old tasks: 0
ZabbixActiveSenderTask ZabbixActiveSender run...
ZabbixActiveSenderTask ZabbixActiveSender 0 items cached
ZabbixActiveSenderTask ZabbixActiveSender finished
ZabbixActiveSenderTask ZabbixActiveSender run...
ZabbixActiveSenderTask ZabbixActiveSender 0 items cached
ZabbixActiveCleanerTask ZabbixActiveSender Cleaning cache...
ZabbixActiveSenderTask ZabbixActiveSender finished
ZabbixActiveCleanerTask ZabbixActiveSender ... cache cleaned
ZabbixActiveAgent ZabbixActive Refreshing Active Check
ZabbixUtils Message: '{ "request":"active checks", "host":"TEST-PC" }'
ZabbixUtils Message length: 53
ZabbixActiveRequest Zorka send: ZBXD 5       { "request":"active checks", "host":"TEST-PC" }
ZabbixActiveRequest Zorka get:{ "response":"success",
"data":[]}
ZabbixActiveAgent ZabbixActive - schedule Tasks: {response=success, data=[]}
ZabbixActiveAgent ZabbixActive - new scheduled tasks: 0
ZabbixActiveAgent ZabbixActive - deleted old tasks: 0
ZabbixActiveSenderTask ZabbixActiveSender run...


Test agent with mule installation on linux and Windows server, 

Regards.
jl

gt redmine

unread,
Sep 22, 2014, 4:11:20 AM9/22/14
to zorka...@googlegroups.com
Hi,
Zorka Agent is now running.

I just set port 10055 in host configuration.

From now, my template linux doesn't work...
Try to configure port 10051 and 10055 in configuration host doesn't work.

In zorka.log:
2014-09-22 09:58:56 DEBUG ZorkaBshAgent Processing request BSH expression: zorka.jmx("java","zorka:type=ZorkaStats,name=Diagnostic","AgentRequests")
2014-09-22 09:58:56 DEBUG ZorkaBshAgent Processing request BSH expression: vm.memory.size(available)
2014-09-22 09:58:56 ERROR ZorkaBshWorker Error evaluating expression 'vm.memory.size(available)' [java.util.concurrent.ExecutionException: com.jitlogic.zorka.deps.bsh.EvalError: Sourced file: inline evaluation of: ``vm.memory.size(available);'' : Undefined argument: available  : at Line: 1 : in file: inline evaluation of: ``vm.memory.size(available);'' : ( available )
]

I wonder if it's possible to get the two template working 

Regards.
jl

Rafal Lewczuk

unread,
Sep 23, 2014, 2:32:30 PM9/23/14
to zorka...@googlegroups.com

Zorka acts as separate agent, so when having both OS agent (eg. Linux) and Zorka agent you have to configure each of them on independent ports and then remember about this when configuring on Zabbix side. My recommendation is to define separate hosts for Zorka and Linux and use appropriate port numbers (eg. 10055 for zorka, 10050 for linux).

Regards,
rle

gt redmine

unread,
Sep 24, 2014, 3:42:12 AM9/24/14
to zorka...@googlegroups.com
Hi,
Just test by define separate hosts, it's work, but it's not clean for me.

I set this configuration:

   Define first port in host configuration (10055 for zorka) and import zorka template 
   Define second port, for exemple port 10051 for zabbix agent and set to default
   Import the template linux.

Everything works fine.

Thanks for all

Rafal Lewczuk

unread,
Sep 24, 2014, 9:38:11 AM9/24/14
to zorka...@googlegroups.com
Hi,

I prefer to separate JVM and OS as you can potentially have many JVM instances monitored on a single host.

If you want to configure both Linux and JVM monitoring as a single host, you propably can do that by forcing all items in Zorka templates to use 10055 port. But still it will work only as long as you have only one JVM on your Linux box.

Regards,
rle

Reply all
Reply to author
Forward
0 new messages