PDA

View Full Version : What is the best strategy for UserParameters?


Bati
29-03-2010, 12:00
Hi,

My Zabbix agent is running on a server to monitore an application server. This application server was implemented in Java. I'd like to monitor some values of variable from the current execution of the application server.

Actually, my java program writes the values in a file and I configure my UserParameters to be able to read the right value in this file. I'm not sure this solution is the best one...

Is it possible to implement something in java that'll be monitored by my zabbix server?

Finally, what is the best solution to achieve my problem? Write in a file the value or implementing something?

Thank you very much

Bati

Bati
30-03-2010, 09:24
nobody has the answer?

dakol
30-03-2010, 16:00
Actually, my java program writes the values in a file and I configure my UserParameters to be able to read the right value in this file. I'm not sure this solution is the best one...

Is it possible to implement something in java that'll be monitored by my zabbix server?



You could use ZapCat (bridge JMX<=>Zabbix Agent Protocol) and store counters on MBeans object

Bati
30-03-2010, 17:12
I'm trying but it seems that this framework doesn't yet work with Glassfish...
Of course, I wanna use Glassfish.

Do you have an another solution?

thanks

dakol
30-03-2010, 17:15
I'm trying but it seems that this framework doesn't yet work with Glassfish...
Of course, I wanna use Glassfish.

i use glassfish too.

it works but not with the "stable" version (support old zabbix protocol and other).

Give the dev version a try

Bati
30-03-2010, 17:18
ok.

How do I deploy the zapCat.war? because I've some problems if I deploy by using the console administration of glassfish

thx

Bati
30-03-2010, 17:29
Could you tell me what are the big steps to accomplish this on glassfish?

I would be very happy...

Thank you very much!

Bat

Bati
31-03-2010, 09:39
I carry on the discution here : http://www.zabbix.com/forum/showthread.php?t=16507