Mail response time

Jamie Roughan jamie.roughan at mizuho-sc.com
Tue Dec 7 00:47:45 CET 2004


Currently it takes about 5 minutes to receive mail notificatin from nagios.
I would like to receive mail after 1 minute .

Is the parameter for accomplishing this located in the main nagios.cfg ?
Is it the command_check_interval ? If not which parameter controls email
notification response?

-merci beaucoup

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
nagios-users-request at lists.sourceforge.net
Sent: Tuesday, December 07, 2004 6:39 AM
To: nagios-users at lists.sourceforge.net
Subject: Nagios-users digest, Vol 1 #2363 - 26 msgs


Send Nagios-users mailing list submissions to
	nagios-users at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/nagios-users
or, via email, send a message with subject or body 'help' to
	nagios-users-request at lists.sourceforge.net

You can reach the person managing the list at
	nagios-users-admin at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Nagios-users digest..."


Today's Topics:

   1. Antwort: [Nagios-users] sms_client scripts [Virus scanned] (Sascha
Runschke)
   2. hosts dependancies not working (Ralf Gross)
   3. Antwort: [Nagios-users] hosts dependancies not working [Virus scanned]
(Sascha Runschke)
   4. Re: hosts dependancies not working [Virus scanned] (Ralf Gross)
   5. $HOSTADDRESS$ in notes_url in hostextinfo
(florian.beese at infoconsult.nu)
   6. Re: $HOSTADDRESS$ in notes_url in hostextinfo (Andreas Ericsson)
   7. check_command in Nagios 1.2 (Sergey Semenyuk)
   8. Re: check_command in Nagios 1.2 (Stephan Janosch)
   9. RE: check_command in Nagios 1.2 (Sergey Semenyuk)
  10. RE: check_command in Nagios 1.2 (Marc Powell)
  11. RE: check_command in Nagios 1.2 (Sergey Semenyuk)
  12. RE: check_command in Nagios 1.2 (Marc Powell)
  13. Antwort: Re: [Nagios-users] hosts dependancies not working [Virus
scanned] (Sascha Runschke)
  14. RE: check_command in Nagios 1.2 (Sergey Semenyuk)
  15. Monitoring ports & BGP on Cisco (Thomas Earl)
  16. Re: $HOSTADDRESS$ in =?utf-8?b?bm90ZXNfdXJs?= in hostextinfo (Moshe
Sharon)
  17. Re: hosts dependancies not working [Virus scanned] (Dan Stromberg)
  18. Notifications not reaching me (Gary Lawrence Murphy)
  19. nagios perf data output (Daniel maher)
  20. Re: Notifications not reaching me (Jan Scholten)
  21. Compaq Smart Array Drives under Linux (Stork, Johnny [PH])
  22. Re: Notifications not reaching me (Gary Lawrence Murphy)
  23. Re: Notifications not reaching me (Gary Lawrence Murphy)
  24. Re: Notifications not reaching me (Gary Lawrence Murphy)
  25. Re: Templates for Web Interface (Wil Cooley)
  26. RE: Re: Templates for Web Interface (Nathan Oyler)

--__--__--

Message: 1
To: Mark Maas <mark at menem.mine.nu>
Cc: nagios-users at lists.sourceforge.net
Subject: Antwort: [Nagios-users] sms_client scripts [Virus scanned]
From: "Sascha Runschke" <srunschke at abit.de>
Date: Mon, 6 Dec 2004 09:52:36 +0100

This is a multipart message in MIME format.
--=_alternative 0030C2EBC1256F62_=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello Mark,

seeing that noone answered you I'll try to give you some directions :)

Does Nagios have the correct permissions to access the modem? Does
sms=5Fclient work from the command-line (try as nagios user, not=20 root!).

I am not familiar with sms=5Fclient, but I somehow miss the number in your =

config.
Does sms=5Fclient have its own addressbook?

sash

--------------------------------------------------
Sascha Runschke
Netzwerk Administration
IT-Services

ABIT AG
Robert-Bosch-Str. 1
40668 Meerbusch

Tel.:+49 (0) 2150.9153.226
mailto:SRunschke at abit.de

http://www.abit.net
http://www.abit-epos.net
http://www.my-academy.net
--------------------------------------------------
Der Inhalt dieser Email sowie die Anh=E4nge sind ausschlie=DFlich f=FCr den=
=20 bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene
Adressat=20 dieser Email oder dessen Vertreter sein sollten, so beachten Sie
bitte,=20 da=DF jede Form der Kenntnisnahme, Ver=F6ffentlichung,
Vervielf=E4ltigung = oder=20 Weitergabe des Inhalts dieser Email
unzul=E4ssig ist. Wir m=F6chten Sie=20 au=DFerdem darauf hinweisen, da=DF
die Kommunikation per Email =FCber das=20 Internet unsicher ist, da fuer
unberechtigte Dritte grunds=E4tzlich die=20 M=F6glichkeit der Kenntnisnahme
und Manipulation besteht. Wenn Sie diese=20 Nachricht versehentlich
erhalten, informieren Sie bitte den Absender und=20 l=F6schen diese
Nachricht mit den Anh=E4ngen. Herzlichen Dank

The information and any attachments contained in this email are intended=20
solely for the addressee. Access to this email by anyone else is=20
unauthorized. If you are not the intended recipient, any form of=20
disclosure, reproduction, distribution or any action taken or refrained=20
from in reliance on it, is prohibited and may be unlawful. We also like to =

inform you that communication via email over the internet is insecure=20
because third parties may have the possibility to access and manipulate=20
emails. If you have received the message in error, please advise the=20
sender and delete the message and any attachments. Thank you very much.
--=_alternative 0030C2EBC1256F62_=
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=3D2 face=3D"sans-serif">Hello Mark,</font>
<br>
<br><font size=3D2 face=3D"sans-serif">seeing that noone answered you I'll =
try to give you some directions :)</font> <br> <br><font size=3D2
face=3D"sans-serif">Does Nagios have the correct permiss= ions to access the
modem?</font> <br><font size=3D2 face=3D"sans-serif">Does sms=5Fclient work
from the comm= and-line (try as nagios user, not root!).</font> <br>
<br><font size=3D2 face=3D"sans-serif">I am not familiar with sms=5Fclient,=
but I somehow miss the number in your config.</font> <br><font size=3D2
face=3D"sans-serif">Does sms=5Fclient have its own addre= ssbook?</font>
<br> <br><font size=3D2 face=3D"sans-serif">sash</font> <br> <br><font
size=3D2 face=3D"sans-serif">------------------------------------=
--------------<br>
Sascha Runschke<br>
Netzwerk Administration<br>
IT-Services<br>
<br>
ABIT AG<br>
Robert-Bosch-Str. 1<br>
40668 Meerbusch<br>
<br>
Tel.:+49 (0) 2150.9153.226<br>
mailto:SRunschke at abit.de<br>
<br>
http://www.abit.net<br>
http://www.abit-epos.net<br>
http://www.my-academy.net<br>
--------------------------------------------------<br>
Der Inhalt dieser Email sowie die Anh=E4nge sind ausschlie=DFlich f=FCr den=
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat =
dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da=
=DF jede Form der Kenntnisnahme, Ver=F6ffentlichung,  Vervielf=E4ltigu=
ng oder Weitergabe des Inhalts dieser Email unzul=E4ssig ist. Wir m=F6chten=
Sie au=DFerdem darauf hinweisen, da=DF die Kommunikation per Email =FCber =
das Internet unsicher ist, da fuer unberechtigte Dritte grunds=E4tzlich die=
M=F6glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese N=
achricht versehentlich erhalten, informieren Sie bitte den Absender und l=
=F6schen diese Nachricht mit den Anh=E4ngen. Herzlichen Dank<br> <br> The
information and any attachments contained in this email are intended so=
lely for the addressee. Access to this email by anyone else is unauthorized=
. If you are not the intended recipient, any form of disclosure, reproducti=
on, distribution or any action taken or refrained from in reliance on it, i=
s prohibited and may be unlawful. We also like to inform you that communica=
tion via email over the internet is insecure because third parties may have=
the possibility to access and manipulate emails. If you have received the =
message in error, please advise the sender and delete the message and any a=
ttachments. Thank you very much.</font> --=_alternative 0030C2EBC1256F62_=--


--__--__--

Message: 2
Date: Mon, 6 Dec 2004 14:30:03 +0100 (CET)
From: "Ralf Gross" <Ralf-Lists at RalfGross.de>
To: <nagios-users at lists.sourceforge.net>
Subject: [Nagios-users] hosts dependancies not working

Hi,

I'm trying to set up host dependencies for a couple of of hosts behind
routers/firewalls. define hostdependency{
        hostgroup_name        test
        dependent_host_name   router1,fw,router2
        notification_failure_criteria   d,u,o
        }

The group test contains 2 hosts behind a router. To test the dependency I
created a iptables rule that first rejects icmp packets from router1 and
later, when router1 is down, rejects packets from hosts in the hostgroup.
The dependeny is also displayed in the cgi interface (view config).

The logfile shows the following:

