Re: [Nagios-users-br] Dúvida avisos Nagios2

2008-03-03 Thread Rafael Turazzi
Beleza Amigo, vou fazer os testes. Obrigado pela ajuda.

Em 01/03/08, Vinícius de Figueiredo Silva [EMAIL PROTECTED] escreveu:

 Na configuração do host [1] você pode escolher notification_options
 com os valores d, u, r, f que significam Down, Unreachable, Recovery e
 Flapping respectivamente. Se você colocar d, r ele vai avisar quando o
 host cair e quando ele voltar.

 [1] http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host


 On Fri, Feb 29, 2008 at 10:56 AM, Rafael Turazzi
 [EMAIL PROTECTED] wrote:
  Bom dia pessoal!
 
   Sou novato no Nagios e estou com uma dúvida.
   Instalei o Nagios2, esta funcionando perfeitamente. quero saber o
 seguinte,
   quero que ele enviei e-mail apenas quando o host ficar Down e quando
 ficar
   UP, existe esta possibilidade? Configurei algumas coisa mas ele envia
 e-mail
   apenas com o host Down, quando sobe novamente ele não me avisa.
 
   Se puderem me ajudar agradeço.
 
   Att,
 
   Rafael


   -
   This SF.net email is sponsored by: Microsoft
   Defy all challenges. Microsoft(R) Visual Studio 2008.
   http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   --
   Nagios-users-br@lists.sourceforge.net mailing list
   https://lists.sourceforge.net/lists/listinfo/nagios-users-br
   Wiki: http://nagios-br.sf.net/wiki
 



 --
 Vinícius.
 personal site - http://vinicius.oitobits.net
 gaming blog - http://www.oitobits.net

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/

 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


[Nagios-users] Antwort: Re: Antwort: Re: Fwd: plugin for iostat readings?

2008-03-03 Thread Sascha . Runschke
Mike Hamrick [EMAIL PROTECTED] schrieb am 02.03.2008 14:13:51:

  You need to call iostat with multiple checks - the longer the better -
  but then it means you would have to run iostat for like 30 seconds or
  so - plugin runtime is 30 seconds too then! That means that check
  would have a high delay/latency, which is overall a bad idea. My
  solution so far is to run the plugin via cron and report output via
  nsca, this gave me the best results.
 
 One thing you might want to consider is using sadc/sar for this job.
 The sadc(8) program collects all kinds of stats on OS resource usage
 and if you explicitly ask it, it will capture some interesting
 disk i/o stats, including read/write requests per second.

I actually have considered this, but found sadc not feasable for
my intents. I am not interested in general iowait, but more in
bandwidth usage of actual devices. Most of our high load servers
have 3 SAN connections and it's important to know _which_ of those
is under high stress and especially the performance data of
those statistics to determine upcoming problems.

At least I haven't been able to get sadc to log bandwitdh and
throughput for each block device individually. sar in interactive
mode is capable of doing it via sar -dp 60 1 for example.

Another problem that arises when using sadc is the problem that
the scheduling of nagios is non predictable. I cannot garantuee,
that nagios will poll the information once a minute for example.
I cannot garantuee that nagios won't run the check twice in a
longer checkperiod. The biggest feature of using it via send_ncsa
passive checks, is the fact that I can inject the data when I want
to - with perfect timing.

But when using sar interactively, it's basically just a iostat -dp,
which does the average calculation at the end - something my plugin
already does ;)

I'll put out our options in an abstract way:

a) using sadc/sar:

Have $script run by cronjob.
Run active checks from nagios.

b) using my passive plugin.

Have $script run by cronjob.
Let $script send output to nagios.


In my opinion b) sound more appealing to me, since we have full
control of timings. I do not see any benefit of using a).

But maybe I am missing something - I am open to suggestions and
ideas ;)

S

PS: Please do not CC me, I don't like dupes ;)

-- 
Sascha Runschke
Netzwerk-  und  Systemmanagement-   Abt. Organisation und 
Betrieb - IT-Infrastruktur
Telefon : +49 (201) 102-1879Mobil : +49 (173) 5419665   Fax : +49 
(201) 102-1102105



GFKL Financial Services AG
Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. 
Tom Haverkamp
Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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] Check cisco CPU usage and memory

2008-03-03 Thread Alex Dehaini
Hi Guys,
Is there any plugin I can use to check cisco CPU usage, available memory,
used memory, bandwidth used by interfaces? Please let me know if there is a
plugin like this.

Thanks

-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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] RE Check cisco CPU usage and memory

2008-03-03 Thread Ludovic Cesar
Hi,


look here: http://nagios.manubulon.com/snmp_load.html


bye ;-)

Ludovic César
System Engineer -- ICT Fedasil
[EMAIL PROTECTED] www.Fedasil.be 
T 02-213 4(396)G 0473-58.15.08
Rue des Chartreux 21, 1000 Bruxelles



Alex Dehaini [EMAIL PROTECTED] 
Envoyé par : [EMAIL PROTECTED]
03/03/2008 10:31

A
nagios-users@lists.sourceforge.net
cc

Objet
[Nagios-users] Check cisco CPU usage and memory






Hi Guys,

Is there any plugin I can use to check cisco CPU usage, available memory, 
used memory, bandwidth used by interfaces? Please let me know if there is 
a plugin like this.

Thanks

-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED] 
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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 is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] RE Check cisco CPU usage and memory

2008-03-03 Thread Melanie Pfefer
Is there a similar plugin for Solaris 10?

./check_snmp_load.pl -H zeus -C public -w 98% -c 99%
Can't find CPU usage information : UNKNOWN


thanks
--- Ludovic Cesar [EMAIL PROTECTED] wrote:

 Hi,
 
 
 look here:
 http://nagios.manubulon.com/snmp_load.html
 
 
 bye ;-)
 
 Ludovic César
 System Engineer -- ICT Fedasil
 [EMAIL PROTECTED] www.Fedasil.be 
 T 02-213 4(396)G 0473-58.15.08
 Rue des Chartreux 21, 1000 Bruxelles
 
 
 
 Alex Dehaini [EMAIL PROTECTED] 
 Envoyé par :
 [EMAIL PROTECTED]
 03/03/2008 10:31
 
 A
 nagios-users@lists.sourceforge.net
 cc
 
 Objet
 [Nagios-users] Check cisco CPU usage and memory
 
 
 
 
 
 
 Hi Guys,
 
 Is there any plugin I can use to check cisco CPU
 usage, available memory, 
 used memory, bandwidth used by interfaces? Please
 let me know if there is 
 a plugin like this.
 
 Thanks
 
 -- 
 Alex Dehaini
 Developer
 Site - www.alexdehaini.com
 Email - [EMAIL PROTECTED] 

-
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio
 2008.

http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Nagios-users mailing list
 Nagios-users@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 is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio
 2008.

http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
 Nagios-users mailing list
 Nagios-users@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



  __
Sent from Yahoo! Mail.
A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] nagiosweb

2008-03-03 Thread André Moura
By nagiosweb can I add hosts in a group, and then set some services to a
particular host?

-- 
André O Moura
http://andrem.wordpress.com
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] RE Check cisco CPU usage and memory

2008-03-03 Thread Alex Dehaini
Thanks Ludovic,
Can you shouw me the syntax you use to check for CPU amd memory on your
cisco routers.

Alex


On Mon, Mar 3, 2008 at 10:55 AM, Ludovic Cesar [EMAIL PROTECTED]
wrote:


 Hi,


 look here: http://nagios.manubulon.com/snmp_load.html


 bye ;-)

 Ludovic César
 System Engineer -- ICT Fedasil
 [EMAIL PROTECTED] www.Fedasil.be
 T 02-213 4(396)G 0473-58.15.08
 Rue des Chartreux 21, 1000 Bruxelles


  *Alex Dehaini [EMAIL PROTECTED]*
 Envoyé par : [EMAIL PROTECTED]

 03/03/2008 10:31
   A
 nagios-users@lists.sourceforge.net  cc
   Objet
 [Nagios-users] Check cisco CPU usage and memory




 Hi Guys,

 Is there any plugin I can use to check cisco CPU usage, available memory,
 used memory, bandwidth used by interfaces? Please let me know if there is a
 plugin like this.

 Thanks

 --
 Alex Dehaini
 Developer
 Site - *www.alexdehaini.com* http://www.alexdehaini.com/
 Email - [EMAIL PROTECTED] [EMAIL PROTECTED]
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.

 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
 Nagios-users mailing list
 Nagios-users@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




-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] RE Check cisco CPU usage and memory

2008-03-03 Thread Ludovic Cesar
Sorry,

I dont monitor the CPU of my cisco hardware.


But try this ? :

./check_snmp_load.pl -H my_ip -C public -w 80,80,80 -c 90,90,90 -T cisco


Ludovic César
System Engineer -- ICT Fedasil
[EMAIL PROTECTED] www.Fedasil.be 
T 02-213 4(396)G 0473-58.15.08
Rue des Chartreux 21, 1000 Bruxelles



Alex Dehaini [EMAIL PROTECTED] 
Envoyé par : [EMAIL PROTECTED]
03/03/2008 13:14

A
nagios-users@lists.sourceforge.net
cc

Objet
Re: [Nagios-users] RE  Check cisco CPU usage and memory







Thanks Ludovic,

Can you shouw me the syntax you use to check for CPU amd memory on your 
cisco routers.

Alex


On Mon, Mar 3, 2008 at 10:55 AM, Ludovic Cesar [EMAIL PROTECTED] 
wrote:

Hi, 


look here: http://nagios.manubulon.com/snmp_load.html 


bye ;-) 

Ludovic César
System Engineer -- ICT Fedasil
[EMAIL PROTECTED] www.Fedasil.be 
T 02-213 4(396)G 0473-58.15.08
Rue des Chartreux 21, 1000 Bruxelles 



Alex Dehaini [EMAIL PROTECTED] 
Envoyé par : [EMAIL PROTECTED] 
03/03/2008 10:31 


A
nagios-users@lists.sourceforge.net 
cc

Objet
[Nagios-users] Check cisco CPU usage and memory








Hi Guys, 

Is there any plugin I can use to check cisco CPU usage, available memory, 
used memory, bandwidth used by interfaces? Please let me know if there is 
a plugin like this. 

Thanks

-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED] 
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___

Nagios-users mailing list
Nagios-users@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 



-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED] 
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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 is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] nagiosweb

2008-03-03 Thread Giles Coochey
André,

 

I had no idea what you were talking about, but I typed nagiosweb into google 
and clicked I'm feeling lucky, the text on the resulting page read:

 

http://sourceforge.net/project/screenshots.php?group_id=78920 A PHP/MySQL 
based front-end for Nagios 2.x setup. Complete with the ability to add/remove 
hosts, hostgroups, contacts, contactgroups, services, timeperiods and commands.

 

Does that answer your question?

 

Thanks

 

Giles

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of André Moura
Sent: 03 March 2008 13:03
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagiosweb

 

By nagiosweb can I add hosts in a group, and then set some services to a 
particular host?

-- 
André O Moura
http://andrem.wordpress.com 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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] Differentiating commands.cfg and services.cfg

2008-03-03 Thread Matt Juszczak
Hi all,

I'm having a bit of trouble figuring out the best way to split up what detail 
goes in commands.cfg and what goes in services.cfg.

In other words, right now I have 3 checks:

# 'check_disk' command definition
define command{
 command_namecheck_disk
 command_line$USER1$/check_by_ssh -t30 -H $HOSTNAME$ ... 
$USER1$/check_disk ...
 }


# 'check_load' command definition
define command{
 command_namecheck_load
 command_line$USER1$/check_by_ssh -t30 -H $HOSTNAME$ ... 
$USER1$/check_load ...
 }


# 'check_proc_cnt' command definition
define command{
 command_namecheck_proc_cnt
 command_line$USER1$/check_by_ssh -t30 -H $HOSTNAME$ ... 
$USER1$/check_procs ...
 }


Then, from services.cfg, I just call check_load, check_disk, etc. and it just 
works.

But I'm wondering if I'm repeating too much data.  For instance, in each of 
these definitions, the command_line is mostly the same, except mainly the 
actualy remote binary being called.

Is it better to keep these separate?  Or should I create a single, check_by_ssh 
command, which I can pass the specific remote script to execute, etc, thereby 
adding a bit more to the services.cfg file but reducing the commands.cfg file.

Which method is better?

Thanks!

-Matt

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] NC_Net nagios client to monitor Event logs onwindows

2008-03-03 Thread Anthony Montibello
(This should have stayed in the UserList since it is syntex specific that
may benifit other users for Windows Event Log monitoring via NC_NEt and
nagios)


