LinuxQuestions.org
Review your favorite Linux distribution.
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 07-29-2015, 05:53 AM   #1
telltobalaji
LQ Newbie
 
Registered: Jun 2012
Posts: 14

Rep: Reputation: Disabled
Monitor CPU utilization using nagios


HI

I need to get alert if cpu utilization is more using nagios. Scenario given below

CPU Utilization OK CPU Status OK: When CPU usage is less than 80%.
WARNING CPU Status WARNING:When CPU usage is more than 80%. CRITICAL CPU Status CRITICAL:When CPU usage is more than 90%.

Please help
 
Old 07-30-2015, 03:43 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,163
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Quote:
Originally Posted by telltobalaji View Post
Please help
https://www.nagios.org/documentation is a great source of 'help'.
Let us know where you get stuck.
 
Old 08-03-2015, 01:25 AM   #3
telltobalaji
LQ Newbie
 
Registered: Jun 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
HI

I am using the plugin check_cpu. But this plugin is showing result as below

https://mail.google.com/mail/u/0/?ui...cb11&zw&atsh=1
 
Old 08-03-2015, 01:26 AM   #4
telltobalaji
LQ Newbie
 
Registered: Jun 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
If you click the above link it will show status information Missing host or passwords arguments


Pls Let us know what to do
 
Old 08-03-2015, 06:32 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
I'm sorry but you should either post your text here or in a pastebin and not Gmail.
So:
- do read the general Nagios documentation and the one for check_cpu,
- adjust your configuration as required,
- and to to test supply all required arguments, run the check from the command line and post the results.

*Do obfuscate credentials (if any) and public IP addresses though.
 
Old 08-03-2015, 06:23 PM   #6
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,163
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Quote:
Originally Posted by telltobalaji View Post
HI

I am using the plugin check_cpu. But this plugin is showing result as below

https://mail.google.com/mail/u/0/?ui...cb11&zw&atsh=1
Not everyone that can help you has a gmail account to view that image.
Maybe try uploading it to http://susepaste.org/ ?
 
Old 08-04-2015, 12:47 AM   #7
telltobalaji
LQ Newbie
 
Registered: Jun 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
HI

Below i have given the commands.cfg and services.cfg file output. Pls check

commands.cfg
============
# 'check_cpu' command definition
# w = Warning level (if CPU idle falls below this level)
# c = Critical level
define command{
command_name check_cpu
command_line $USER1$/check_cpu -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}

services.cfg
============
define service{
use local-service ; Name of service template to use
host_name localhost
service_description CPU Average
check_command check_cpu!40!70
notifications_enabled 1
}

Output of Nagios:
===================
localhost

CPU Average OK 08-03-2015 10:12:25 0d 0h 7m 12s 1/4 Missing Host or Password arguments

My output in status information is coming like Missing Host or Password arguments. I dont no what mistake i am doing. Pls help me to fix this issue.

---------- Post added 08-03-15 at 11:47 PM ----------

I am checking CPU for my localhost itself
 
  


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
High Run queue utilization although CPU utilization is low.. rajeprag Linux - Server 0 08-18-2013 10:44 AM
monitor CPU and RAM High utilization through script azheruddin Linux - Newbie 1 12-09-2012 11:00 AM
CPU, Motherboard HDD, Fan etc monitor through Nagios vnc Linux - Software 4 12-08-2012 11:11 PM
How to monitor per core CPU utilization? pinga123 Linux - Newbie 2 02-14-2012 08:52 AM
Linux desktop GUI tool for CPU utilization and bandwidth utilization karimasif Linux - Software 4 03-03-2008 02:09 PM


All times are GMT -5. The time now is 10:56 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