HOST ALERT: router1;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seco=
nds HOST ALERT: router1;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10
seco= nds HOST ALERT: router1;DOWN;SOFT;3;CRITICAL - Plugin timed out after
10 seco= nds HOST ALERT: router1;DOWN;SOFT;4;CRITICAL - Plugin timed out
after 10 seco= nds HOST ALERT: router1;DOWN;SOFT;5;CRITICAL - Plugin timed
out after 10 seco= nds HOST ALERT: router1;DOWN;SOFT;6;CRITICAL - Plugin
timed out after 10 seco= nds HOST ALERT: router1;DOWN;SOFT;7;CRITICAL -
Plugin timed out after 10 seco= nds HOST ALERT: router1;DOWN;SOFT;8;CRITICAL
- Plugin timed out after 10 seco= nds HOST ALERT:
router1;DOWN;HARD;9;CRITICAL - Plugin timed out after 10 seco= nds SERVICE
ALERT: router1;PING;CRITICAL;HARD;1;CRITICAL - Plugin timed out after 10
seconds Ok, the dependent host is down. Now I started blocking icmp packets
from the client test1 behinde router1: HOST ALERT:
test1;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;SOFT;5;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;SOFT;6;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;SOFT;7;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;SOFT;8;CRITICAL - Plugin timed out after 10 second= s HOST ALERT:
test1;DOWN;HARD;9;CRITICAL - Plugin timed out after 10 second= s HOST
NOTIFICATION: Gross;test1;DOWN;host-notify-by-sms;CRITICAL - Plugin timed
out after 10 secondsHOST NOTIFICATION: Gross;test1;DOWN;notify-by-w=
inpopup;CRITICAL - Plugin timed out after 10 secondsHOST NOTIFICATION:
Gross;test1;DOWN;host-notify= -by-email;CRITICAL - Plugin timed out after 10
secondsSERVICE ALERT: test1;PING;CRITICAL;HARD;1;CRITI= CAL - Plugin timed
out after 10 seconds Host test1 is down and the dependent host router1 too!
No host notifications should be sent out, or am I wrong? Any ideas what I
might be doing wrong?


One more question. I'm using o as Option for notification_failure_criteria.
Is that necessary to supress recovery notifications, or is d,u sufficient?
Thanks, Ralf






--__--__--

Message: 3
To: "Ralf Gross" <Ralf-Lists at RalfGross.de>
Cc: nagios-users at lists.sourceforge.net
Subject: Antwort: [Nagios-users] hosts dependancies not working [Virus
scanned]
From: "Sascha Runschke" <srunschke at abit.de>
Date: Mon, 6 Dec 2004 14:46:09 +0100

This is a multipart message in MIME format.
--=_alternative 004BA362C1256F62_=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello Ralf,

why are you using host dependencies in the first place?
You should use parent relationships for such an environment.

sash

--------------------------------------------------
Sascha Runschke
Netzwerk Administration
IT-Services

ABIT AG
Robert-Bosch-Str. 1
40668 Meerbusch

Tel.:+49 (0) 2150.9153.226
mailto:SRunschke at abit.de

http://www.abit.net
http://www.abit-epos.net
http://www.my-academy.net
--------------------------------------------------
Der Inhalt dieser Email sowie die Anh=E4nge sind ausschlie=DFlich f=FCr den=
=20 bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene
Adressat=20 dieser Email oder dessen Vertreter sein sollten, so beachten Sie
bitte,=20 da=DF jede Form der Kenntnisnahme, Ver=F6ffentlichung,
Vervielf=E4ltigung = oder=20 Weitergabe des Inhalts dieser Email
unzul=E4ssig ist. Wir m=F6chten Sie=20 au=DFerdem darauf hinweisen, da=DF
die Kommunikation per Email =FCber das=20 Internet unsicher ist, da fuer
unberechtigte Dritte grunds=E4tzlich die=20 M=F6glichkeit der Kenntnisnahme
und Manipulation besteht. Wenn Sie diese=20 Nachricht versehentlich
erhalten, informieren Sie bitte den Absender und=20 l=F6schen diese
Nachricht mit den Anh=E4ngen. Herzlichen Dank

The information and any attachments contained in this email are intended=20
solely for the addressee. Access to this email by anyone else is=20
unauthorized. If you are not the intended recipient, any form of=20
disclosure, reproduction, distribution or any action taken or refrained=20
from in reliance on it, is prohibited and may be unlawful. We also like to =

inform you that communication via email over the internet is insecure=20
because third parties may have the possibility to access and manipulate=20
emails. If you have received the message in error, please advise the=20
sender and delete the message and any attachments. Thank you very much.
--=_alternative 004BA362C1256F62_=
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=3D2 face=3D"sans-serif">Hello Ralf,</font>
<br>
<br><font size=3D2 face=3D"sans-serif">why are you using host dependencies =
in the first place?</font> <br><font size=3D2 face=3D"sans-serif">You should
use parent relationships = for such an environment.</font> <br> <br><font
size=3D2 face=3D"sans-serif">sash</font> <br> <br><font size=3D2
face=3D"sans-serif">------------------------------------=
--------------<br>
Sascha Runschke<br>
Netzwerk Administration<br>
IT-Services<br>
<br>
ABIT AG<br>
Robert-Bosch-Str. 1<br>
40668 Meerbusch<br>
<br>
Tel.:+49 (0) 2150.9153.226<br>
mailto:SRunschke at abit.de<br>
<br>
http://www.abit.net<br>
http://www.abit-epos.net<br>
http://www.my-academy.net<br>
--------------------------------------------------<br>
Der Inhalt dieser Email sowie die Anh=E4nge sind ausschlie=DFlich f=FCr den=
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat =
dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da=
=DF jede Form der Kenntnisnahme, Ver=F6ffentlichung,  Vervielf=E4ltigu=
ng oder Weitergabe des Inhalts dieser Email unzul=E4ssig ist. Wir m=F6chten=
Sie au=DFerdem darauf hinweisen, da=DF die Kommunikation per Email =FCber =
das Internet unsicher ist, da fuer unberechtigte Dritte grunds=E4tzlich die=
M=F6glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese N=
achricht versehentlich erhalten, informieren Sie bitte den Absender und l=
=F6schen diese Nachricht mit den Anh=E4ngen. Herzlichen Dank<br> <br> The
information and any attachments contained in this email are intended so=
lely for the addressee. Access to this email by anyone else is unauthorized=
. If you are not the intended recipient, any form of disclosure, reproducti=
on, distribution or any action taken or refrained from in reliance on it, i=
s prohibited and may be unlawful. We also like to inform you that communica=
tion via email over the internet is insecure because third parties may have=
the possibility to access and manipulate emails. If you have received the =
message in error, please advise the sender and delete the message and any a=
ttachments. Thank you very much.</font> --=_alternative 004BA362C1256F62_=--


--__--__--

Message: 4
Date: Mon, 6 Dec 2004 15:06:53 +0100 (CET)
Subject: Re: [Nagios-users] hosts dependancies not working [Virus scanned]
From: "Ralf Gross" <Ralf-Lists at RalfGross.de>
To: <srunschke at abit.de>
Cc: <nagios-users at lists.sourceforge.net>

Hi,

first of all, I found my mistake.

I confused dependent_host_name with host_name! Changing the entries for both
options did the trick. Stupid me!
> why are you using host dependencies in the first place?
> You should use parent relationships for such an environment. t.

Well, I think hostdependencies are more flexible, but I might be wrong. I
have to confess that I dicovered the parent option after trying
dependencies. Is the parent options a solution for hosts that depend on a
lot of routers/firewalls? Something like that?

monitoring client -> rt1 -> fw1 -> rt -> fw2 -> rt2 -> client

Ralf




--__--__--

Message: 5
From: florian.beese at infoconsult.nu
To: nagios-users at lists.sourceforge.net
Date: Mon, 6 Dec 2004 15:14:05 +0100 
Subject: [Nagios-users] $HOSTADDRESS$ in notes_url in hostextinfo

Hi,

I have a problem using the macro $HOSTADDRESS$ in the hostextinfo
configuration with Nagios 1.2 (on SuSE Linux 9.1).

I wanted to use the $HOSTADDRESS$ macro as a part of the notes_url, in order
to connect to the monitored machine via VNC. My Problem now is, that the
macro does not contain the IP address as expected, but the IP-Address
devided with %2e instead of normal dods.

When I put the mouse over the link the information in the status bar of the
browser looks right, but when I follow the link (click) the address in the
address-bar of the new opened window contains "%2e"s instead of normal dods.
This ofcourse can also be seen in the generated HTML-Code of the status.cgi.

My configuration of hostextinfo looks like the following:

define hostextinfo{
	host_name		prince
	notes_url		http://192.168.10.18:5800
	icon_image		windows_pc.gif
	icon_image_alt	Silke's Rechner
	vrml_image		windows_pc.gif
	statusmap_image	windows_pc.gd2
	2d_coords		140,90
	3d_coords		180.0,90.0,40.0
}

