Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-03-2012, 03:08 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
Question 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.
Old 02-04-2012, 07:33 PM   #2
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Rep: Reputation: 62
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.
Old 02-05-2012, 07:01 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,378

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
"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
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
Old 02-06-2012, 07:59 AM   #4
LQ Newbie
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Here's what I have for ping:

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?
Old 02-06-2012, 09:41 AM   #5
LQ Newbie
Registered: Feb 2011
Posts: 9

Rep: Reputation: 0
Talking 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


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
Nagios reports host as down, services as OK eblonk Linux - Software 9 06-27-2013 03:41 PM
[SOLVED] Nagios: monitoring xenapp services TalkingMarble Linux - Software 4 04-03-2012 01:28 PM
[SOLVED] Nagios, checking remote services thllgo Linux - Software 8 02-06-2012 10:52 AM
Nagios shows host offline, but services all show OK withanh Linux - Software 1 07-07-2011 10:23 PM
Establishing a VPN connection (host to host) using IPSec services adithya24 Linux - Networking 9 06-10-2009 08:44 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration