Getting graphs for one host, but not another... but both in same hostgroup
Andrew Davis
nccomp at gmail.com
Thu Oct 14 16:28:03 CEST 2010
I've stumbled across something odd. We're using Nagios and PNP4Nagios
to get trending and graphs. I have two clients in the same hostgroup.
The hostgroup name is "linux-servers". Members are "osiris1" and
"imhotep". I'm using NRPE to check each. Relevant config files are
below. In a nutshell, I'm getting disk graphs for Osiris1, but not for
Imhotep and I can't figure out why. To clarify... the disk graphs are
there for both. However, for host Osiris1 they are populated with data.
But for host Imhotep they are blank (not non-existent, existent, but
blank/empty). Checking manually at the command line of the Nagios server
shows the pipe and the subsequent data (tests at bottm of email). I
could understand if was monitoring the hosts individually and had a typo
in a config for one, but I'm monitoring them as a hostgroup and command
line tests work, but one is giving graphs with results and the other
blank graphs. Any thoughts?
*hosts.cfg* (/relevant portion/):
##### Linux Hosts #####
# -- Linux host
define host {
name Linux-Servers
register 0
hostgroups linux-servers
check_command check-host-alive
icon_image tux.png
statusmap_image tux.png
icon_image_alt Linux Server
max_check_attempts 3
check_period 24x7
contact_groups unixadmins
notification_interval 120
notification_period 24x7
notification_options d, u, r, f, s
}
define host {
host_name imhotep
use Linux-Servers
alias Imhotep (SLES)
address 10.1.1.57
parents *changed_for_security_reasons*
}
define host {
host_name osiris1
use Linux-Servers
alias Osiris1 (SLES)
address 10.1.1.52
parents *changed_for_security_reasons*
}
*hostgroups.cfg* (/relevant portion/):
##### Linux Servers #####
define hostgroup {
hostgroup_name linux-servers
alias Linux Servers (Checked via NRPE)
members imhotep, osiris1
}
*checkcommands.cfg* (/relevant portion/):
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t
60 -c $ARG1$
}
*services.cfg* (/relevant portion/):
define service {
hostgroup_name linux-servers
service_description DISK
check_command check_nrpe!check_disks
max_check_attempts 3
normal_check_interval 15
retry_check_interval 5
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options w, u, c, r, f, s
contact_groups unixadmins
action_url
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
}
Manual tests from Nagios command line:
[nagios at nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H imhotep -c
check_disks
DISK OK| /=37431MB;62067;65515;0;68964 /dev/shm=0MB;7187;7586;0;7986
/srv=487666MB;857825;905482;0;953139
/Process=771063MB;1151634;1215614;0;1279594
/home=484743MB;974463;1028600;0;1082737
/mnt/store=906386MB;1715990;1811323;0;1906656
/data=397590MB;837857;884405;0;930953
/mnt/archives=2715115MB;4618679;4875272;0;5131866
[nagios at nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H osiris1 -c
check_disks
DISK OK| /=5753MB;62067;65515;0;68964 /dev/shm=0MB;7013;7403;0;7793
/mnt/store=906386MB;1715990;1811323;0;1906656
/mnt/newxray=651767MB;837621;884155;0;930690
/mnt/incell=1503651MB;1715990;1811323;0;1906656
/mnt/newdata=788776MB;878368;927166;0;975965
/share=560786MB;851256;898548;0;945840
/data=397590MB;837857;884405;0;930953
/home=484743MB;974463;1028600;0;1082737
/mnt/archives=2715115MB;4618679;4875272;0;5131866
/Peptide=452914MB;844445;891359;0;938273
Any thoughts? I'm stumped on this one... anyone know where PNP keeps its
logs? I'm thinking I might be able to grep through the logs for the host
with the blank graphs and find something...
--
A. Davis
Email: nccomp at gmail.com
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101014/be3f03cf/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list