LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-30-2016, 03:18 AM   #1
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Rep: Reputation: Disabled
Monitor CPU Utlization


Hi,

We have RED HAT Linux 6.5 now i want to monitor CPU utilization like if CPU utilization is over 90 % it sends alert or generate email is this possible?
 
Old 01-30-2016, 09:26 AM   #2
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,591
Blog Entries: 15

Rep: Reputation: Disabled
Yes.
 
Old 01-30-2016, 11:36 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Quote:
Originally Posted by osama.mansoor View Post
Hi,
We have RED HAT Linux 6.5 now i want to monitor CPU utilization like if CPU utilization is over 90 % it sends alert or generate email is this possible?
Very possible. And to mention things we've brought up/asked you before:
  • Are you PAYING FOR RHEL??? If not, do NOT use it, and use CentOS instead.
  • If you ARE paying, then have you contacted Red Hat support for assistance/guidance?
  • Have you done any basic research on this?? There are THOUSANDS of monitoring scripts you can find with a Google search. Did you look yet?
 
Old 01-30-2016, 03:28 PM   #4
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Thanks ,

Actually we are running oracle ERP on this OS.so RHEL is necessary and unfortunately we do not have support contact with them.

Yes i research tools like PRTG which uses SNMP to gather CPU alters.
 
Old 01-31-2016, 11:54 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Quote:
Originally Posted by osama.mansoor View Post
Thanks ,
Actually we are running oracle ERP on this OS.so RHEL is necessary and unfortunately we do not have support contact with them.
So you're using TWO pieces of software you need to be paying for, and you're NOT PAYING FOR EITHER. If you need Oracle and RHEL, then PAY FOR THEM BOTH...if you're running a business and you're using unpatched, old OS and database, you're asking for nothing but trouble. Pay for what you use, or use something else...CentOS and MySQL can easily do what you're after for free, if this is for a proof-of-concept system. If it's production, then whoever your administrator is, isn't doing a very good job at all.
Quote:
Yes i research tools like PRTG which uses SNMP to gather CPU alters.
Then since you know about such things, what have you actually DONE to make them work for you?? You still haven't said exactly what you're trying to accomplish, in what kind of environment. You mention SNMP, but that's not needed for a single server...a script in CRON will work just fine. SNMP is for monitoring remote servers.
 
Old 02-05-2016, 03:02 AM   #6
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
actually my target is :

if some one logins records event on gui and send email
records all syslogs on gui tool
monitor cpu and memory utilization
 
Old 02-05-2016, 04:37 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,371

Rep: Reputation: 239Reputation: 239Reputation: 239
you need to pay RHEL and the ERP vendor, it could be that you need to install patches or updates to solve your issue.

If don't have budget to pay the maintenance for both software, then I guess someone has to answer for any issues that may arise.

For your target according to your post, check out this software: http://ossec.github.io/
 
1 members found this post helpful.
Old 02-05-2016, 09:03 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Quote:
Originally Posted by osama.mansoor View Post
actually my target is :

if some one logins records event on gui and send email
records all syslogs on gui tool
monitor cpu and memory utilization
Great...so again, as said previously, PAY FOR Oracle ERP and RHEL, and contact them. JJJCR pointed that out too, and that hasn't changed.

And again, your target is vague.
  • "Records event on gui"...WHAT 'gui'?? Where??? Do you mean on the console, and if so, what desktop environment? Web? Ok..so what's driving that web page?
  • "Records all syslogs on gui tool"...back to the "what gui". Also, there are existing tools like splunk that can give you a web-driven interface for system logs, as well as free tools that may do what you're after.
  • "monitor cpu and memory utilization". Again, HOW??? Do you mean from a central server? If so, there are MANY web-driven tools for systems/network monitoring...what have you done/researched on those? If you mean a script to run on each server, there are similarly thousands you can find with a Google search.
 
Old 02-06-2016, 01:28 AM   #9
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Hi TBOne

I would like to thanks to you for your reply.

let me clear to you what i want.

we have all windows based environment and we have only one server which is running Oracle RHEL , we are running PRTG snmp,wmi and netflow based service to monitor router (Bandwidth), Windows Servers (Disk,CPU,RAM) and others.

now linux based machine monitoring is DARK side for me.

what in my mind to capture same thing as like windows

logs,security logs,RAM,CPU,Disk
 
Old 02-06-2016, 10:32 AM   #10
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,229
Blog Entries: 4

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by osama.mansoor View Post
Hi TBOne

I would like to thanks to you for your reply.

let me clear to you what i want.

we have all windows based environment and we have only one server which is running Oracle RHEL , we are running PRTG snmp,wmi and netflow based service to monitor router (Bandwidth), Windows Servers (Disk,CPU,RAM) and others.

now linux based machine monitoring is DARK side for me.

what in my mind to capture same thing as like windows

logs,security logs,RAM,CPU,Disk

If you want to monitor RAM, CPU and Disk, there are CLI, not GUI, tools already installed on RHEL.

iostat

sar

HOWEVER, as others are have pointed out to you, you are running unsupported software and you need to fix that quickly.
 
Old 02-06-2016, 10:35 AM   #11
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,591
Blog Entries: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by osama.mansoor View Post
what in my mind to capture same thing as like windows
snmp, just like "Windows".

http://www.debianadmin.com/linux-snm...tatistics.html
 
Old 02-06-2016, 12:34 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Quote:
Originally Posted by osama.mansoor View Post
Hi TBOne
I would like to thanks to you for your reply. let me clear to you what i want.

we have all windows based environment and we have only one server which is running Oracle RHEL , we are running PRTG snmp,wmi and netflow based service to monitor router (Bandwidth), Windows Servers (Disk,CPU,RAM) and others. now linux based machine monitoring is DARK side for me.

what in my mind to capture same thing as like windows logs,security logs,RAM,CPU,Disk
Then we're back to the same thing you've been told/asked several times now:
ARE YOU PAYING FOR RHEL AND ORACLE???? If so, you have different options for support. You haven't yet answered this, but only HINTED at the fact you're not. Again, using Oracle and RHEL in a PRODUCTION ENVIRONMENT, without paying, is a BAD IDEA. Your server will be insecure, unpatched, and not have the latest security fixes...and there is NO POINT in having Oracle and RHEL without support.

And we still go back to "use SNMP", which has been suggested pretty much from the start.
 
  


Reply

Tags
cpuinfo, monitoring


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
grab cpu grabber (non-interactive cpu and process monitor) ezekieldas Linux - Software 8 06-18-2011 03:20 PM
Is it possible to Monitor the bandwidth utlization for ipsec tunnel ? winxandlinx Linux - Networking 1 08-10-2009 10:31 AM
How to monitor CPU essahar Linux - General 6 06-12-2006 12:12 PM
cpu monitor the_y_man Linux - Software 1 03-13-2004 03:20 PM
cpu monitor doralsoral Linux - Software 2 01-07-2004 05:08 PM

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

All times are GMT -5. The time now is 06:59 AM.

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