LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-14-2012, 06:13 AM   #1
jitenderana
Member
 
Registered: Jun 2011
Location: INDIA
Posts: 70

Rep: Reputation: Disabled
Question Operating System thread level monitoring & memory, CPU usage on service with OpenNMS


Hi All,
we are using OpenNMS network monitoring tool, to monitor our critical services. i have two question which want to discussed with hear expert people.
Q.1: In my operating system we are develop operating system service in C#, and want to monitor how much memory space & cpu is consume this services, need to set memory limit in OpenNMS whenever service is cross the limit space OpenNMS generate a alerts on email.

Q.2: And the same service which is discussed in question number 1, this service is use multiple thread and is this possible OpenNMS is monitor services thread level monitoring. incase service inbuilt thread is stop working but main service is in working, OpenNMS is generate alert on email when one thread is stop working.

Please suggest me, wait for positive response your side.
OpenNMS application 1.10.0 version.
Based OS is Ubuntu 10.04
Service is developed in c# and running on window & Ubuntu desktop clients machine.

Thanks
Jitender Rana

Last edited by jitenderana; 10-14-2012 at 07:24 AM.
 
Old 10-14-2012, 07:17 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,635

Rep: Reputation: 473Reputation: 473Reputation: 473Reputation: 473Reputation: 473
Quote:

Q.1: In my operating system we are develop operating system service in C#, and want to monitor how much memory space & cpu is consume this services, need to set memory limit in OpenNMS whenever service is cross the limit space OpenNMS generate a alerts on email.

Q.2: And the same service which is discussed in question number 1, this service is use multiple thread and is this possible OpenNMS is monitor services thread level monitoring. incase service inbuilt thread is stop working OpenNMS is generate alert on email.
You may configure the size limit by setting the cache of each relevant kerned network stack.

What protocol do the services run?

---------- Post added 10-14-12 at 07:17 ----------

Quote:

Q.1: In my operating system we are develop operating system service in C#, and want to monitor how much memory space & cpu is consume this services, need to set memory limit in OpenNMS whenever service is cross the limit space OpenNMS generate a alerts on email.

Q.2: And the same service which is discussed in question number 1, this service is use multiple thread and is this possible OpenNMS is monitor services thread level monitoring. incase service inbuilt thread is stop working OpenNMS is generate alert on email.
You may configure the size limit by setting the cache of each relevant kerned network stack.

What protocol do the services run?
 
Old 10-14-2012, 07:26 AM   #3
jitenderana
Member
 
Registered: Jun 2011
Location: INDIA
Posts: 70

Original Poster
Rep: Reputation: Disabled
Service is used TCP protocol..
 
Old 10-14-2012, 11:46 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,886

Rep: Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258
Quote:
Originally Posted by jitenderana View Post
Hi All,
we are using OpenNMS network monitoring tool, to monitor our critical services. i have two question which want to discussed with hear expert people.
Q.1: In my operating system we are develop operating system service in C#, and want to monitor how much memory space & cpu is consume this services, need to set memory limit in OpenNMS whenever service is cross the limit space OpenNMS generate a alerts on email.
Similar to a thread you posted LAST YEAR:
https://www.linuxquestions.org/quest...y-mail-891824/
https://www.linuxquestions.org/quest...pennms-934550/

Did you not read/understand the documentation on the OpenNMS site?? It specifically TELLS YOU how to do such things, and provides examples. Again, you need to look at the documentation there first.
http://www.opennms.org/wiki/FAQ-Conf...hin_OpenNMS.3F
Quote:
Q.2: And the same service which is discussed in question number 1, this service is use multiple thread and is this possible OpenNMS is monitor services thread level monitoring. incase service inbuilt thread is stop working but main service is in working, OpenNMS is generate alert on email when one thread is stop working.

Service is developed in c# and running on window & Ubuntu desktop clients machine.
And again, this is covered in the OpenNMS documentation. Can you not get to that site?
http://www.opennms.org/wiki/FAQ-Conf...ient_system.3F

There are also plugins that will let you use your own script to do this monitoring, which (AGAIN) you can find on the OpenNMS site.
 