Almost there syntex is a bit off,
the values after the interval are #of items followed by a comma delimited
list of the items
hence 0 means no items, so 1081 should be 1,1081

Thus try the command
./check_nt -H windowsmachine -p 1248 -v EVENTLOG -l
Application,Information,50,0,0,1,1081 -p 1248 -c 6

the -c and -w controle the Threshold for Warning/Critical/OK

Also try converting to an EVENTLOG_NEW
since it has some great optimizations that were not in EVENTLOG
check_nt --help=EVENTLOG_NEW
Tony (author of nc_net)
On Mon, Mar 3, 2008 at 2:45 AM, manju a [EMAIL PROTECTED] wrote:

 Hi Tony,

 i am able to make the new check_nt n  i m able to get the event log
 information, but i m not able to monitor the required event logs

 for example i m doing like from libexec ./check_nt -H windowsmachine -p
 1248 -v EVENTLOG -l any,Information,50,0,0,6,1081 -p 1248

 in the above example i m trying to monitor 1081 event ID under type
 Information  but once i execute this it will show the all the events which
 took place in 50 min under information type. if it works fine it should show
 only 1081 events in numbers rite. please correct me if i wrong.

 i need to monitor some n numbers of eventlogs in the 50 min time travel,
 if that logs appears nagios should send an e-mail. please help me on this.

 thanks
 manjunath A.







 On Sun, Mar 2, 2008 at 11:27 PM, manju a [EMAIL PROTECTED] wrote:

  Hi,
 
  its working fine now, thanks
 
 
On 2/23/08, Anthony Montibello [EMAIL PROTECTED] wrote:
  
   And did that resolve the eventlog issue?
  
   Tony
  
  
On Fri, Feb 22, 2008 at 9:15 AM, manju a [EMAIL PROTECTED]
   wrote:
  
yes this time it works fine... i am able to build
   
   
On Fri, Feb 22, 2008 at 12:15 PM, Jeff C. Benger 
[EMAIL PROTECTED] wrote:
   
  Download  extract nagios-plugins source

 Remove/rename the original check_nt.c in the plugins dir

 copy the check_nc_net.c file into the plugins folder and rename to
 check_nt.c

 rebuild the plugins(make)


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *manju a
 *Sent:* Friday, February 22, 2008 1:30 AM
 *To:* Anthony Montibello
 *Cc:* Nagios-users@lists.sourceforge.net
 *Subject:* Re: [Nagios-users] NC_Net nagios client to monitor
 Event logs onwindows





 Hi,


 Thanks a lot for your replay.

 when i copied to the libexec folder i got the below error, i know
 this is not a command soo shell is not able to recognize it.

 [EMAIL PROTECTED] libexec]# ./check_nt.c
 ./check_nt.c: line 1:
 /*
 : No such file or directory
 ./check_nt.c: line 2: check_apt: command not found
 : command not found3: *
 ./check_nt.c: line 4: check_apt: command not found
 ./check_nt.c: line 5: check_apt: command not found
 ./check_nt.c: line 6: check_apt: command not found
 : command not found7: *
 ./check_nt.c: line 8: check_apt: command not found
 ./check_nt.c: line 9: check_apt: command not found
 ./check_nt.c: line 10: syntax error near unexpected token `('
 ./check_nt.c: line 10: ` * Copyright (c) 2007 TOny Montibello (
 [EMAIL PROTECTED]
 ')

 can you please let me know how we can recomplie check_nt.c
 plugins.

 thanks
 manjunath A.



  On Fri, Feb 22, 2008 at 5:12 AM, Anthony Montibello 
 [EMAIL PROTECTED] wrote:

 HI,


 THe problem is your version of check_nt

 where check_nt is default plugin which will come with the
 nagios installation.



 You need to compile check_nc_net.c

 to do this, copy the check_nc_net.c to check_nt.c

 then recompile the plugins



 check_nc_net.c is in the install location of NC_Net as well as
 downloadable seperatly from


 http://downloads.sourceforge.net/nc-net/check_nc_net_040107.zip?modtime=1175541733big_mirror=0filesize=17953



 However please use the eventlog_new command -(See the help of
 check_nc_net)

 It is a more efficient check than eventlog



 TOny (Author of NC_NEt)

 On Thu, Feb 21, 2008 at 1:00 AM, manju a [EMAIL PROTECTED]
 wrote:

  Hi,

 sorry it was my mistake while typing, yes i replaced any5 with
 5 same problem!!! please help me on this

 thanks
 manjunath A.



  On Wed, Feb 20, 2008 at 8:30 PM, Edgar Matzinger 
 [EMAIL PROTECTED] wrote:

 Hi Manju,


 
  [EMAIL PROTECTED] libexec]# ./check_nt -H windowsmachine -p 1248
  -v EVENTLOG  -l any,any,any5,0,0,0 -w 5 -c 10
  

[Nagios-users] notifications for downed services

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] notifications for downed services

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] service notifications not sent

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] service notifications not being sent

2008-03-03 Thread nagios
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] notifications for downed services

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] notifications for downed services

2008-03-03 Thread Marc Powell

On Mar 3, 2008, at 10:56 PM, Artyom Khmelnitsky wrote:

 Hello everyone,

Hello. Did you see that you sent this to the list 6 times so far?

 I have just configured some service checks for services such as  
 http, smtp, etc.. The commands are defined in the commands.cfg file  
 and then called in the services.cfg file. The following is an  
 example of how a commands.cfg and services.cfg looks:

big chop, thanks

 The contacts are setup correctly since our check_ping which is  
 declared in the hosts.cfg file works perfectly fine and we do get  
 the correct alerts

...for the host definitions.

 Could someone point me in the right direction of what I'm doing  
 wrong here? I can't seem to get emails if a service is down. It's  
 most likely in my syntax, but I'm not sure where since I get no  
 errors when reloading Nagios.


You don't have any contact_groups defined for the services that I can  
see. no contacts == no notifications. With nagios-2, they're not  
automagically inherited from the hosts. I expect that nagios is  
complaining with warnings though in nagios.log or when using -v.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service

--
marc


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] service notifications not sent

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] NC_Net nagios client to monitor Event logs onwindows

2008-03-03 Thread manju a
Hi Tony,

i replaced 1 with the 0 but for some reason it will not recognize
application event logs, even if the event accours five min back, it will say
no entry
/check_nt -H windowsmachine -p 1248 -v EVENTLOG -l any,any,5,0,0,1,1081,
-p 1248 -c 6

for example here i need to monitor 1081, ...n number of event IDS but
this will give some wrong results some times. i think it will work okay if
we monitor only one event ID, but this will not workout.

i tired giving EVENTLOG_NEW insisted of EVENTLOG but i get the error Client
- ERROR: Argument mismatch do you thing we need to change some arugement
under -l when we specify EVENTLOG_NEW.

please help me on this.

thanks for your help

Manjunath A





On Tue, Mar 4, 2008 at 5:56 AM, Anthony Montibello [EMAIL PROTECTED]
wrote:

 (This should have stayed in the UserList since it is syntex specific that
 may benifit other users for Windows Event Log monitoring via NC_NEt and
 nagios)


 Almost there syntex is a bit off,
 the values after the interval are #of items followed by a comma delimited
 list of the items
 hence 0 means no items, so 1081 should be 1,1081

 Thus try the command
 ./check_nt -H windowsmachine -p 1248 -v EVENTLOG -l
 Application,Information,50,0,0,1,1081 -p 1248 -c 6

 the -c and -w controle the Threshold for Warning/Critical/OK

 Also try converting to an EVENTLOG_NEW
 since it has some great optimizations that were not in EVENTLOG
 check_nt --help=EVENTLOG_NEW
 Tony (author of nc_net)
 On Mon, Mar 3, 2008 at 2:45 AM, manju a [EMAIL PROTECTED] wrote:

  Hi Tony,
 
  i am able to make the new check_nt n  i m able to get the event log
  information, but i m not able to monitor the required event logs
 
  for example i m doing like from libexec ./check_nt -H windowsmachine -p
  1248 -v EVENTLOG -l any,Information,50,0,0,6,1081 -p 1248
 
  in the above example i m trying to monitor 1081 event ID under type
  Information  but once i execute this it will show the all the events which
  took place in 50 min under information type. if it works fine it should show
  only 1081 events in numbers rite. please correct me if i wrong.
 
  i need to monitor some n numbers of eventlogs in the 50 min time travel,
  if that logs appears nagios should send an e-mail. please help me on this.
 
  thanks
  manjunath A.
 
 
 
 
 
 
 
  On Sun, Mar 2, 2008 at 11:27 PM, manju a [EMAIL PROTECTED] wrote:
 
   Hi,
  
   its working fine now, thanks
  
  
 On 2/23/08, Anthony Montibello [EMAIL PROTECTED] wrote:
   
And did that resolve the eventlog issue?
   
Tony
   
   
 On Fri, Feb 22, 2008 at 9:15 AM, manju a [EMAIL PROTECTED]
wrote:
   
 yes this time it works fine... i am able to build


 On Fri, Feb 22, 2008 at 12:15 PM, Jeff C. Benger 
 [EMAIL PROTECTED] wrote:

   Download  extract nagios-plugins source
 
  Remove/rename the original check_nt.c in the plugins dir
 
  copy the check_nc_net.c file into the plugins folder and rename
  to check_nt.c
 
  rebuild the plugins(make)
 
 
   --
 
  *From:* [EMAIL PROTECTED] [mailto:
  [EMAIL PROTECTED] *On Behalf Of *manju
  a
  *Sent:* Friday, February 22, 2008 1:30 AM
  *To:* Anthony Montibello
  *Cc:* Nagios-users@lists.sourceforge.net
  *Subject:* Re: [Nagios-users] NC_Net nagios client to monitor
  Event logs onwindows
 
 
 
 
 
  Hi,
 
 
  Thanks a lot for your replay.
 
  when i copied to the libexec folder i got the below error, i
  know this is not a command soo shell is not able to recognize it.
 
  [EMAIL PROTECTED] libexec]# ./check_nt.c
  ./check_nt.c: line 1:
  /*
  : No such file or directory
  ./check_nt.c: line 2: check_apt: command not found
  : command not found3: *
  ./check_nt.c: line 4: check_apt: command not found
  ./check_nt.c: line 5: check_apt: command not found
  ./check_nt.c: line 6: check_apt: command not found
  : command not found7: *
  ./check_nt.c: line 8: check_apt: command not found
  ./check_nt.c: line 9: check_apt: command not found
  ./check_nt.c: line 10: syntax error near unexpected token `('
  ./check_nt.c: line 10: ` * Copyright (c) 2007 TOny Montibello (
  [EMAIL PROTECTED]
  ')
 
  can you please let me know how we can recomplie check_nt.c
  plugins.
 
  thanks
  manjunath A.
 
 
 
   On Fri, Feb 22, 2008 at 5:12 AM, Anthony Montibello 
  [EMAIL PROTECTED] wrote:
 
  HI,
 
 
  THe problem is your version of check_nt
 
  where check_nt is default plugin which will come with the
  nagios installation.
 
 
 
  You need to compile check_nc_net.c
 
  to do this, copy the check_nc_net.c to check_nt.c
 
  then recompile the plugins
 
 
 
  

[Nagios-users] notifications for downed services

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] notifications for downed services

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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] notifications for downed services

2008-03-03 Thread Artyom Khmelnitsky
Hello everyone,

I have just configured some service checks for services such as http, smtp, 
etc.. The commands are defined in the commands.cfg file and then called in the 
services.cfg file. The following is an example of how a commands.cfg and 
services.cfg looks:

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

 Generic services template 
define service{
name generic-service;
active_checks_enabled 1;
obsess_over_service 1;
check_freshness 0;
notifications_enabled 1;
event_handler_enabled 1;
flap_detection_enabled 1;
retain_status_information 1;
retain_nonstatus_information 1;
register 0;
}
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   5
retry_check_interval1
notification_interval   240
notification_period 24x7
register0
}
define service{
use basic-service
name smtp-service
check_command check_smtp
notification_options c,r
register 0
}

Example service called for a specific host (same services.cfg file as where the 
above services are declared in the beginning)

define service{
use dns-service
host_name serv01
servicegroups mygroup
service_description DNS
contact_groups localadmin,supportpro
}

The contacts are setup correctly since our check_ping which is declared in the 
hosts.cfg file works perfectly fine and we do get the correct alerts.

Could someone point me in the right direction of what I'm doing wrong here? I 
can't seem to get emails if a service is down. It's most likely in my syntax, 
but I'm not sure where since I get no errors when reloading Nagios.

Thanks for your help.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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