define hostextinfo{
	host_name		mogli
	notes_url		http://$HOSTADDRESS$:5800
	icon_image		ids_server.gif
	icon_image_alt	Arbeitsplatz und Nagiostestrechner
	vrml_image		ids_server.gif
	statusmap_image	ids_server.gd2
	2d_coords		80,90
	3d_coords		100.0,40.0,20.0
}

The upper one works well, because its hard coded (doesn't contain the
macro). The lower one instead has the effect described above.

upper hostextinfo link: http://192.168.10.18:5800/
lower hostextinfo link: http://192%2e168%2e10%2e12:5800/

I searched the documentation and mailinglist archieves for info about this
issue, but did not find any. So I don't know, if this is a bug or not.

Thanks in advance!

regards
  Florian Beese


____________
Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.1385 from 06.12.2004


--__--__--

Message: 6
Date: Mon, 06 Dec 2004 15:49:03 +0100
From: Andreas Ericsson <ae at op5.se>
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] $HOSTADDRESS$ in notes_url in hostextinfo

florian.beese at infoconsult.nu wrote:
> Hi,
> 
> I have a problem using the macro $HOSTADDRESS$ in the hostextinfo 
> configuration with Nagios 1.2 (on SuSE Linux 9.1).
> 
> I wanted to use the $HOSTADDRESS$ macro as a part of the notes_url, in 
> order to connect to the monitored machine via VNC. My Problem now is, 
> that the macro does not contain the IP address as expected, but the 
> IP-Address devided with %2e instead of normal dods.
> 

This has been fixed in Nagios 2 CVS.

> When I put the mouse over the link the information in the status bar 
> of the browser looks right, but when I follow the link (click) the 
> address in the address-bar of the new opened window contains "%2e"s 
> instead of normal dods. This ofcourse can also be seen in the 
> generated HTML-Code of the status.cgi.
> 
> My configuration of hostextinfo looks like the following:
> 
> define hostextinfo{
> 	host_name		prince
> 	notes_url		http://192.168.10.18:5800
> 	icon_image		windows_pc.gif
> 	icon_image_alt	Silke's Rechner
> 	vrml_image		windows_pc.gif
> 	statusmap_image	windows_pc.gd2
> 	2d_coords		140,90
> 	3d_coords		180.0,90.0,40.0
> }
> 
> define hostextinfo{
> 	host_name		mogli
> 	notes_url		http://$HOSTADDRESS$:5800
> 	icon_image		ids_server.gif
> 	icon_image_alt	Arbeitsplatz und Nagiostestrechner
> 	vrml_image		ids_server.gif
> 	statusmap_image	ids_server.gd2
> 	2d_coords		80,90
> 	3d_coords		100.0,40.0,20.0
> }
> 
> The upper one works well, because its hard coded (doesn't contain the 
> macro). The lower one instead has the effect described above.
> 
> upper hostextinfo link: http://192.168.10.18:5800/
> lower hostextinfo link: http://192%2e168%2e10%2e12:5800/
> 
> I searched the documentation and mailinglist archieves for info about 
> this issue, but did not find any. So I don't know, if this is a bug or 
> not.
> 
> Thanks in advance!
> 
> regards
>   Florian Beese
> 
> 
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 15.0.1385 from 06.12.2004
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real 
> users. Discover which products truly live up to the hype. Start 
> reading now. http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


--__--__--

Message: 7
From: "Sergey Semenyuk" <sergey at strategicvista.com>
To: <nagios-users at lists.sourceforge.net>
Date: Mon, 6 Dec 2004 09:46:59 -0500
Subject: [Nagios-users] check_command in Nagios 1.2

Hi,

I am having issues with check_command in hosts specifications. I have
actually used sample configuration files and checked the configs on the demo
site, but still no luck. I tried getting some help from the IRC channel but
RTFM was the answer. I figure that even if I read the manual for ten times I
will barely become smarter. All other plugins and commands specifications
work fine, but hosts check_command doesn't seem to work for me at all and I
get PENDING status with not enough information. I tried various debug levels
but don't seem to see from them that Nagios actually tries running that
check_command. Any other place except for the sources I have to look? 

Thanks in advance.

Sergey



--__--__--

Message: 8
Date: Mon, 06 Dec 2004 16:03:29 +0100
From: Stephan Janosch <Stephan.Janosch at interface-business.de>
Subject: Re: [Nagios-users] check_command in Nagios 1.2
To: Sergey Semenyuk <sergey at strategicvista.com>
Cc: nagios-users at lists.sourceforge.net

Sergey Semenyuk wrote:
> Hi,
> 
> I am having issues with check_command in hosts specifications. I have 
> actually used sample configuration files and checked the configs on 
> the demo site, but still no luck. I tried getting some help from the 
> IRC channel but RTFM was the answer. I figure that even if I read the 
> manual for ten times I will barely become smarter. All other plugins 
> and commands specifications work fine, but hosts check_command doesn't 
> seem to work for me at all and I get PENDING status with not enough 
> information. I tried various debug levels but don't seem to see from 
> them that Nagios actually tries running that check_command. Any other 
> place except for the sources I have to look?
> 
> Thanks in advance.
> 
> Sergey

Can you post at least one host definition here? And please post the 
definition of the host check command too!

Stephan



--__--__--

Message: 9
From: "Sergey Semenyuk" <sergey at strategicvista.com>
To: "'Stephan Janosch'" <Stephan.Janosch at interface-business.de>
Cc: <nagios-users at lists.sourceforge.net>
Subject: RE: [Nagios-users] check_command in Nagios 1.2 
Date: Mon, 6 Dec 2004 10:15:22 -0500

Absolutely:

Host (they are all the same)
define host{
        use                     generic-host            ; Name of host
template to use

        host_name               sfw
        alias                   Main Router (Linux)
        address                 192.168.20.2
        check_command           check-host-alive (I tried
check-host-echo from the demo site as well)
        parents                 mainswitch
        checks_enabled          1
        max_check_attempts      20
        notification_period     24x7
        notification_options    d,u,r
        stalking_options        o,d,u
        }


commands:

define command{
        command_name    check-host-alive
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
3000.0,80% -c 5000.0,100% -p 1
        }


define command{
command_name check-host-echo
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 7
}

No firewalls on internal network at all. 
Started looking sources, and debug0, no check_host calls at all.

Thanks in advance.


-----Original Message-----
From: Stephan Janosch [mailto:Stephan.Janosch at interface-business.de] 
Sent: Monday, December 06, 2004 10:03 AM
To: Sergey Semenyuk
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] check_command in Nagios 1.2 

Sergey Semenyuk wrote:
> Hi,
> 
> I am having issues with check_command in hosts specifications. I have 
> actually used sample configuration files and checked the configs on
the
> demo site, but still no luck. I tried getting some help from the IRC 
> channel but RTFM was the answer. I figure that even if I read the
manual
> for ten times I will barely become smarter. All other plugins and 
> commands specifications work fine, but hosts check_command doesn't
seem
> to work for me at all and I get PENDING status with not enough 
> information. I tried various debug levels but don't seem to see from 
> them that Nagios actually tries running that check_command. Any other 
> place except for the sources I have to look?
> 
> Thanks in advance.
> 
> Sergey

Can you post at least one host definition here? And please post the 
definition of the host check command too!

Stephan




--__--__--

Message: 10
Subject: RE: [Nagios-users] check_command in Nagios 1.2
Date: Mon, 6 Dec 2004 09:28:08 -0600
From: "Marc Powell" <marc at ena.com>
To: "Sergey Semenyuk" <sergey at strategicvista.com>
Cc: <nagios-users at lists.sourceforge.net>

Do you have any service definitions for this host? The host will never be
checked and will remain in a PENDING state if you do not have any services
defined (that actually get checked themselves). Additionally, the host won't
actually be checked and will only be assumed to be OK until one or more
services on the host fails. It sounds to me like you don't have any services
being checked on the host at this point.

Additionally, a host check of 20 probably isn't a good idea. If the host
_were_ to be checked, nagios will stop all processing except for this host
check until all 20 attempts have completed. No additional service checks,
updates, event handlers, etc will run until this completes. You should only
perform the minimal number of pings/attempts to determine the state of the
host. In many cases a single ping is sufficient or just a handful if you
have a lossy network.