Old 10-22-2012, 02:06 PM   #5
jitenderana
Member
 
Registered: Jun 2011
Location: INDIA
Posts: 70

Original Poster
Rep: Reputation: Disabled
Unhappy

Hi,

i have goen thrugh the OpenNMS document on website, but on there dont have such type of information. wil try to describe my question again..

We have a service named "sochkndalipe" and this services have two thread which is work internally between this service.

Q.1 have any possibility in OpenNMS to just moniter how much memory(RAM) & CPU is consume this service only not used by all host.(Service resources utlization)

Q.2 Check the status of thread which is running internally in main service because in my case main service status is show running but internal thread is stoped.

if you dont have any answer of my question, please don't comment.

Thanks

Last edited by jitenderana; 10-22-2012 at 02:09 PM.
 
Old 10-22-2012, 04:22 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,886

Rep: Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258
Quote:
Originally Posted by jitenderana View Post
Hi,
i have goen thrugh the OpenNMS document on website, but on there dont have such type of information.
No, sorry. There is LOTS of information about monitoring CPU/memory usage via opennms, as well as thread monitoring
Quote:
wil try to describe my question again.. We have a service named "sochkndalipe" and this services have two thread which is work internally between this service.

Q.1 have any possibility in OpenNMS to just moniter how much memory(RAM) & CPU is consume this service only not used by all host.(Service resources utlization)
Yes, you do. As said before, you can follow what's on the site for thread monitoring, or write your own script and relay the results to opennms. How are you monitoring it now?? If the MANY plugins available don't do what you want, use whatever method you're using now.
Quote:
Q.2 Check the status of thread which is running internally in main service because in my case main service status is show running but internal thread is stoped.
See previous comment.
Quote:
if you dont have any answer of my question, please don't comment.
Your questions were answered...you don't seem to understand the answers.
 
Old 11-06-2012, 05:28 AM   #7
jitenderana
Member
 
Registered: Jun 2011
Location: INDIA
Posts: 70

Original Poster
Rep: Reputation: Disabled
Hi i was search on Google regarding system thread monitoring, but could't find any useful utility to find-out the service thread, just find thread PID nothing else. so how to use thread PID to monitoring the running system thread.

Second OpenNMS is able to monitor system resource utilization i.e how much total CPU is used & total memory is used, if we want how much memory & CPU is used by single process/services is not possible with network monitoring tool.

If you know how it is possible please share your ideas..

Thanks
 
Old 11-06-2012, 09:07 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,886

Rep: Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258
Quote:
Originally Posted by jitenderana View Post
Hi i was search on Google regarding system thread monitoring, but could't find any useful utility to find-out the service thread, just find thread PID nothing else. so how to use thread PID to monitoring the running system thread.
Again, you need to look at the OPENNMS SITE. There is an example there for monitoring a Java application, complete with samples on how to set up thread monitoring.
http://www.opennms.org/wiki/Monitoring_the_Java_VM

And AGAIN, I will ask (as before in thread #6), How are you monitoring the application now?????. If you already have a shell script/program/whatever that you run to check it, use it WITH OpenNMS. That is, again, easily done and well documented on their site.
Quote:
Second OpenNMS is able to monitor system resource utilization i.e how much total CPU is used & total memory is used, if we want how much memory & CPU is used by single process/services is not possible with network monitoring tool. If you know how it is possible please share your ideas..
Can't give you the answer any more clearly than it has been given. One more time: the OpenNMS site has information/documentation on this....read it. Use whatever tool you have now to monitor it as a plug-in to OpenNMS. Again, that is documented on their website.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CPU & memory usage tech_usr Linux - General 1 09-04-2008 10:58 AM
Find - battery life, CPU Usage,Wireless Signal Level , Congestion Level md_imranullah Programming 2 05-20-2008 08:45 PM
Monitoring process CPU and Memory usage jdt05 Programming 5 05-02-2008 08:10 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM
%CPU , Memory Usage, Thread count srinivasar Programming 0 09-20-2003 03:56 AM


All times are GMT -5. The time now is 12:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration