New Server - Apache not showing new host but Nagios does

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Chimchaz
Posts: 1
Joined: Sun Jul 06, 2014 10:53 am

New Server - Apache not showing new host but Nagios does

Post by Chimchaz »

My first Nagios server..
Host monitoring server is Ubuntu 13.10 with Nagios 3.4.1, nrpe 2.15 on both ends

The Apache Core GUI shows the default local host just fine but the newly added host/services for a remote Linux server is not showing at all. Nagios is seeing the remote host just fine as I see it being enumerated in the nagios.log ubuvaio is the remote linux box that is not showing up in Apache.

Code: Select all

[1404630000] LOG ROTATION: DAILY
[1404630000] LOG VERSION: 2.0
[1404630000] CURRENT HOST STATE: localhost;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.03 ms
[1404630000] CURRENT HOST STATE: ubuvaio;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 3.97 ms
[1404630000] CURRENT SERVICE STATE: localhost;Current Load;OK;HARD;1;OK - load average: 0.00, 0.01, 0.05
[1404630000] CURRENT SERVICE STATE: localhost;Current Users;OK;HARD;1;USERS OK - 1 users currently logged in
[1404630000] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK: HTTP/1.1 200 OK - 446 bytes in 0.000 second response time
[1404630000] CURRENT SERVICE STATE: localhost;PING;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 0.03 ms
[1404630000] CURRENT SERVICE STATE: localhost;Root Partition;OK;HARD;1;DISK OK - free space: / 64272 MB (92% inode=95%):
[1404630000] CURRENT SERVICE STATE: localhost;SSH;CRITICAL;HARD;4;Connection refused
[1404630000] CURRENT SERVICE STATE: localhost;Swap Usage;OK;HARD;1;SWAP OK - 100% free (2004 MB out of 2004 MB)
[1404630000] CURRENT SERVICE STATE: localhost;Total Processes;OK;HARD;1;PROCS OK: 76 processes with STATE = RSZDT
[1404630000] CURRENT SERVICE STATE: ubuvaio;/dev/hda1 Free Space;CRITICAL;HARD;3;DISK CRITICAL - /dev/hda1 is not accessible: No such file or directory
[1404630000] CURRENT SERVICE STATE: ubuvaio;CPU Load;OK;HARD;1;OK - load average: 0.00, 0.03, 0.05
[1404630000] CURRENT SERVICE STATE: ubuvaio;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1404630000] CURRENT SERVICE STATE: ubuvaio;Total Processes;OK;HARD;1;PROCS OK: 79 processes
[1404630000] CURRENT SERVICE STATE: ubuvaio;Zombie Processes;OK;HARD;1;PROCS OK: 0 processes with STATE = Z
[1404632564] Auto-save of retention data completed successfully.
[1404632843] SERVICE NOTIFICATION: nagiosadmin;ubuvaio;/dev/hda1 Free Space;CRITICAL;notify-service-by-email;DISK CRITICAL - /dev/hda1 is not accessible: No such file or directory
[1404632843] wproc: NOTIFY job 77 from worker Core Worker 3350 is a non-check helper but exited with return code 127
[1404632843] wproc:   command: /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: /dev/hda1 Free Space\nHost: SnazCom ScreenConnect Server\nAddress: 192.168.46.60\nState: CRITICAL\n\nDate/Time: Sun Jul 6 00:47:23 PDT 2014\n\nAdditional Info:\n\nDISK CRITICAL - /dev/hda1 is not accessible: No such file or directory\n" | /usr/bin/sendmail -s "** PROBLEM Service Alert: SnazCom ScreenConnect Server//dev/hda1 Free Space is CRITICAL **" nagios@localhost
[1404632843] wproc:   host=ubuvaio; service=/dev/hda1 Free Space; contact=nagiosadmin
[1404632843] wproc:   early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
[1404632843] wproc:   stderr line 01: /bin/sh: 1: /usr/bin/sendmail: not found
[1404632843] wproc:   stderr line 02: /usr/bin/printf: write error: Broken pipe
[1404636164] Auto-save of retention data completed successfully.
[1404636443] SERVICE NOTIFICATION: nagiosadmin;ubuvaio;/dev/hda1 Free Space;CRITICAL;notify-service-by-email;DISK CRITICAL - /dev/hda1 is not accessible: No such file or directory
Here is my verify and object permissions.

Code: Select all

Nagios Core 4.0.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-14-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 13 services.
        Checked 2 hosts.
        Checked 1 host groups.
        Checked 0 service groups.
        Checked 1 contacts.
        Checked 1 contact groups.
        Checked 25 commands.
        Checked 5 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 2 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
root@aceface:/usr/local/nagios/var# ls -l
total 120
drwxrwxr-x 2 nagios nagios  4096 Jul  4 10:39 archives
-rw-r--r-- 1 nagios nagios 36113 Jul  5 21:47 nagios.log
-rw-r--r-- 1 nagios nagcmd 17472 Jul  5 21:42 objects.cache
-rw------- 1 nagios nagcmd 20630 Jul  5 21:25 retention.dat
drwxrwsr-x 2 nagios nagcmd  4096 Jul  5 21:42 rw
drwxr-xr-x 3 root   root    4096 Jul  4 10:39 spool
-rw-rw-r-- 1 nagios nagcmd 21296 Jul  5 22:14 status.dat
root@aceface:/usr/local/nagios/var#
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: New Server - Apache not showing new host but Nagios does

Post by eloyd »

Try deleting your browser cache, exiting the browser completely, and then logging back in to Nagios with a fresh browser.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: New Server - Apache not showing new host but Nagios does

Post by tmcdonald »

@Chimchaz, did you try eloyd's suggestion?
Former Nagios employee
Locked