--
Marc

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-  
>admin at lists.sourceforge.net] On Behalf Of Sergey Semenyuk
> Sent: Monday, December 06, 2004 9:15 AM
> To: 'Stephan Janosch'
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_command in Nagios 1.2
>=20
> Absolutely:
>=20
> Host (they are all the same)
> define host{
>         use                     generic-host            ; Name of host
> template to use
>=20
>         host_name               sfw
>         alias                   Main Router (Linux)
>         address                 192.168.20.2
>         check_command           check-host-alive (I tried
> check-host-echo from the demo site as well)
>         parents                 mainswitch
>         checks_enabled          1
>         max_check_attempts      20
>         notification_period     24x7
>         notification_options    d,u,r
>         stalking_options        o,d,u
>         }
>=20
>=20
> commands:
>=20
> define command{
>         command_name    check-host-alive
>         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
> 3000.0,80% -c 5000.0,100% -p 1
>         }
>=20
>=20
> define command{
> command_name check-host-echo
> command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 7
> }
>=20
> No firewalls on internal network at all.
> Started looking sources, and debug0, no check_host calls at all. =20
> Thanks in advance.
>=20
>=20
> -----Original Message-----
> From: Stephan Janosch [mailto:Stephan.Janosch at interface-business.de]
> Sent: Monday, December 06, 2004 10:03 AM
> To: Sergey Semenyuk
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] check_command in Nagios 1.2
>=20
> Sergey Semenyuk wrote:
> > Hi,
> >
> > I am having issues with check_command in hosts specifications. I
have
> > actually used sample configuration files and checked the configs on
> the
> > demo site, but still no luck. I tried getting some help from the IRC 
> > channel but RTFM was the answer. I figure that even if I read the
> manual
> > for ten times I will barely become smarter. All other plugins and 
> > commands specifications work fine, but hosts check_command doesn't
> seem
> > to work for me at all and I get PENDING status with not enough 
> > information. I tried various debug levels but don't seem to see from 
> > them that Nagios actually tries running that check_command. Any
other
> > place except for the sources I have to look?
> >
> > Thanks in advance.
> >
> > Sergey
>=20
> Can you post at least one host definition here? And please post the  
>definition of the host check command too!



--__--__--

Message: 11
From: "Sergey Semenyuk" <sergey at strategicvista.com>
To: "'Marc Powell'" <marc at ena.com>
Cc: <nagios-users at lists.sourceforge.net>
Subject: RE: [Nagios-users] check_command in Nagios 1.2 
Date: Mon, 6 Dec 2004 10:34:47 -0500

Thanks for advice.
I just have noticed going through the sources that check_host is actually
called from verify_host_"path" (whatever) when service status changes. And
everything you said sounds perfectly understandable. So, you to check if the
host is alive I need to have some kind of ping service, and both service and
host status will change (just confirming my findings), because that
"Assuming ..." was rather confusing. 

Thanks for clearing things out for me. 

Sergey Semenyuk
LAN Administrator
Strategic Vista International Inc.
300 Alden Road,
Markham, ON, L3R 4C1
Phone: (905) 946-8589 x 180
Fax: (905) 947-0138 


-----Original Message-----
From: Marc Powell [mailto:marc at ena.com] 
Sent: Monday, December 06, 2004 10:28 AM
To: Sergey Semenyuk
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] check_command in Nagios 1.2 

Do you have any service definitions for this host? The host will never be
checked and will remain in a PENDING state if you do not have any services
defined (that actually get checked themselves). Additionally, the host won't
actually be checked and will only be assumed to be OK until one or more
services on the host fails. It sounds to me like you don't have any services
being checked on the host at this point.

Additionally, a host check of 20 probably isn't a good idea. If the host
_were_ to be checked, nagios will stop all processing except for this host
check until all 20 attempts have completed. No additional service checks,
updates, event handlers, etc will run until this completes. You should only
perform the minimal number of pings/attempts to determine the state of the
host. In many cases a single ping is sufficient or just a handful if you
have a lossy network.

--
Marc

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- 
> admin at lists.sourceforge.net] On Behalf Of Sergey Semenyuk
> Sent: Monday, December 06, 2004 9:15 AM
> To: 'Stephan Janosch'
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_command in Nagios 1.2
> 
> Absolutely:
> 
> Host (they are all the same)
> define host{
>         use                     generic-host            ; Name of host
> template to use
> 
>         host_name               sfw
>         alias                   Main Router (Linux)
>         address                 192.168.20.2
>         check_command           check-host-alive (I tried
> check-host-echo from the demo site as well)
>         parents                 mainswitch
>         checks_enabled          1
>         max_check_attempts      20
>         notification_period     24x7
>         notification_options    d,u,r
>         stalking_options        o,d,u
>         }
> 
> 
> commands:
> 
> define command{
>         command_name    check-host-alive
>         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
> 3000.0,80% -c 5000.0,100% -p 1
>         }
> 
> 
> define command{
> command_name check-host-echo
> command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 7
> }
> 
> No firewalls on internal network at all.
> Started looking sources, and debug0, no check_host calls at all.
> 
> Thanks in advance.
> 
> 
> -----Original Message-----
> From: Stephan Janosch [mailto:Stephan.Janosch at interface-business.de]
> Sent: Monday, December 06, 2004 10:03 AM
> To: Sergey Semenyuk
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] check_command in Nagios 1.2
> 
> Sergey Semenyuk wrote:
> > Hi,
> >
> > I am having issues with check_command in hosts specifications. I
have
> > actually used sample configuration files and checked the configs on
> the
> > demo site, but still no luck. I tried getting some help from the IRC 
> > channel but RTFM was the answer. I figure that even if I read the
> manual
> > for ten times I will barely become smarter. All other plugins and 
> > commands specifications work fine, but hosts check_command doesn't
> seem
> > to work for me at all and I get PENDING status with not enough 
> > information. I tried various debug levels but don't seem to see from 
> > them that Nagios actually tries running that check_command. Any
other
> > place except for the sources I have to look?
> >
> > Thanks in advance.
> >
> > Sergey
> 
> Can you post at least one host definition here? And please post the 
> definition of the host check command too!




--__--__--

Message: 12
Subject: RE: [Nagios-users] check_command in Nagios 1.2
Date: Mon, 6 Dec 2004 09:54:51 -0600
From: "Marc Powell" <marc at ena.com>
To: "Sergey Semenyuk" <sergey at strategicvista.com>
Cc: <nagios-users at lists.sourceforge.net>

Yes, if your host provides no other services that are interesting to you
(i.e. a router or switch) you'll want to add a ping service check for it.

Some relevant reading --

http://nagios.sourceforge.net/docs/1_0/networkreachability.html=20
http://www.nagios.org/faqs/viewfaq.php?faq_id=3D85&expand=3Dfalse&showdes=
c=3Dt
rue=20
http://www.nagios.org/faqs/viewfaq.php?faq_id=3D86

--
Marc=20

> -----Original Message-----
> From: Sergey Semenyuk [mailto:sergey at strategicvista.com]
> Sent: Monday, December 06, 2004 9:35 AM
> To: Marc Powell
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_command in Nagios 1.2
>=20
> Thanks for advice.
> I just have noticed going through the sources that check_host is  
>actually called from verify_host_"path" (whatever) when service status  
>changes. And everything you said sounds perfectly understandable. So,  
>you to check if the host is alive I need to have some kind of ping  
>service, and both service and host status will change (just confirming  
>my findings), because that "Assuming ..." was rather confusing. =20
> Thanks for clearing things out for me.
>=20
> Sergey Semenyuk
> LAN Administrator
> Strategic Vista International Inc.
> 300 Alden Road,
> Markham, ON, L3R 4C1
> Phone: (905) 946-8589 x 180
> Fax: (905) 947-0138
>=20
>=20
> -----Original Message-----
> From: Marc Powell [mailto:marc at ena.com]
> Sent: Monday, December 06, 2004 10:28 AM
> To: Sergey Semenyuk
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_command in Nagios 1.2
>=20
> Do you have any service definitions for this host? The host will never
> be checked and will remain in a PENDING state if you do not have any
> services defined (that actually get checked themselves). Additionally,
> the host won't actually be checked and will only be assumed to be OK
> until one or more services on the host fails. It sounds to me like you
> don't have any services being checked on the host at this point.
>=20
> Additionally, a host check of 20 probably isn't a good idea. If the
host
> _were_ to be checked, nagios will stop all processing except for this 
> host check until all 20 attempts have completed. No additional service 
> checks, updates, event handlers, etc will run until this completes.
You
> should only perform the minimal number of pings/attempts to determine 
> the state of the host. In many cases a single ping is sufficient or
just
> a handful if you have a lossy network.
>=20
> --
> Marc
>=20
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- 
> > admin at lists.sourceforge.net] On Behalf Of Sergey Semenyuk
> > Sent: Monday, December 06, 2004 9:15 AM
> > To: 'Stephan Janosch'
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] check_command in Nagios 1.2
> >
> > Absolutely:
> >
> > Host (they are all the same)
> > define host{
> >         use                     generic-host            ; Name of
host
> > template to use
> >
> >         host_name               sfw
> >         alias                   Main Router (Linux)
> >         address                 192.168.20.2
> >         check_command           check-host-alive (I tried
> > check-host-echo from the demo site as well)
> >         parents                 mainswitch
> >         checks_enabled          1
> >         max_check_attempts      20
> >         notification_period     24x7
> >         notification_options    d,u,r
> >         stalking_options        o,d,u
> >         }
> >
> >
> > commands:
> >
> > define command{
> >         command_name    check-host-alive
> >         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
> > 3000.0,80% -c 5000.0,100% -p 1
> >         }
> >
> >
> > define command{
> > command_name check-host-echo
> > command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 7
> > }
> >
> > No firewalls on internal network at all.
> > Started looking sources, and debug0, no check_host calls at all.
> >
> > Thanks in advance.
> >
> >
> > -----Original Message-----
> > From: Stephan Janosch [mailto:Stephan.Janosch at interface-business.de]
> > Sent: Monday, December 06, 2004 10:03 AM
> > To: Sergey Semenyuk
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] check_command in Nagios 1.2
> >
> > Sergey Semenyuk wrote:
> > > Hi,
> > >
> > > I am having issues with check_command in hosts specifications. I
> have
> > > actually used sample configuration files and checked the configs
on
> > the
> > > demo site, but still no luck. I tried getting some help from the
IRC
> > > channel but RTFM was the answer. I figure that even if I read the
> > manual
> > > for ten times I will barely become smarter. All other plugins and 
> > > commands specifications work fine, but hosts check_command doesn't
> > seem
> > > to work for me at all and I get PENDING status with not enough 
> > > information. I tried various debug levels but don't seem to see
from
> > > them that Nagios actually tries running that check_command. Any
> other
> > > place except for the sources I have to look?
> > >
> > > Thanks in advance.
> > >
> > > Sergey
> >
> > Can you post at least one host definition here? And please post the 
> > definition of the host check command too!
>=20




--__--__--

Message: 13
To: "Ralf Gross" <Ralf-Lists at RalfGross.de>
Cc: nagios-users at lists.sourceforge.net
Subject: Antwort: Re: [Nagios-users] hosts dependancies not working [Virus
scanned]
From: "Sascha Runschke" <srunschke at abit.de>
Date: Mon, 6 Dec 2004 17:05:17 +0100

This is a multipart message in MIME format.
--=_alternative 0058602AC1256F62_=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

> Well, I think hostdependencies are more flexible, but I might be 
> wrong.=20
I
> have to confess that I dicovered the parent option after trying 
> dependencies. Is the parent options a solution for hosts that depend 
> on=20
a
> lot of routers/firewalls?

They might be more flexible, but they are not meant to be used that way
actually. Only the use of the parent option ensures that network outages are
detected properly by Nagios.

Parent =3D physical dependency
host=5Fdependency =3D logical dependency

> Something like that?
>
> monitoring client -> rt1 -> fw1 -> rt -> fw2 -> rt2 -> client

Using the parent option enables you to rebuild your actual network=20
topology within Nagios.

sash

--------------------------------------------------
Sascha Runschke
Netzwerk Administration
IT-Services

ABIT AG
Robert-Bosch-Str. 1
40668 Meerbusch

Tel.:+49 (0) 2150.9153.226
mailto:SRunschke at abit.de

http://www.abit.net
http://www.abit-epos.net
http://www.my-academy.net
--------------------------------------------------
Der Inhalt dieser Email sowie die Anh=E4nge sind ausschlie=DFlich f=FCr den=
=20 bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene
Adressat=20 dieser Email oder dessen Vertreter sein sollten, so beachten Sie
bitte,=20 da=DF jede Form der Kenntnisnahme, Ver=F6ffentlichung,
Vervielf=E4ltigung = oder=20 Weitergabe des Inhalts dieser Email
unzul=E4ssig ist. Wir m=F6chten Sie=20 au=DFerdem darauf hinweisen, da=DF
die Kommunikation per Email =FCber das=20 Internet unsicher ist, da fuer
unberechtigte Dritte grunds=E4tzlich die=20 M=F6glichkeit der Kenntnisnahme
und Manipulation besteht. Wenn Sie diese=20 Nachricht versehentlich
erhalten, informieren Sie bitte den Absender und=20 l=F6schen diese
Nachricht mit den Anh=E4ngen. Herzlichen Dank

The information and any attachments contained in this email are intended=20
solely for the addressee. Access to this email by anyone else is=20
unauthorized. If you are not the intended recipient, any form of=20
disclosure, reproduction, distribution or any action taken or refrained=20
from in reliance on it, is prohibited and may be unlawful. We also like to =

inform you that communication via email over the internet is insecure=20
because third parties may have the possibility to access and manipulate=20
emails. If you have received the message in error, please advise the=20
sender and delete the message and any attachments. Thank you very much.
--=_alternative 0058602AC1256F62_=
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=3D2 face=3D"Courier New">> Well, I think hostdependencies=
are more flexible, but I might be wrong. I<br> > have to confess that I
dicovered the parent option after trying<br> > dependencies. Is the
parent options a solution for hosts that depend o= n a<br> > lot of
routers/firewalls?</font> <br> <br><font size=3D2 face=3D"Courier New">They
might be more flexible, but th= ey are not meant to be used that way</font>
<br><font size=3D2 face=3D"Courier New">actually. Only the use of the paren=
t option ensures that network outages</font> <br><font size=3D2
face=3D"Courier New">are detected properly by Nagios.</f=
ont>
<br>
<br><font size=3D2 face=3D"Courier New">Parent =3D physical dependency</fon=
t>
<br><font size=3D2 face=3D"Courier New">host=5Fdependency =3D logical depen=
dency</font> <br><font size=3D2 face=3D"Courier New"><br> > Something
like that?<br> ><br> > monitoring client -> rt1 -> fw1 -> rt
-> fw2 -> rt2 -&g= t; client</font> <br> <br><font size=3D2
face=3D"sans-serif">Using the parent option enables you = to rebuild your
actual network topology within Nagios.</font> <br> <br><font size=3D2
face=3D"sans-serif">sash</font> <br> <br><font size=3D2
face=3D"sans-serif">------------------------------------=
--------------<br>
Sascha Runschke<br>
Netzwerk Administration<br>
IT-Services<br>
<br>
ABIT AG<br>
Robert-Bosch-Str. 1<br>
40668 Meerbusch<br>
<br>
Tel.:+49 (0) 2150.9153.226<br>
mailto:SRunschke at abit.de<br>
<br>
http://www.abit.net<br>
http://www.abit-epos.net<br>
http://www.my-academy.net<br>
--------------------------------------------------<br>
Der Inhalt dieser Email sowie die Anh=E4nge sind ausschlie=DFlich f=FCr den=
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat =
dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da=
=DF jede Form der Kenntnisnahme, Ver=F6ffentlichung,  Vervielf=E4ltigu=
ng oder Weitergabe des Inhalts dieser Email unzul=E4ssig ist. Wir m=F6chten=
Sie au=DFerdem darauf hinweisen, da=DF die Kommunikation per Email =FCber =
das Internet unsicher ist, da fuer unberechtigte Dritte grunds=E4tzlich die=
M=F6glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese N=
achricht versehentlich erhalten, informieren Sie bitte den Absender und l=
=F6schen diese Nachricht mit den Anh=E4ngen. Herzlichen Dank<br> <br> The
information and any attachments contained in this email are intended so=
lely for the addressee. Access to this email by anyone else is unauthorized=
. If you are not the intended recipient, any form of disclosure, reproducti=
on, distribution or any action taken or refrained from in reliance on it, i=
s prohibited and may be unlawful. We also like to inform you that communica=
tion via email over the internet is insecure because third parties may have=
the possibility to access and manipulate emails. If you have received the =
message in error, please advise the sender and delete the message and any a=
ttachments. Thank you very much.</font> --=_alternative 0058602AC1256F62_=--


--__--__--

Message: 14
From: "Sergey Semenyuk" <sergey at strategicvista.com>
To: "'Marc Powell'" <marc at ena.com>
Cc: <nagios-users at lists.sourceforge.net>
Subject: RE: [Nagios-users] check_command in Nagios 1.2 
Date: Mon, 6 Dec 2004 11:16:22 -0500

This is what is confusing in the FAQ:
Once !!!Nagios checks the status of the host!!! (or of at least one of the
services associated with the host), the host's state and status information
will be changed.

It status status of the host OR service ...

I've seen this as well

Whenever a service check results in a non-OK status level, Nagios will
attempt to check and see if the host that the service is running on is
"alive".

but couldn't understand WHY nagios would make an assumption without checking
the host status (relevant to the hosts without services)given that in some
situation the host status is an important criteria too.

Thanks a lot for help!


Sergey Semenyuk
LAN Administrator
Strategic Vista International Inc.
300 Alden Road,
Markham, ON, L3R 4C1
Phone: (905) 946-8589 x 180
Fax: (905) 947-0138 


-----Original Message-----
From: Marc Powell [mailto:marc at ena.com] 
Sent: Monday, December 06, 2004 10:55 AM
To: Sergey Semenyuk
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] check_command in Nagios 1.2 

Yes, if your host provides no other services that are interesting to you
(i.e. a router or switch) you'll want to add a ping service check for it.

Some relevant reading --

http://nagios.sourceforge.net/docs/1_0/networkreachability.html 
http://www.nagios.org/faqs/viewfaq.php?faq_id=85&expand=false&showdesc=t
rue 
http://www.nagios.org/faqs/viewfaq.php?faq_id=86

--
Marc 

> -----Original Message-----
> From: Sergey Semenyuk [mailto:sergey at strategicvista.com]
> Sent: Monday, December 06, 2004 9:35 AM
> To: Marc Powell
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_command in Nagios 1.2
> 
> Thanks for advice.
> I just have noticed going through the sources that check_host is 
> actually called from verify_host_"path" (whatever) when service status 
> changes. And everything you said sounds perfectly understandable. So, 
> you to check if the host is alive I need to have some kind of ping 
> service, and both service and host status will change (just confirming 
> my findings), because that "Assuming ..." was rather confusing.
> 
> Thanks for clearing things out for me.
> 
> Sergey Semenyuk
> LAN Administrator
> Strategic Vista International Inc.
> 300 Alden Road,
> Markham, ON, L3R 4C1
> Phone: (905) 946-8589 x 180
> Fax: (905) 947-0138
> 
> 
> -----Original Message-----
> From: Marc Powell [mailto:marc at ena.com]
> Sent: Monday, December 06, 2004 10:28 AM
> To: Sergey Semenyuk
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_command in Nagios 1.2
> 
> Do you have any service definitions for this host? The host will never 
> be checked and will remain in a PENDING state if you do not have any 
> services defined (that actually get checked themselves). Additionally, 
> the host won't actually be checked and will only be assumed to be OK 
> until one or more services on the host fails. It sounds to me like you 
> don't have any services being checked on the host at this point.
> 
> Additionally, a host check of 20 probably isn't a good idea. If the
host
> _were_ to be checked, nagios will stop all processing except for this 
> host check until all 20 attempts have completed. No additional service 
> checks, updates, event handlers, etc will run until this completes.
You
> should only perform the minimal number of pings/attempts to determine 
> the state of the host. In many cases a single ping is sufficient or
just
> a handful if you have a lossy network.
> 
> --
> Marc
> 
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- 
> > admin at lists.sourceforge.net] On Behalf Of Sergey Semenyuk
> > Sent: Monday, December 06, 2004 9:15 AM
> > To: 'Stephan Janosch'
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] check_command in Nagios 1.2
> >
> > Absolutely:
> >
> > Host (they are all the same)
> > define host{
> >         use                     generic-host            ; Name of
host
> > template to use
> >
> >         host_name               sfw
> >         alias                   Main Router (Linux)
> >         address                 192.168.20.2
> >         check_command           check-host-alive (I tried
> > check-host-echo from the demo site as well)
> >         parents                 mainswitch
> >         checks_enabled          1
> >         max_check_attempts      20
> >         notification_period     24x7
> >         notification_options    d,u,r
> >         stalking_options        o,d,u
> >         }
> >
> >
> > commands:
> >
> > define command{
> >         command_name    check-host-alive
> >         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
> > 3000.0,80% -c 5000.0,100% -p 1
> >         }
> >
> >
> > define command{
> > command_name check-host-echo
> > command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 7
> > }
> >
> > No firewalls on internal network at all.
> > Started looking sources, and debug0, no check_host calls at all.
> >
> > Thanks in advance.
> >
> >
> > -----Original Message-----
> > From: Stephan Janosch [mailto:Stephan.Janosch at interface-business.de]
> > Sent: Monday, December 06, 2004 10:03 AM
> > To: Sergey Semenyuk
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] check_command in Nagios 1.2
> >
> > Sergey Semenyuk wrote:
> > > Hi,
> > >
> > > I am having issues with check_command in hosts specifications. I
> have
> > > actually used sample configuration files and checked the configs
on
> > the
> > > demo site, but still no luck. I tried getting some help from the
IRC
> > > channel but RTFM was the answer. I figure that even if I read the
> > manual
> > > for ten times I will barely become smarter. All other plugins and 
> > > commands specifications work fine, but hosts check_command doesn't
> > seem
> > > to work for me at all and I get PENDING status with not enough 
> > > information. I tried various debug levels but don't seem to see
from
> > > them that Nagios actually tries running that check_command. Any
> other
> > > place except for the sources I have to look?
> > >
> > > Thanks in advance.
> > >
> > > Sergey
> >
> > Can you post at least one host definition here? And please post the 
> > definition of the host check command too!
> 





--__--__--

Message: 15
Reply-To: <tearl at cacdhh.org>
From: "Thomas Earl" <tearl at cacdhh.org>
To: <nagios-users at lists.sourceforge.net>
Date: Mon, 6 Dec 2004 12:50:10 -0500
Organization: Communication Access Center
Subject: [Nagios-users] Monitoring ports & BGP on Cisco

Greetings to all, 

I setup Nagios last week and I have to say that this is awesome. Right now
I'm monitoring a great number of systems and services and everything is
going great. I want to start monitoring my routers for when connections and
BGP sessions bounce. 

What is the best way to do this? 

I was thinking setting up so my routers trap back to my Nagios server, but
if there is a better way, I'm all for testing it out.

Please let me know!

Thanks, 

Tom

--
Thomas Earl
Network Engineer & Designer
Communications Access Center (CAC)
1631 Miller Road
Flint, Michigan, 48503
248-705-7408 (cell)
810-239-3112 (office)

"Life is not a journey to the grave with the intention of arriving safely in
a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...'Wow! What a
ride!!'" --Jack Wilson 





--__--__--

Message: 16
To: nagios-users at lists.sourceforge.net
From: Moshe Sharon <moshesharon at gmail.com>
Date: Mon, 6 Dec 2004 18:56:54 +0000 (UTC)
Subject: [Nagios-users] Re: $HOSTADDRESS$ in =?utf-8?b?bm90ZXNfdXJs?= in
hostextinfo

Hello

just a suggestion. 

put $hostname$ instead of $hostaddress$ and put in /etc/hosts all hosts +
ip's 
or in winnt\system32\drivers\etc\hosts file all you hosts + ip's 
or also can do dns names. this way it will bypass the ip address problem.


Moshe Sharon



--__--__--

Message: 17
Subject: Re: [Nagios-users] hosts dependancies not working [Virus scanned]
From: Dan Stromberg <strombrg at dcs.nac.uci.edu>
To: Ralf Gross <Ralf-Lists at RalfGross.de>
Cc: strombrg at dcs.nac.uci.edu, srunschke at abit.de,
        nagios-users at lists.sourceforge.net
Date: Mon, 06 Dec 2004 11:09:23 -0800


--=-GvGldxHoGzv86MsEcjuD
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


You might try my "deep-ssh" script for monitoring services behind a ton of
firewalls:

http://dcs.nac.uci.edu/~strombrg/deep-ssh.html

Your last ssh in the deep-ssh chain can do a "check_by_ssh", or just run the
final nagios plugin directly, I believe.

On Mon, 2004-12-06 at 15:06 +0100, Ralf Gross wrote:
> Hi,
>=20
> first of all, I found my mistake.
>=20
> I confused dependent_host_name with host_name! Changing the entries 
>for  both options did the trick. Stupid me!
> > why are you using host dependencies in the first place?
> > You should use parent relationships for such an environment. t.
>=20
> Well, I think hostdependencies are more flexible, but I might be 
>wrong. I  have to confess that I dicovered the parent option after 
>trying  dependencies. Is the parent options a solution for hosts that 
>depend on a  lot of routers/firewalls?  Something like that?
>=20
> monitoring client -> rt1 -> fw1 -> rt -> fw2 -> rt2 -> client
>=20
> Ralf
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.=20
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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 report=
ing any issue.=20
> ::: Messages without supporting info will risk being sent to /dev/null 
>=20

--=-GvGldxHoGzv86MsEcjuD
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBtK5jo0feVm00f/8RAgSOAKCBvAtkOJu8fhrlaY5fQJAVWTMJ0wCePAnR
xPuaY6HqmLfYpKRcjMfYsfU=
=uqS2
-----END PGP SIGNATURE-----

--=-GvGldxHoGzv86MsEcjuD--



--__--__--

Message: 18
To: nagios <nagios-users at lists.sourceforge.net>
From: Gary Lawrence Murphy <garym at canada.com>
Organization: free software is good for children and other living things
Date: Mon, 06 Dec 2004 15:00:43 -0500
Reply-To: Gary Lawrence Murphy <garym at canada.com>
Subject: [Nagios-users] Notifications not reaching me


I'm having some trouble understanding the notifications system; it's
probably just a misunderstanding about terminology, but the two sections on
notifications and notification escalations haven't offered any clues as to
why the following service does not escalate:

First, here's the service, and I know it works because I can trigger it from
a command line and it shows up correctly in the nagios web display

define service {
        use                             net-service
        host_name                       f1
        service_description             Log Output
        contact_groups                  audit-trail
        register                        0
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        notification_period             24x7
        normal_check_interval           2
        notification_options            w,u,c,r
        check_command                   check_nrpe!check_log
}

"check_log" is a simple plug-in that tests the mtime on the file, and it's
unimportant here because I have several other services that are giving me
similar notification problems.

here are the escalation rules:

define serviceescalation {
        host_name                       f1
        service_description             Log Output
        first_notification              6
        last_notification               9
        contact_groups                  code-blue
        notification_interval           0
}

define serviceescalation {
        host_name                       f1
        service_description             Log Output
        first_notification              10
        last_notification               19
        contact_groups                  code-yellow
        notification_interval           0
}

What I /expect/ to happen is for the normal check interval to be 5 minutes,
so the first 3 checks (15 min) will be under the threshold to trigger the
first notification.  On the third failure, 15 minutes, I expect a notice to
the audit-trail, and I get one.

On the /sixth/ interval, ie at 30 minutes, I expect to get one and only one
notice sent to code-blue, and at the 10th, at 50 minutes past the first
detected failure, I expect to see another single notice out to code-yellow.

But what I get (on the Extended display) is this:

    Current Status:   CRITICAL    
    Status Information: CRITICAL - File age 10h 48m
    Current Attempt:    3/3
    State Type: HARD
    Last Check Type:    ACTIVE
    Last Check Time:    12-06-2004 14:51:52
    Status Data Age:    0d 0h 1m 12s
    Next Scheduled Active Check:    12-06-2004 14:53:52
    Latency:    < 1 second
    Check Duration: < 1 second
    Last State Change:  12-06-2004 13:14:23
    Current State Duration: 0d 1h 38m 41s
    Last Service Notification:  12-06-2004 13:14:23
    Current Notification Number:    1
    Is This Service Flapping?   N/A
    Percent State Change:   N/A
    In Scheduled Downtime?        NO  
    Last Update:    12-06-2004 14:53:03

It's an hour and a half past the last change in state, there's been no
notices and the current notification number is still listed as "1" -- I'm
assuming current notification is the number of notifications that have been
sent, which agrees with observation since there have been no escalations.

Do I have an inappropriate use of the zero notification interval? Is there
something else gone wrong with my configuration?  I know that notifications
do work because we have some services where the alerts are sent and no
obvious difference between their definitions.

Also, I'm still attempting to duplicate the result in a test case, but we
had our notifications intervals set to 60, intending only one message per
hour to be sent while the service check interval was only 5 minutes, but
again, instead of an alert after 30 minutes, we received the first alert
after more than 300 minutes.  

-- 
Gary Lawrence Murphy <garym at teledyn.com> ==============================
www.teledyn.com - blog.teledyn.com - irish.teledyn.com - sbp.teledyn.com
====================== The present moment is a powerful goddess (Goethe)


--__--__--

Message: 19
Date: Mon, 6 Dec 2004 15:15:37 -0500
From: "Daniel maher" <dmaher at acetechnology.com>
To: <nagios-users at lists.sourceforge.net>
Subject: [Nagios-users] nagios perf data output

This is a multi-part message in MIME format.

------_=_NextPart_001_01C4DBD0.59B42D1F
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello all,

=20

I'm trying to get nagiosgraph working, and it would appear that nagios = is
supplying unexpected perf data output.  I'm using nagios 2.0 (cvs), = and
according to the nagiosgraph debug log, much of the output is just a =
dollar sign ($).  I gave nagiostat a go as well, and it logged the exact =
same output, so it's not specific to nagiosgraph; it appears to be a =
nagios issue.

=20

Here is a sample of the nagiosgraph debug log:

=20

Mon Dec  6 13:53:00 2004 INSERT info: Input lastcheck:$

Mon Dec  6 13:53:00 2004 INSERT info: Input hostname:aceserver

Mon Dec  6 13:53:00 2004 INSERT info: Input perfdata:$

Mon Dec  6 13:53:00 2004 INSERT info: Input servicedescr:DISK_USAGE

Mon Dec  6 13:53:00 2004 INSERT info: Input output:$

Mon Dec  6 13:53:00 2004 INSERT warn: perfdata not recognized

=20

Clearly, some of the output - the "hostname" and "servicedescr" - is =
correct, but the other three fields are not.  I compiled with the =
"--with-default-perfdata" option, and have = "process_performance_data=3D1"
set in nagios.cfg .  I also enabled = performance data via cmd.cgi in the
nagios web interface, just for good = measure.  Still, I am getting only
$'s.  I'm missing something, I = suppose, but I have no idea what it is.
Any ideas or suggestions are = welcome!

=20

=20

Daniel Maher

System Engineer

ACE TECHNOLOGY INC.

100, boul. Alexis-Nihon, suite 593

St-Laurent (Qu=E9bec) H4M 2P1

Tel: 514-485-2307

Fax: 514-485-3494

HYPERLINK "mailto:dmaher at acetechnology.com"dmaher at acetechnology.com

HYPERLINK "http://www.acetechnology.com"www.acetechnology.com

=20

=20


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.802 / Virus Database: 545 - Release Date: 26/11/2004 =20

------_=_NextPart_001_01C4DBD0.59B42D1F
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"Street"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"address"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-CA link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Hello
all,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>I’m trying to get
nagiosgraph working, and it = would appear that nagios is supplying
unexpected perf data output.=A0 = I’m using nagios 2.0 (cvs), and
according to the nagiosgraph debug log, much of = the output is just a
dollar sign ($).=A0 I gave nagiostat a go as well, and = it logged the exact
same output, so it’s not specific to nagiosgraph; it = <i><span
style=3D'font-style:italic'>appears</span></i> to be a nagios =
issue.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Here is a sample of the
nagiosgraph debug = log:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Mon Dec=A0 6 13:53:00 2004
INSERT info: Input = lastcheck:$<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Mon Dec=A0 6 13:53:00 2004
INSERT info: Input hostname:aceserver<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Mon Dec=A0 6 13:53:00 2004
INSERT info: Input = perfdata:$<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Mon Dec=A0 6 13:53:00 2004
INSERT info: Input servicedescr:DISK_USAGE<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Mon Dec=A0 6 13:53:00 2004
INSERT info: Input = output:$<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Mon Dec=A0 6 13:53:00 2004
INSERT warn: perfdata not recognized<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>Clearly, some of the output
– the “hostname” and “servicedescr” – is
= correct, but the other three fields are not. =A0I compiled with the =
“--with-default-perfdata”
option, and have “process_performance_data=3D1” set in =
nagios.cfg . =A0I also enabled performance data via cmd.cgi in the nagios
web interface, = just for good measure. =A0Still, I am getting only
$’s.=A0 I’m = missing something, I suppose, but I have no idea
what it is. =A0Any ideas or = suggestions are
welcome!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><strong><b><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>Daniel =
Maher</span></font></b></strong><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>System
Engineer</span></font><o:p></o:p></p>

<p class=3DMsoNormal><strong><b><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>ACE TECHNOLOGY =
INC.</span></font></b></strong><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>100, boul. Alexis-Nihon,
<st1:address = w:st=3D"on"><st1:Street  w:st=3D"on">suite</st1:Street> =
593</st1:address></span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt; font-family:Arial'>St-Laurent (Qu=E9bec) H4M =
2P1</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Tel: 514-485-2307</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Fax: 514-485-3494</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><a href=3D"mailto:dmaher at acetechnology.com"><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>dmaher at acetechnology.com</sp=
an></font></a><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><a href=3D"http://www.acetechnology.com"><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>www.acetechnology.com</span>=
</font></a><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span><o:p></o:p></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>
<BR>

