Nagios-users digest, Vol 1 #1749 - 25 msgs
Gaurav Prasad
paggux2000 at yahoo.com
Sat Nov 15 07:54:41 CET 2003
Hi Guys,
I want to use Nagios as platform to develop customized applications/plugins to develop customized monitoring and scheduling solution for our customer
I am very exited about NXE (Nagios XML Engine), but how good is Nagios as development platform and scheduling platform
Plz share your eperiences
Is there any good Nagios (plugin) developer resources, How-to plz sgare
Thanks in advance,
gaurav
nagios-users-request at lists.sourceforge.net wrote:
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. Using SEC with Nagios for SNMP trap processing (Noah Leaman)
2. Re: New to nagios (Jim Mozley)
3. check_nt memuse - can I separate RAM from swap (Michal.Mazurek at avon.com)
4. Re: Newbie - Windows diskspace (Michael =?iso-8859-1?q?H=FCttig?=)
5. Nagios Macros (Marco Ramos)
6. Respond to pages (Carl Schelin)
7. RE: check_nt memuse - can I separate RAM from swap (VanZee, Timothy)
8. RE: check_nt memuse - can I separate RAM from swap (Randal, Phil)
9. RE: NRPE on AIX (d.deboni at edexter.it)
10. RE: check_nt memuse - can I separate RAM from swap (Phil Costelloe)
11. How many passive service check results per second ? (Verstege, Bernhard)
12. Notification Specifics on V1.1 (-)
13. check_apc_ups.pl errors (Jon Lyons)
14. Whoops! (Ramon torres)
15. $ARGx$ (Valiente G. Humberto)
16. Re: Re: parent outages - behaviour for children? (Dan Stromberg)
17. RE: $ARGx$ (Marc Powell)
18. RE: Notification Specifics on V1.1 (Marc Powell)
19. Re: Re: parent outages - behaviour for children? (Matt Pounsett)
20. RE: How many passive service check results per second ? (Marc Powell)
21. Byzantine configs? Or am I doing it wrong? (Jeremy Madea)
22. Re: check_apc_ups.pl errors (Subhendu Ghosh)
23. How can I query nagios? (Massimo Bandinelli)
24. RE: How can I query nagios? (David Olbersen)
25. Re: Hosts and Hostgroups (Justin Fitzhugh)
--__--__--
Message: 1
Date: Fri, 14 Nov 2003 00:19:00 -0800
From: Noah Leaman
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Using SEC with Nagios for SNMP trap processing
I am thrilled with the prospect of using SEC to process SNMP traps, but
I am wondering the best way to send the received trap(s) to sec.pl.
Should I setup a "traphandle default" in snmptrapd.conf to pipe each
trap separately to SEC, or use the traphandle to append to a log file
then have that log file read by SEC. If it is the latter, then how or
when does SEC get instantiated so it can read the file and how does
being able to perform time-based correlation come into play with how
the traps are read by SEC?
I know I am missing a part of the puzzle here. Otherwise I think I
understand how to integrate SEC into Nagios as far as setting up the
passive service and using SEC to write to nagios.cmd.
--
Noah
--__--__--
Message: 2
Date: Fri, 14 Nov 2003 10:03:12 +0000
From: Jim Mozley
Organization: Exponential-e
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] New to nagios
Sullivan, Robert (HQP) wrote:
> Does anyone have an example of this?
is difficult to read ;-)
Top posting...
> You'll have to specify every host you want to monitor in the hosts file,
> but the idea behind templating is that you make one template for each
> 'class' of hosts, then write some very small entries of each. So, if you
> have some sun servers, you create a template that defines everything about
> a generic server. You then write a small awk script to take the list of
> hostnames you want to monitor and have it spit out a small host entry that
> also invokes the template.
I use some perl to query switches and define ports as services, so that
as new ports are brought into use they are added to Nagios. I guess one
could do something similar for system hosts and the services run on
them. If it would help I can send you an example but you would have to
wade through perl and modify it to be useful.
Jim
--__--__--
Message: 3
To: nagios-users at lists.sourceforge.net
From: Michal.Mazurek at avon.com
Date: Fri, 14 Nov 2003 11:39:56 +0100
Subject: [Nagios-users] check_nt memuse - can I separate RAM from swap
Hi
When I use check_nt to see the memory usage I get the overall value of RAM
and swap. This isn't really helpfull because there is no way that the
system can use entire swap - especially when there's about 500MB
dynamically assigned. Is there a way to configure nagios or the NT 4.0
server to see RAM and swap info separatly?
Regards
Michal Mazurek
--__--__--
Message: 4
From: Michael =?iso-8859-1?q?H=FCttig?=
Organization: Medien Systempartner GmbH
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Newbie - Windows diskspace
Date: Fri, 14 Nov 2003 13:19:09 +0100
hi,
yes, no problem, use nsclient
works fine ...
Regards
Michael
Am Donnerstag, 13. November 2003 17:29 schrieb Tom.Corcoran at meridianp2p.com:
> Hi All
>
> Just a quickie, Can Nagios monitor a windows server diskspace by
> driveletter and also can the free diskspace be measured against a
> threshold?
>
>
> Regards
>
> Tom Corcoran
> IT Dept.
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.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
**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
www.mimesweeper.com
**********************************************************************
--__--__--
Message: 5
Date: Fri, 14 Nov 2003 12:42:42 -0000
From: "Marco Ramos"
To:
Subject: [Nagios-users] Nagios Macros
Hi,
Is there any macro associated to the logged in user? When some of my =
Nagios users acknowlege a messsage, I would like the mail sent by Nagios =
to show whose user has done it. Is there any way to do this using =
macros?
TIA,
Marco Ramos
--__--__--
Message: 6
From: Carl Schelin
To: nagios-users at lists.sourceforge.net
Organization: SAIC
Date: 14 Nov 2003 08:21:20 -0500
Subject: [Nagios-users] Respond to pages
I did a quick search of the mailing list archives and didn't find
anything.
Before I start on this, I'd like to see if anyone has done something
similar.
Currently I have pages going to our admins skytel accounts. I'd like
them to reply with an "Ok" or "Thank You" (two default options) which
would go to nagios on the server. Then a procmail script (for example)
would take those replies and, if an "Ok" page was returned, disable
further pages. One additional page would go out to the page group
indicating the admin who said "Ok" would handle the incident.
Perhaps "Thank You" would page out acknowledgement of the page to the
page group members.
Anyway, has any work on such a beast been done? Is someone else perhaps
working on this idea and I can test?
Thanks,
Carl
--__--__--
Message: 7
Subject: RE: [Nagios-users] check_nt memuse - can I separate RAM from swap
Date: Fri, 14 Nov 2003 08:03:38 -0600
From: "VanZee, Timothy"
To: ,
To answer your question: I don't know.
However, what I did was to figure out the percent usage that would equal
the value I was looking for less the swap space. Here's an example,
because that is worded so poorly.
I have 1 gig of RAM and a 2 gig swap or pagesys. Total that is 3 gig.
However, I want to know when my RAM reaches 75% utilization. So take
the 768 MB, plus your minimum pagesys size (for me 2048 MB) and you get
2816 which is 92%. Maybe I've got some bad logic here, but I'm sure
I'll hear about it if I do.
Tim Van Zee
ITS Network Specialist
Governors State University
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
Michal.Mazurek at avon.com
Sent: Friday, November 14, 2003 4:40 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_nt memuse - can I separate RAM from swap
Hi
When I use check_nt to see the memory usage I get the overall value of
RAM
and swap. This isn't really helpfull because there is no way that the
system can use entire swap - especially when there's about 500MB
dynamically assigned. Is there a way to configure nagios or the NT 4.0
server to see RAM and swap info separatly?
Regards
Michal Mazurek
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.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.=20
::: Messages without supporting info will risk being sent to /dev/null
--__--__--
Message: 8
From: "Randal, Phil"
To: "'Michal.Mazurek at avon.com'" ,
nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] check_nt memuse - can I separate RAM from swap
Date: Fri, 14 Nov 2003 14:34:35 -0000
I use a simple KiXtart script run via nrpe_nt to return that info.
Details are here:
http://support.tsmgsoftware.com/viewtopic.php?t=42
Cheers,
Phil
---------------------------------------------
Phil Randal
Network Engineer
Herefordshire Council
Hereford, UK
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of
> Michal.Mazurek at avon.com
> Sent: 14 November 2003 10:40
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_nt memuse - can I separate RAM from swap
>
>
> Hi
>
> When I use check_nt to see the memory usage I get the overall
> value of RAM
> and swap. This isn't really helpfull because there is no way that the
> system can use entire swap - especially when there's about 500MB
> dynamically assigned. Is there a way to configure nagios or the NT 4.0
> server to see RAM and swap info separatly?
>
> Regards
> Michal Mazurek
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.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
>
--__--__--
Message: 9
From: d.deboni at edexter.it
To: Ewan Leith
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] NRPE on AIX
Date: Fri, 14 Nov 2003 16:44:06 +0100
This is a multipart message in MIME format.
--=_alternative 00566F0EC1256DDE_=
Content-Type: text/plain; charset="US-ASCII"
>>>>checking whether the C compiler (cc ) is a cross-compiler... yes
>>>
>>That's your problem, the C compiler is wrong. It shouldn't be a
>>cross-compiler
Hi, that's true!
Now I've downloaded the gcc compiler for AIX from this site
(www.bullfreeware.com).
But is doesn't work because of this:
0509-036 Cannot load program gcc because of the following errors:
0509-150 Dependent module libintl.a(shr.o) could not be loaded.
0509-022 Cannot load module libintl.a(shr.o).
0509-026 System error: A file or directory in the path name does
not exist.
I have installed another packet (gettext) from this site
http://aixpdslib.seas.ucla.edu/packages/gettext.html
and now I get this other error :(
exec(): 0509-036 Cannot load program gcc because of the following errors:
0509-150 Dependent module /usr/local/lib/libintl.a(shr.o) could
not be loaded.
0509-152 Member shr.o is not found in archive
Davide De Boni
Email: d.deboni at edexter.it
e.Dexter S.P.A.
C.so Risorgimento 5
28823 Ghiffa (VB)
ITALIA
Tel +39.0323.407733
Fax +39.0323.53558
--=_alternative 00566F0EC1256DDE_=
Content-Type: text/html; charset="US-ASCII"
>>>>checking whether the C compiler (cc
) is a cross-compiler... yes
>>>
>>That's your problem, the C compiler is wrong. It shouldn't be a
>>cross-compiler
Hi, that's true!
Now I've downloaded the gcc compiler for AIX from
this site (www.bullfreeware.com).
But is doesn't work because of this:
0509-036 Cannot load program gcc because of the following
errors:
0509-150 Dependent
module libintl.a(shr.o) could not be loaded.
0509-022 Cannot load module
libintl.a(shr.o).
0509-026 System error:
A file or directory in the path name does not exist.
I have installed another packet (gettext) from this
site
http://aixpdslib.seas.ucla.edu/packages/gettext.html
and now I get this other error :(
exec(): 0509-036 Cannot load program gcc because of
the following errors:
0509-150 Dependent
module /usr/local/lib/libintl.a(shr.o) could not be loaded.
0509-152 Member
shr.o is not found in archive
Davide De Boni
Email: d.deboni at edexter.it
e.Dexter S.P.A.
C.so Risorgimento 5
28823 Ghiffa (VB)
ITALIA
Tel +39.0323.407733
Fax +39.0323.53558
--=_alternative 00566F0EC1256DDE_=--
--__--__--
Message: 10
Subject: RE: [Nagios-users] check_nt memuse - can I separate RAM from swap
Date: Fri, 14 Nov 2003 16:22:10 -0000
From: "Phil Costelloe"
To:
> From: Michal.Mazurek at avon.com [mailto:Michal.Mazurek at avon.com]=20
>=20
> When I use check_nt to see the memory usage I get the overall=20
> value of RAM and swap. This isn't really helpfull because=20
> there is no way that the system can use entire swap -=20
> especially when there's about 500MB dynamically assigned. Is=20
> there a way to configure nagios or the NT 4.0 server to see=20
> RAM and swap info separatly?
NSClient is dependent on the available Windows performance
counters. The normal ones are a rather odd bunch, none of
which seem to be able to answer the simple question "how
much physical memory is being used?".
You can ask "how much physical memory is left?" by using
-v COUNTER -l "\\Memory\\Available Mbytes"
in your check_nt command. You can also use "Available
Bytes" and "Available Kbytes".
The explanation of the counter is ... "Available MBytes is the
amount of physical memory available to processes running on the
computer, in Megabytes (Bytes / 1,048,576). It is calculated
by summing space on the Zeroed, Free, and Stand by memory
lists. Free memory is ready for use; Zeroed memory are pages
of memory filled with zeros to prevent later processes from
seeing data used by a previous process. Standby memory is
memory removed from a process' working set (its physical
memory) on route to disk, but is still available to be
recalled. This counter displays the last observed value
only; it is not an average."
Phil
--__--__--
Message: 11
Date: Fri, 14 Nov 2003 18:11:50 +0100
From: "Verstege, Bernhard"
To: "NAGIOS"
Subject: [Nagios-users] How many passive service check results per second ?
Hi,
we have set up Nagios with ditributed monitoring.
The Nagios-Master gets only passive service check results
fron the distributed monitors (about 8000 per hour)
and does not run any eventhandler.
We see a lot of failed send-nsca commands on the disributed monitors
and the external command file at the master is most of the time
nearly 4k big (is this the maximum for a FIFO-stack ?)
Setting the command check interval to 2s results in an increasing
number of nagios processes, but the external command file becomes
only 1.5k big and most send-nsca are successful.
What is the maximum number of passive service check results nagios
can handle ? It is running on a dual PII 1,26Ghz with 1GB RAM.
Thanks
Bernhard
--__--__--
Message: 12
Date: Fri, 14 Nov 2003 11:51:18 -0800 (PST)
From: -
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Notification Specifics on V1.1
Afternoon,
Running Nagios on an OS X.2.8 server. Runs fine,
however all the talk about send mail and the
alternatives has me curious how Nagios actually
forwards notifications. I'm assuming Nagios utilizes
the misccommands.cfg but I would like to know if can
simply call to any email program for notifications.
For example, this install of nagios is deployed in a
university enviroment and establishing sendmail or
alternative would be completly redundant with the
university supporting mail services. Or my
inexperience with sendmail has me confused.
I can't imagine that I'm the only one with the
privilege and perhaps the pitfall of a managed mail
service. With that said, I simply want nagios to
forward notifications to a unix based email program
(mta) which will email the notifications via the
university smtp server.
I believe i have provided enough information so I look
forward to the responses.
Regards
axiom
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--__--__--
Message: 13
Date: Fri, 14 Nov 2003 12:14:41 -0800 (PST)
From: Jon Lyons
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_apc_ups.pl errors
--0-2139179332-1068840881=:79181
Content-Type: text/plain; charset=us-ascii
I get this error when attempting to execute check_apc_ups.pl, do I need a perl module or something? Perl doesn't seem to like the "use lib uitls.pm" command....
fwlogs# ./check_apc_ups.pl
Bareword "utils" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
Bareword "pm" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
BEGIN not safe after errors--compilation aborted at ./check_apc_ups.pl line 16.
use strict;
use Getopt::Long;
use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r $opt_L $opt_l $PROGNAME);
use lib utils.pm;
use utils qw(%ERRORS &print_revision &support &usage);
sub print_help ();
sub print_usage ();
sub get_snmp_int_val ($);
sub escalate_exitval ($);
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-2139179332-1068840881=:79181
Content-Type: text/html; charset=us-ascii
I get this error when attempting to execute check_apc_ups.pl, do I need a perl module or something? Perl doesn't seem to like the "use lib uitls.pm" command....
fwlogs# ./check_apc_ups.pl
Bareword "utils" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
Bareword "pm" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
BEGIN not safe after errors--compilation aborted at ./check_apc_ups.pl line 16.
use strict;
use Getopt::Long;
use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r $opt_L $opt_l $PROGNAME);
use lib utils.pm;
use utils qw(%ERRORS &print_revision &support &usage);
sub print_help ();
sub print_usage ();
sub get_snmp_int_val ($);
sub escalate_exitval ($);
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-2139179332-1068840881=:79181--
--__--__--
Message: 14
From: Ramon torres
To: nagios-users at lists.sourceforge.net
Organization:
Date: 14 Nov 2003 15:15:46 -0500
Subject: [Nagios-users] Whoops!
yo instale nagios y ya esta corriendo, cuando verifico antes de iniciar
me dice que no hay problemas ninguno, 0 errores y 0 warnings, cuando lo
arranco me dice
No lock file found in /usr/local/nagios/var/nagios.lock
al parecer arranca sin problemas
en la interface web, la parte de la ayuda funciona sin problemas, pero
la parte de los cgi, no funciona bien, me sale el cartel que dice
Whoops!
The most common cause of this error message (especially for new users),
is the fact that Nagios is not actually running. If Nagios is indeed not
running, this is a normal error message. It simply indicates that the
CGIs could not obtain the current status of hosts and services that are
being monitored. If you've just installed things, make sure you read the
documentation on starting Nagios.
Some other things you should check in order to resolve this error
include:
Check the Nagios log file for messages relating to startup or status
data errors.
Always verify configuration options using the -v command-line option
before starting or restarting Nagios!
Make sure you've compiled the main program and the CGIs to use the same
status data storage options (i.e. text file or database). If the main
program is storing status data in a text file and the CGIs are trying to
read status data from a database, you'll have problems.
Make sure you read the documentation on installing, configuring and
running Nagios thoroughly before continuing. If all else fails, try
sending a message to one of the mailing lists. More information can be
found at http://www.nagios.org.
--__--__--
Message: 15
To: Nagios-users at lists.sourceforge.net
Date: Fri, 14 Nov 2003 13:33:57 -0800
From: "Valiente G. Humberto"
Reply-To: hvg05 at terra.com
Organization: Correo (http://www.mail.terra.com:80)
Subject: [Nagios-users] $ARGx$
I would like to now where are defined the format for the argumentes on every check_command. Where I can find any docummentation on it??
___________________________________________________
¡LOS CHISMES AHORA TE LLEGAN AL INSTANTE!
¡Nuevo TERRA MESSENGER, Gratis, en Inglés, Español o Portugués!
http://im.terra.com
--__--__--
Message: 16
Subject: Re: [Nagios-users] Re: parent outages - behaviour for children?
From: Dan Stromberg
To: Tedman Eng
Cc: Dan Stromberg ,
nagios-users at lists.sourceforge.net
Organization:
Date: 12 Nov 2003 08:34:22 -0800
--=-9AuZAk0/8XvpaNor8ipt
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Mon, 2003-11-10 at 20:27, Tedman Eng wrote:
> If there are
> 2 parents, both must be down before children are "Unreacchable" status.
Hm. Maybe this is why my parents aren't working as I'd hoped.
Are you saying that if I have:
nagios host -> router1 -> router2 -> router3 -> monitored host
...and router1 is a parent of router2, and router2 is a parent of
router3, and router3 is a parent of monitored host, then all four have
to be down before nagios will mark monitored host as unreachable?
If that's the case, then I'm getting rid of router1 and router2 from my
setup.
Or do you mean:
router1 -
\
- monitored host
/
router2 -
?
--=20
Dan Stromberg DCS/NACS/UCI
--=-9AuZAk0/8XvpaNor8ipt
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA/smEOo0feVm00f/8RAjgYAJ9qfSvmyB7AxrjIOZN+BbWVLFRf8gCfRFFV
rYBANmadhwBAXECP+PjvOn8=
=C70j
-----END PGP SIGNATURE-----
--=-9AuZAk0/8XvpaNor8ipt--
--__--__--
Message: 17
Subject: RE: [Nagios-users] $ARGx$
Date: Fri, 14 Nov 2003 15:58:38 -0600
From: "Marc Powell"
To: ,
> -----Original Message-----
> From: Valiente G. Humberto [mailto:hvg05 at terra.com]
> Sent: Friday, November 14, 2003 3:34 PM
> To: Nagios-users at lists.sourceforge.net
>=20
> I would like to now where are defined the format for the argumentes on
> every check_command. Where I can find any docummentation on it??
>=20
You're asking two different questions. The arguments for each check
command are specific to that command. For example, running check_http
--help shows all the possible command arguments for check_http which are
very different than for check_ntp (check_ntp --help). You may or may not
need/want to use $ARGx$ macro substitution for one or more of the
command options entirely at your discretion.
$ARGx$ macros are not complicated. The only documentation that should be
necessary is=20
http://nagios.sourceforge.net/docs/1_0/configmain.html#resource_file
and the examples in resource.cfg.
http://nagios.sourceforge.net/docs/1_0/macros.html shows where you can
use each of the pre-defined macros and the user specified $ARGx$ macros
(at the bottom).
--
Marc=20
--__--__--
Message: 18
Subject: RE: [Nagios-users] Notification Specifics on V1.1
Date: Fri, 14 Nov 2003 16:03:41 -0600
From: "Marc Powell"
To: "-" ,
Nagios doesn't speak SMTP so it needs to pass the email off to some
program on your linux box that can do mail delivery. Typically this is
/bin/mail which then processes it with whatever SMTP daemon it is
configured to use (typically sendmail). You have two primary options:
1) configure sendmail or other MTA on your linux box to smarthost to
your managed mail servers or
2) http://www.nagios.org/faqs/viewfaq.php?faq_id=3D150=20
--
Marc
> -----Original Message-----
> From: - [mailto:axiomgrid at yahoo.com]
> Sent: Friday, November 14, 2003 1:51 PM
> To: nagios-users at lists.sourceforge.net
>=20
> Afternoon,
>=20
> Running Nagios on an OS X.2.8 server. Runs fine,
> however all the talk about send mail and the
> alternatives has me curious how Nagios actually
> forwards notifications. I'm assuming Nagios utilizes
> the misccommands.cfg but I would like to know if can
> simply call to any email program for notifications.
>=20
> For example, this install of nagios is deployed in a
> university enviroment and establishing sendmail or
> alternative would be completly redundant with the
> university supporting mail services. Or my
> inexperience with sendmail has me confused.
>=20
> I can't imagine that I'm the only one with the
> privilege and perhaps the pitfall of a managed mail
> service. With that said, I simply want nagios to
> forward notifications to a unix based email program
> (mta) which will email the notifications via the
> university smtp server.
>=20
> I believe i have provided enough information so I look
> forward to the responses.
>=20
> Regards
>=20
> axiom
--__--__--
Message: 19
Date: Fri, 14 Nov 2003 17:14:31 -0500 (EST)
From: Matt Pounsett
To: Dan Stromberg
cc: Tedman Eng ,
Subject: Re: [Nagios-users] Re: parent outages - behaviour for children?
On 12 Nov 2003, Dan Stromberg wrote:
> On Mon, 2003-11-10 at 20:27, Tedman Eng wrote:
> > If there are
> > 2 parents, both must be down before children are "Unreacchable" status.
>
> Or do you mean:
>
> router1 -
> \
> - monitored host
> /
> router2 -
This.
The logic is that if router1 is down, monitored host should still be reachable
via router2, and so both routers must be down for Nagios to consider monitored
host to be unreachable.
--
Matt Pounsett CIRA - Canadian Internet Registration Authority
Technical Support Programmer 350 Sparks Street, Suite 1110
matt.pounsett at cira.ca Ottawa, Ontario, Canada
613.237.5335 ext. 231 http://www.cira.ca
--__--__--
Message: 20
Subject: RE: [Nagios-users] How many passive service check results per second ?
Date: Fri, 14 Nov 2003 16:17:24 -0600
From: "Marc Powell"
To: "Verstege, Bernhard" ,
"NAGIOS"
> -----Original Message-----
> From: Verstege, Bernhard [mailto:Bernhard.Verstege at iwr.fzk.de]
> Sent: Friday, November 14, 2003 11:12 AM
> To: NAGIOS
>=20
> Hi,
>=20
> we have set up Nagios with ditributed monitoring.
> The Nagios-Master gets only passive service check results
> fron the distributed monitors (about 8000 per hour)
> and does not run any eventhandler.
>=20
> We see a lot of failed send-nsca commands on the disributed monitors
> and the external command file at the master is most of the time
> nearly 4k big (is this the maximum for a FIFO-stack ?)
>=20
> Setting the command check interval to 2s results in an increasing
> number of nagios processes, but the external command file becomes
> only 1.5k big and most send-nsca are successful.
>=20
> What is the maximum number of passive service check results nagios
> can handle ? It is running on a dual PII 1,26Ghz with 1GB RAM.
I believe that someone did some type of calculation for this last year.
For what it's worth, I have 2559 services at 5 minute intervals (all
passive using 4 data collectors reporting all checks to 2 centralized
host for duplication) which equates to about 31,000 per hour and nagios
doesn't even break a sweat. It's currently running on a quad P3 500mhz
with a gig of ram but nagios rarely uses significant resources on the
box and I've had it running on lesser boxen.
Passive Checks: Time Frame Checks Completed=20
<=3D 1 minute: 219 (8.6%)=20
<=3D 5 minutes: 2545 (99.5%)=20
<=3D 15 minutes: 2559 (100.0%)=20
<=3D 1 hour: 2559 (100.0%)=20
Since program start: 2559 (100.0%)=20
=20
You don't say how often you are checking your services and that will
have a _big_ impact on nagios performance. If I were doing the same
checks above at 1 minute intervals I'd probably be killing nagios. Some
of my pertinent nagios.cfg settings are below --
service_reaper_frequency=3D5
retention_update_interval=3D5
aggregate_status_updates=3D1
command_check_interval=3D-1
--
Marc
--__--__--
Message: 21
From: Jeremy Madea
To: nagios-users at lists.sourceforge.net
Date: Fri, 14 Nov 2003 15:10:13 -0800
Subject: [Nagios-users] Byzantine configs? Or am I doing it wrong?
We have eight backup servers in several different locations. We've got
multiple people responsible for their care and feeding. We want to check
pings to all of these servers and ssh access to some of them. Some of the
servers are more critical than others and -one- guy gets paged if these
aren't pingable.
So, I add all this to Nagios...
* A contact for each back admin including a separate pager contact for the
guy who gets pages.
* A contact group that includes the backup admins.
* A separate contact group that only includes the pager contact.
* Host entries for each of the 8 servers.
* A hostgroup so that the backup-admins can see their servers grouped nicely
together in the web interface.
* A ping service containing the hosts that we don't want to send pages for.
* A ping service containing the hosts that we do want to send page for.
* An ssh service containing the hosts that we need to check ssh on.
Am I making it harder than it needs to be?
-j
--
Jeremy Madea
--__--__--
Message: 22
Date: Fri, 14 Nov 2003 18:24:32 -0500 (EST)
From: Subhendu Ghosh
To: Jon Lyons
cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] check_apc_ups.pl errors
utils.pm is normally fixed by the configure/make process.
change the "use lib utils.pm;" line to point to the directory containging
utils.pm - usually "use lib /usr/local/nagios/libexec;"
-sg
On Fri, 14 Nov 2003, Jon Lyons wrote:
> I get this error when attempting to execute check_apc_ups.pl, do I need a perl module or something? Perl doesn't seem to like the "use lib uitls.pm" command....
>
>
> fwlogs# ./check_apc_ups.pl
> Bareword "utils" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
> Bareword "pm" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
> BEGIN not safe after errors--compilation aborted at ./check_apc_ups.pl line 16.
>
> use strict;
> use Getopt::Long;
> use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r $opt_L $opt_l $PROGNAME);
> use lib utils.pm;
> use utils qw(%ERRORS &print_revision &support &usage);
> sub print_help ();
> sub print_usage ();
> sub get_snmp_int_val ($);
> sub escalate_exitval ($);
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
--
--__--__--
Message: 23
Date: Sat, 15 Nov 2003 00:37:40 +0100
From: "Massimo Bandinelli"
To:
Subject: [Nagios-users] How can I query nagios?
Hi!
I need to query nagios about the status of services, but an host
different from the nagios host.
Is there a command with this function??
Es.:
# check_service_status
# check_service_status mynagios.foo.it dns.foo.it DNS
STATUS OK (exit 0)
Thanks, Massimo.
Massimo Bandinelli
System Administrator
---------------------------------------
Register.it S.p.A. - Gruppo DADA
tel +39 199 REGIST (+39 199 734478)
fax +39 035 3230312
http://we.register.it
mailto:we at register.it
=20
=09
--__--__--
Message: 24
Subject: RE: [Nagios-users] How can I query nagios?
Date: Fri, 14 Nov 2003 16:39:52 -0800
From: "David Olbersen"
To: "Massimo Bandinelli" ,
Massimo Bandinelli wrote:
> Hi!
>=20
> I need to query nagios about the status of services, but an host
> different from the nagios host.
>=20
> Is there a command with this function??
>=20
> Es.:
>=20
> # check_service_status
>=20
> # check_service_status mynagios.foo.it dns.foo.it DNS
> STATUS OK (exit 0)
Massimo,
There's no such thing that I've found. The solution I've taken is having =
an event handler create a zero-byte file on the machine that's =
concerned.
For example:
- Monitor machine A's disk space because machine B needs to put stuff =
there
- Write an event handler so that if A.disk goes critical, write a 0 byte =
file on machine B=20
(like /var/tmp/a_disk_full) saying so. When the service goes back to =
normal, rm the file.
- Update whatever program needs to know, to look for that file.
I think it'll work just fine.
--=20
David Olbersen
iGuard Engineer
St. Bernard Software
15015 Avenue of Sciences
San Diego, CA 92127
x2152
--__--__--
Message: 25
From: Justin Fitzhugh
Subject: Re: [Nagios-users] Hosts and Hostgroups
Date: Fri, 14 Nov 2003 20:12:17 -0800
To: jeff vier ,
nagios-users
Does this mean that in 2.x you will be able to have sub-groups (groups
members of other groups)?
-Justin
On Nov 13, 2003, at 3:32 PM, jeff vier wrote:
> Not in 1.x
>
> On Thu, 2003-11-13 at 16:33, Chuck McIntyre wrote:
>> Also, is there any way to make a hostgroup be a member of another
>> hostgroup?
>>
>> -----Original Message-----
>> From: nagios-users-admin at lists.sourceforge.net
>> [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jack
>> Doyle
>> Sent: Thursday, November 13, 2003 1:23 PM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] Hosts and Hostgroups
>>
>>
>> Can a single host be a member of more than one hostgroup?
>>
>> -----
>> John N. Doyle, Systems Operations Specialist
>> Lewis-Gale Clinic Information Systems
>>
>> 540.772.3669 > jdoyle at lewisgaleclinic.com
>>
>>
>> -------------------------------------------------------
>> This SF.Net email sponsored by: ApacheCon 2003,
>> 16-19 November in Las Vegas. Learn firsthand the latest
>> developments in Apache, PHP, Perl, XML, Java, MySQL,
>> WebDAV, and more! http://www.apachecon.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
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.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
:*~*:._.:*P*:._.:*a*:._.:*G*:._.:*u*:._.:*X*:._.:*~*:
_
|E]
.-|=====-.
| | MAIL |
|________|___
||
||<---- www.Gauravinfo.8k.com ---->
|| www www
www|| )_(,;;;, ,;,\_/ www
)_( || \|/ \_/ )_(\| (_)
\| \ || /\\|/ |/ \| \|// |
___\|//_||//_\V/_\|//_______\\|//V/\\|/__
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031114/2882d598/attachment.html>
More information about the Users
mailing list