<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Simple check this site of the pnp4nagios documentation:<br>
<br>
<a class="moz-txt-link-freetext" href="http://docs.pnp4nagios.org/pnp-0.4/verify">http://docs.pnp4nagios.org/pnp-0.4/verify</a><br>
<br>
I think this will help you out finding and analysing the logfiles.<br>
<br>
<br>
Am 14.10.2010 16:28, schrieb Andrew Davis:
<blockquote cite="mid:4CB71373.2020000@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
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?<br>
<br>
<b>hosts.cfg</b> (<i>relevant portion</i>):<br>
<br>
##### Linux Hosts #####<br>
# -- Linux host<br>
define host {<br>
name Linux-Servers<br>
register 0<br>
<br>
hostgroups linux-servers<br>
check_command check-host-alive<br>
icon_image tux.png<br>
statusmap_image tux.png<br>
icon_image_alt Linux Server<br>
max_check_attempts 3<br>
check_period 24x7<br>
contact_groups unixadmins<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options d, u, r, f, s<br>
}<br>
define host {<br>
host_name imhotep<br>
use Linux-Servers<br>
alias Imhotep (SLES)<br>
address 10.1.1.57<br>
parents *changed_for_security_reasons*<br>
}<br>
define host {<br>
host_name osiris1<br>
use Linux-Servers<br>
alias Osiris1 (SLES)<br>
address 10.1.1.52<br>
parents *changed_for_security_reasons*<br>
}<br>
<br>
<b>hostgroups.cfg</b> (<i>relevant portion</i>):<br>
<br>
##### Linux Servers #####<br>
define hostgroup {<br>
hostgroup_name linux-servers<br>
alias Linux Servers (Checked via NRPE)<br>
members imhotep, osiris1<br>
}<br>
<br>
<b>checkcommands.cfg</b> (<i>relevant portion</i>):<br>
<br>
define command {<br>
command_name check_nrpe<br>
command_line $USER1$/check_nrpe -H
$HOSTADDRESS$ -t 60 -c $ARG1$<br>
}<br>
<br>
<b>services.cfg</b> (<i>relevant portion</i>):<br>
<br>
define service {<br>
hostgroup_name linux-servers<br>
service_description DISK<br>
check_command check_nrpe!check_disks<br>
max_check_attempts 3<br>
normal_check_interval 15<br>
retry_check_interval 5<br>
check_period 24x7<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options w, u, c, r, f, s<br>
contact_groups unixadmins<br>
action_url
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$<br>
}<br>
<br>
Manual tests from Nagios command line:<br>
<br>
[nagios@nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H
imhotep -c check_disks<br>
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<br>
[nagios@nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H
osiris1 -c check_disks<br>
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<br>
<br>
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...<br>
<pre class="moz-signature" cols="72">--
A. Davis
Email: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:nccomp@gmail.com">nccomp@gmail.com</a>
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
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.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/beautyoftheweb">http://p.sf.net/sfu/beautyoftheweb</a></pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
<br>
</body>
</html>