<P><FONT SIZE=3D2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (http://www.grisoft.com).<BR>
Version: 6.0.802 / Virus Database: 545 - Release Date: 26/11/2004<BR>
</FONT> </P>

------_=_NextPart_001_01C4DBD0.59B42D1F--


--__--__--

Message: 20
Date: Tue, 07 Dec 2004 09:38:18 +1300
From: Jan Scholten <Jan.Scholten at iconz.net>
To: Gary Lawrence Murphy <garym at canada.com>
CC: nagios <nagios-users at lists.sourceforge.net>
Subject: Re: [Nagios-users] Notifications not reaching me

Gary Lawrence Murphy schrieb:

I never used escalations, but don't you think you should register the
service OR give us the correct 
service definition (not the template)?

Jan

> I'm having some trouble understanding the notifications system; it's 
> probably just a misunderstanding about terminology, but the two 
> sections on notifications and notification escalations haven't offered 
> any clues as to why the following service does not escalate:
> 
> First, here's the service, and I know it works because I can trigger 
> it from a command line and it shows up correctly in the nagios web 
> display
> 
> define service {
>         use                             net-service
>         host_name                       f1
>         service_description             Log Output
>         contact_groups                  audit-trail
>         register                        0
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           5
>         retry_check_interval            1
>         notification_period             24x7
>         normal_check_interval           2
>         notification_options            w,u,c,r
>         check_command                   check_nrpe!check_log
> }
> 
> "check_log" is a simple plug-in that tests the mtime on the file, and 
> it's unimportant here because I have several other services that are 
> giving me similar notification problems.
> 
> here are the escalation rules:
> 
> define serviceescalation {
>         host_name                       f1
>         service_description             Log Output
>         first_notification              6
>         last_notification               9
>         contact_groups                  code-blue
>         notification_interval           0
> }
> 
> define serviceescalation {
>         host_name                       f1
>         service_description             Log Output
>         first_notification              10
>         last_notification               19
>         contact_groups                  code-yellow
>         notification_interval           0
> }
> 
> What I /expect/ to happen is for the normal check interval to be 5 
> minutes, so the first 3 checks (15 min) will be under the threshold to 
> trigger the first notification.  On the third failure, 15 minutes, I 
> expect a notice to the audit-trail, and I get one.
> 
> On the /sixth/ interval, ie at 30 minutes, I expect to get one and 
> only one notice sent to code-blue, and at the 10th, at 50 minutes past 
> the first detected failure, I expect to see another single notice out 
> to code-yellow.
> 
> But what I get (on the Extended display) is this:
> 
>     Current Status:   CRITICAL    
>     Status Information: CRITICAL - File age 10h 48m
>     Current Attempt:    3/3
>     State Type: HARD
>     Last Check Type:    ACTIVE
>     Last Check Time:    12-06-2004 14:51:52
>     Status Data Age:    0d 0h 1m 12s
>     Next Scheduled Active Check:    12-06-2004 14:53:52
>     Latency:    < 1 second
>     Check Duration: < 1 second
>     Last State Change:  12-06-2004 13:14:23
>     Current State Duration: 0d 1h 38m 41s
>     Last Service Notification:  12-06-2004 13:14:23
>     Current Notification Number:    1
>     Is This Service Flapping?   N/A
>     Percent State Change:   N/A
>     In Scheduled Downtime?        NO  
>     Last Update:    12-06-2004 14:53:03
> 
> It's an hour and a half past the last change in state, there's been no 
> notices and the current notification number is still listed as "1" -- 
> I'm assuming current notification is the number of notifications that 
> have been sent, which agrees with observation since there have been no 
> escalations.
> 
> Do I have an inappropriate use of the zero notification interval? Is 
> there something else gone wrong with my configuration?  I know that 
> notifications do work because we have some services where the alerts 
> are sent and no obvious difference between their definitions.
> 
> Also, I'm still attempting to duplicate the result in a test case, but 
> we had our notifications intervals set to 60, intending only one 
> message per hour to be sent while the service check interval was only 
> 5 minutes, but again, instead of an alert after 30 minutes, we 
> received the first alert after more than 300 minutes.
> 



--__--__--

Message: 21
From: "Stork, Johnny [PH]" <JStork at providencehealth.bc.ca>
To: nagios-users at lists.sourceforge.net
Date: Mon, 6 Dec 2004 13:02:57 -0800 
Subject: [Nagios-users] Compaq Smart Array Drives under Linux


I have had nagios 1.2 working for sometime and only recently added a new
Linux Server running Suse EL 9 with a Compaq Smartarray controller. Running
df shows the following dev entries

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/cciss/c0d0p2     68974336   3663072  65311264   6% /
tmpfs                   647660         8    647652   1% /dev/shm
/dev/cciss/c0d0p1        98747      6571     87077   8% /boot

But running Nagios from another machine (192.168.101.14) and trying to read
the drive/mnt status on the SuSE server (192.168.101.12) does not return any
values? Is the check_disk plugin only for a local drive? If so, is there
another plugin to monitor non-local drives on another server?

-----------------------------------------------------------
Johnny Stork
Information & Technology Manager
Provincial Blood Coordinating Office



--__--__--

Message: 22
To: Jan Scholten <Jan.Scholten at iconz.net>
Cc: nagios <nagios-users at lists.sourceforge.net>
Subject: Re: [Nagios-users] Notifications not reaching me
From: Gary Lawrence Murphy <garym at canada.com>
Organization: free software is good for children and other living things
Date: Mon, 06 Dec 2004 16:12:32 -0500
Reply-To: Gary Lawrence Murphy <garym at canada.com>

>>>>> "J" == Jan Scholten <Jan.Scholten at iconz.net> writes:

    J> I never used escalations, but don't you think you should
    J> register the service OR give us the correct service definition
    J> (not the template)?

I'm not at all sure I understand your question ...

define service {
        use                             net-service
        host_name                       f1
        service_description             Log Output
        contact_groups                  audit-trail
        ...
        check_command                   check_nrpe!check_log
}

isn't this the service description?  This is what I edit when I want to
register services and I definately see the check_log script being called in
the NRPE lines of the (Linux) kernel logs.

True, _net-service_ is a template, but I had taken the relevent lines from
/that/ template and inserted them in-line into this service definition so
the specification would be complete. net-service merely extends the default
template with shorter polling values.

Now I'm /really/ confused: if the above is not defining or registering my
service, then how could this service appear on the service detail and
extended information pages with these settings?

-- 
Gary Lawrence Murphy <garym at teledyn.com> ==============================
www.teledyn.com - blog.teledyn.com - irish.teledyn.com - sbp.teledyn.com
====================== The present moment is a powerful goddess (Goethe)


--__--__--

Message: 23
To: Jan Scholten <Jan.Scholten at iconz.net>
Cc: nagios <nagios-users at lists.sourceforge.net>
Subject: Re: [Nagios-users] Notifications not reaching me
From: Gary Lawrence Murphy <garym at canada.com>
Organization: free software is good for children and other living things
Date: Mon, 06 Dec 2004 16:14:39 -0500
Reply-To: Gary Lawrence Murphy <garym at canada.com>


Ah ... I see the confusion: I had inadvertently also inserted the "register
0" line from the net-service definition.

Please ignore that line, my bad.

-- 
Gary Lawrence Murphy <garym at teledyn.com> ==============================
www.teledyn.com - blog.teledyn.com - irish.teledyn.com - sbp.teledyn.com
====================== The present moment is a powerful goddess (Goethe)


--__--__--

Message: 24
To: Jan Scholten <Jan.Scholten at iconz.net>
Cc: nagios <nagios-users at lists.sourceforge.net>
Subject: Re: [Nagios-users] Notifications not reaching me
From: Gary Lawrence Murphy <garym at canada.com>
Organization: free software is good for children and other living things
Date: Mon, 06 Dec 2004 16:18:38 -0500
Reply-To: Gary Lawrence Murphy <garym at canada.com>

To be completely clear, here's the two definitions, the template and the
service, verbatim without my trying to be clever in merging them
;)

define service {
        use                             generic-service
        name                            net-service
        register                        0
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        notification_interval           0
        notification_period             24x7
}

define service {
        use                             net-service
        host_name                       f1, f3
        service_description             Log Output
        contact_groups                  audit-trail
        normal_check_interval           2
        notification_options            w,u,c,r
        check_command                   check_nrpe!check_log
}

-- 
Gary Lawrence Murphy <garym at teledyn.com> ==============================
www.teledyn.com - blog.teledyn.com - irish.teledyn.com - sbp.teledyn.com
====================== The present moment is a powerful goddess (Goethe)


--__--__--

Message: 25
To: nagios-users at lists.sourceforge.net
From: Wil Cooley <wcooley at nakedape.cc>
Date: Mon, 06 Dec 2004 13:32:10 -0800
Organization: Naked Ape Consulting, Ltd. <http://nakedape.cc>
Subject: [Nagios-users] Re: Templates for Web Interface

On Thu, 02 Dec 2004 15:21:55 -0200, Leonardo Henrique Machado wrote:

> Is there any project developing other templates for the Nagios web 
> interface?

This is the only one I've seen:

http://nagios-php.sourceforge.net/

Personally, I'd like to see one in Perl using Template Toolkit, considering
that there are already a handful of Perl modules for reading Nagios
configuration and status files. But, lacking the time and motivation to do
it myself, I can't complain.

Wil
-- 
Wil Cooley                                 wcooley at nakedape.cc
Naked Ape Consulting                        http://nakedape.cc
* * * * Linux, UNIX, Networking and Security Solutions * * * *

"Sufficiently advanced cluelessness is indistinguishable from malice." 
 -- Alex Martelli





--__--__--

Message: 26
Subject: RE: [Nagios-users] Re: Templates for Web Interface
Date: Mon, 6 Dec 2004 14:38:53 -0700
From: "Nathan Oyler" <noyler at khimetrics.com>
To: "Wil Cooley" <wcooley at nakedape.cc>,
	<nagios-users at lists.sourceforge.net>

Have you had any experience running nagios-php? I was looking through the
project today and it didn't seem very together.

I wanted to know if anyone had used it. What, if any advantages it gave
them.

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-  
>admin at lists.sourceforge.net] On Behalf Of Wil Cooley
> Sent: Monday, December 06, 2004 2:32 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Re: Templates for Web Interface
>=20
> On Thu, 02 Dec 2004 15:21:55 -0200, Leonardo Henrique Machado wrote: 
>=20
> > Is there any project developing other templates for the Nagios web 
> > interface?
>=20
> This is the only one I've seen:
>=20
> http://nagios-php.sourceforge.net/
>=20
> Personally, I'd like to see one in Perl using Template Toolkit,  
>considering that there are already a handful of Perl modules for
reading
> Nagios configuration and status files. But, lacking the time and  
>motivation to do it myself, I can't complain. =20
> Wil
> --
> Wil Cooley                                 wcooley at nakedape.cc
> Naked Ape Consulting                        http://nakedape.cc
> * * * * Linux, UNIX, Networking and Security Solutions * * * *
>=20
> "Sufficiently advanced cluelessness is indistinguishable from malice."
>  -- Alex Martelli
>=20
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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





--__--__--

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


End of Nagios-users Digest



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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