LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2011, 02:11 AM   #1
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
using jboss objects


Hi all

I need to make a script that controls or checks certain assets of a JBoss server. Like if the server is running or down, or how much memory he uses, etc.
Now, via the website of Nagios, i've found a script which i can use

Code:
# ./check_mbean_collector -H host -p 5566 -m jboss.system:type=ServerInfo -a ActiveThreadCount -w 200 -c 400
JMX attribute ActiveThreadCount has value 63|jboss.system:type=ServerInfo:ActiveThreadCount=63
So this is an example of it working, but now i want to check the used memory and when the free memory gets below a certain value, i need to get a CRIT...
Where can i find the things i need to check on this?
On the JBoss server i get an overview of everything, but i really don't have a clue where to start looking...

Can someone help me with this ^^?

thanks in advance
 
Old 05-25-2011, 02:31 AM   #2
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416

Original Poster
Blog Entries: 2

Rep: Reputation: 12
UPDATE

okay, i've found it
Code:
# ./check_mbean_collector -H host -p 5566 -m jboss.system:type=ServerInfo -a FreeMemory -w 460280464 -c 500000000
JMX attribute FreeMemory has value 404803920|jboss.system:type=ServerInfo:FreeMemory=404803920
so i geuss the memory is in bytes?
but that doesn't matter, so when i run this i get the result as you see above
when i run this through Centreon/Nagios i get an Ok or CRIT or whatever when the value gets above a certain value.
So actually i get a WARNING when the free memory gets ABOVE a certain value (that doesn't make sense.. because i need to know when it gets BELOW a certain value...)
how can i manage this?

Thanks

Last edited by brownie_cookie; 05-25-2011 at 02:36 AM.
 
Old 07-22-2011, 01:58 AM   #3
nasiruddin
LQ Newbie
 
Registered: Feb 2011
Posts: 9

Rep: Reputation: 0
NRPE unable to read output

hi
i am using the same plugin its showing the output as you have given when executed directly but when i am tryingto execute it through NRPE is showing "NRPE unable to read output".
May i know how do you incorporated this plugin in your nagios.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared Objects mohotmofine Programming 4 10-12-2009 05:46 PM
LXer: Java Data Objects and Service Data Objects in SOA LXer Syndicated Linux News 0 01-17-2009 06:10 AM
Objects in C?? kickzha Programming 6 06-17-2006 08:38 PM
How to cast objects lucky6969b Programming 1 12-08-2005 06:41 PM
java objects zaicheke Programming 3 03-23-2005 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration