LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-29-2015, 04: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, 02:43 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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, 12: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, 12: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, 05:32 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 05:23 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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-03-2015, 11:47 PM   #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



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

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

All times are GMT -5. The time now is 11:20 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
Open Source Consulting | Domain Registration