Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-03-2012, 03:08 PM
|
#1
|
LQ Newbie
Registered: Jan 2012
Posts: 3
Rep: 
|
Nagios Host Down but Services Up
Information Before hand:
Ubuntu Server 10.4 x64
Nagios 3.2.0
When I got to Host Detail it shows that the host is down (red) and when I click on the host all the checks show green and the host is show as down with "Warning limit is greater than Critical limit" as the status information. I have cleared the log_file, object_cache_file, log_archive_path, and state_retention_file. Only other thing I was thinking was maybe there was something in the mysql db, but wasn't sure where to look. Any help would be greatly appreciated. Thank you.
|
|
|
02-04-2012, 07:33 PM
|
#2
|
Member
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397
Rep:
|
Isn't whether the host is up or down dictated by ping requests via check_ping? Then I would guess that either your host is rejecting ping packets buy accepting check_nrpe requests on port 5666. Either that or the Host Detail page is cached in your browser, but more likely the first option.
|
|
|
02-05-2012, 07:01 PM
|
#3
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
Quote:
"Warning limit is greater than Critical limit"
|
This means what it says; somehow you/someone has edited the check_ping and reversed those nums. Warn limit must be < Critical limit.
Here is an example from my (hostname excluded) setting in /usr/local/nagios/etc/objects/localhost.cfg
Code:
define service{
use local-service ; Name of service template to use
host_name hostname_here
service_description PING
check_command check_ping!100.0,20%!500.0,60%
contact_groups linux-admins
}
|
|
|
02-06-2012, 07:59 AM
|
#4
|
LQ Newbie
Registered: Jan 2012
Posts: 3
Original Poster
Rep: 
|
Here's what I have for ping:
Code:
check_command check_ping!50,20%!80,90%
When I was building the configs previously I did have the check_snmp_disk values in reverse order and it gave me that error for the service, but I have since cleared that up and it reports correctly. Could there be any way that that error has been cached somewhere on the server and just hasn't cleared out?
|
|
|
02-06-2012, 09:41 AM
|
#5
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
check you command.cfg file
check whether in your command.cfg the check-host-alive is defined properly or not.It should be something like the following
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}
|
|
|
All times are GMT -5. The time now is 09:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|