Page 1 of 1
No HOST data graphs
Posted: Fri Oct 30, 2015 2:12 am
by Fred Kroeger
Just spun up anbrand new NagiosXI 5 R2.0 VM.
Configured the Host Check to use the check_host_alive command.
This is working fine and looking at the advanced tab, it is returning perfdata OK.
Code: Select all
Status Information: OK - 10.200.3.3: rta 0.236ms, lost 0%
Performance Data: rta=0.236ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.413ms;;;; rtmin=0.178ms;;;;
However there are no Graphs for the Host Data - also there no _HOST_ xml/rrd files either for the hosts (which would explain why there are no graphs!)
Service Checks are creating graphs OK for these hosts.
Any ideas ?
regads... Fred
Re: No HOST data graphs
Posted: Fri Oct 30, 2015 11:15 am
by lmiltchev
Fred, run the following commands and post the output:
Code: Select all
cat /usr/local/nagios/etc/hosts/<your host>
ll -d /usr/local/nagios/share/perfdata/<your host>
ll /usr/local/nagios/share/perfdata/<your host>
where you substitute <your host> with the actual hostname. Thanks!
Re: No HOST data graphs
Posted: Mon Nov 02, 2015 12:39 am
by Fred Kroeger
Just added another 12 hosts using Bulk Add and none of them are displaying HOST graph details either.
Only the original host "localhost" shows this graph.
I've added hosts today on another Nagios Server, but this was upgraded to XI5 R2.0 and it is displaying the HOST perf data OK
# cat /usr/local/nagios/etc/hosts/XXX.local.cfg
Code: Select all
###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.5.0
# Date: 2015-11-02 15:58:00
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define host {
host_name XXX.local
use linux-server
alias XXX:Wintel:
display_name XXX
address 10.X.X.X
hostgroups XX-Wintel
check_command check-host-alive!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contact_groups XXX
notification_interval 0
notification_period 24x7
icon_image wintel.png
statusmap_image wintel.png
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
# ll -d /usr/local/nagios/share/perfdata/XXX.local
Code: Select all
drwxrwxr-x 2 nagios nagios 4096 Nov 2 16:28 /usr/local/nagios/share/perfdata/XXX.local
# ll /usr/local/nagios/share/perfdata/XXX.local
Code: Select all
total 4900
-rwxrwxr-x 1 nagios nagios 384952 Nov 2 16:26 CPU_Usage_-_Wintel.rrd
-rw-rw-r-- 1 nagios nagios 2247 Nov 2 16:26 CPU_Usage_-_Wintel.xml
-rwxrwxr-x 1 nagios nagios 1534768 Nov 2 16:27 Disk_Usage_-_Application_Disks_-_Wintel.rrd
-rw-rw-r-- 1 nagios nagios 5450 Nov 2 16:27 Disk_Usage_-_Application_Disks_-_Wintel.xml
-rwxrwxr-x 1 nagios nagios 768224 Nov 2 16:28 Disk_Usage_-_System_Disks_-_Wintel.rrd
-rw-rw-r-- 1 nagios nagios 3453 Nov 2 16:28 Disk_Usage_-_System_Disks_-_Wintel.xml
-rwxrwxr-x 1 nagios nagios 2301312 Nov 2 16:28 Memory_Usage_-_Wintel.rrd
-rw-rw-r-- 1 nagios nagios 6311 Nov 2 16:28 Memory_Usage_-_Wintel.xml
I also ran this
# find /usr/local/nagios/share/perfdata -name "*HOST*"
Code: Select all
/usr/local/nagios/share/perfdata/localhost/_HOST_.rrd
/usr/local/nagios/share/perfdata/localhost/_HOST_.xml
# cat /usr/local/nagios/etc/hosts/localhost.cfg
Code: Select all
###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.5.0
# Date: 2015-10-08 18:45:15
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define host {
host_name localhost
use linux-server
alias localhost
address 127.0.0.1
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
Re: No HOST data graphs
Posted: Mon Nov 02, 2015 1:38 am
by Box293
Very strange.
On this host with the issue, can you please increase the logging verbosity and then take a deeper look into the logs. Follow the FAQ entry below to increase the log level of process_perfdata and npcd:
http://support.nagios.com/wiki/index.ph ... leshooting
Wait 15 - 20 minutes and then get a tail of the logs:
tail -250 /usr/local/nagios/var/perfdata.log > /tmp/perfdata.txt
tail -250 /usr/local/nagios/var/npcd.log > /tmp/npcd.txt
Send us a copy of /tmp/perfdata.txt and /tmp/npcd.txt
Don't forget to turn down the log level as per the FAQ when you are done!
Re: No HOST data graphs
Posted: Tue Nov 03, 2015 8:15 pm
by Fred Kroeger
Onya Troy! You got me looking in the right area - all good now.
The perfdata.log showed that none of the Host checks were being processed. Quick check of /var/nagiosramdisk/host-perfdata showed that the file was slowly growing and not being moved to the /var/nagiosramdisk/spool/xidpe directory.
Problem was a typo in the Command "process-host-perfdata-file-bulk". Fixed the typo and Host perfdata is now being processed and HOST graphs are being updated.
Many thanks Troy - this can be closed now. Regards... Fred
Re: No HOST data graphs
Posted: Tue Nov 03, 2015 11:03 pm
by Box293
Excellent, great to hear it was something that was easy enough to track down.