Nagios-users Digest, Vol 4, Issue 34

Hariharan Sankararaman hariharan_wan at yahoo.com
Wed Sep 27 06:36:23 CEST 2006


Dear all,

I am using Fedore core 5 and i have install nagios for Network monitoring. 
Version Details:
OS - Linux Fedora Core 5
Application : Nagios 2.5
SNMP 5.3.1
CISCO MIB file using V1
My Setup description:
1 .SNMP trap daemon will receive SNMP traps 
2 . SNMP trap daemon will handle traps to /var/spool/snmptt
3. SNMPTT will get the traps from /var/spool/snmptt directory
4. SNMPTT translate the mibs and handover to syslog (/var/log/message)
5 . I have called SEC to correlate the events from syslog and sec will in turn use the python script to correlate the event to handover to nagios cmd.
I am verifying the documents form sysadmin site.

I have copied the same service templates from the site for my configuration.
iam using minimal.cfg as object configuartion file in that service template is given below


define service {
    use    passive-check-template
    name   generic-snmptrap
    service_description    snmp_trap_handling
    is_volatile 1
    check_period    none
    notification_interval    120
    notification_options    w,u,c,r
    notification_period    24x7
    check_command    passive_check_missing
    max_check_attempts    1
    check_freshness    0
    stalking_options    o,w,u,c
    register 0
}
define service {
    use    generic-snmptrap
    host_name     my_example_host
    contact_groups    my_example_group
    service_description    snmp_trap_handling_ok
}

define service {
    use    generic-snmptrap
    host_name    my_example_host
    contact_groups    my_example_group
    service_description    snmp_trap_handling_warning
}

define service {
    use    generic-snmptrap
    host_name     my_example_host
    contact_groups    my_example_group
    service_description    snmp_trap_handling_critical
}



when i execute nagios it says error message as given below

Error: Template 'passive-check-template' specified in service definition could not be   not found (config file '/etc/nagios/minimal.cfg', starting on line 307)
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'snmp_trap_handling_Critical' on host 'router1'
Error: Could not register service (config file '/etc/nagios/minimal.cfg', starting on line 330)
how to integrate SNMP traps in nagios web browser


Pls find my configuration files with this . Pls help me in this regard

With Regards
Hariharan

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-owner 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. Re: NRPE dependencies (Ugo Bellavance)
   2. Distributed setup, NSCA, not working (Ugo Bellavance)
   3. httping through proxy (naim abu darwish)
   4. Nagios Crashes on Downtime (David Schlecht)
   5. Re: httping through proxy (Marc Powell)
   6. Re: httping through proxy (naim abu darwish)
   7. Re: NRPE dependencies (John P. Rouillard)
   8. Monitoring windows servers (Ranga Nathan)
   9. Re: Monitoring windows servers (Ugo Bellavance)
  10. Re: Nagios Crashes on Downtime (karl.kornel at mindspeed.com)
  11. Antwort: Monitoring windows servers [Virengeprueft]
      (Roland.Sorgenfrei at spb.de)
  12. Re: weekly availability reports (rob.moss at uk.bnpparibas.com)
  13. Re: Antwort: Monitoring windows servers [Virengeprueft]
      (Anthony Montibello)
  14. Slave nagios (John Longland)
  15. Re: Slave nagios (Thomas Sluyter)
  16. Fwd: Welcome to the "Nagios-users" mailing list (Digest mode)
      (Hariharan Sankararaman)
  17. Error: Template 'passive-check-template' (Hariharan Sankararaman)
  18. Re: httping through proxy (naim abu darwish)
  19. check/notification intervals (Terry)
  20. Re: check/notification intervals (Patrick Morris)
  21. Re: Monitoring windows servers (Geoffrey Walton)


----------------------------------------------------------------------

Message: 1
Date: Mon, 25 Sep 2006 16:03:29 -0400
From: Ugo Bellavance 
Subject: Re: [Nagios-users] NRPE dependencies
To: nagios-users at lists.sourceforge.net
Message-ID: 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hendrik Baecker wrote:
> Hi,
> 
> just do so... the services dependency feature is just there for such an 
> installation.
> 
> Read more about it on:
> 
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#servicedependency

Ok, it works.  Maybe I went too quickly.

What dit not work is that I would like to use a group for the service 
description.

I want to be able to say that for every server in my config, if NRPE is 
not returning OK on one server, don't do checks that depend on NRPE.

The ideal solution would be only one servicedependency definition, but I 
don't think it is possible, so here is what I tried:

- Defined a servicegroup:

define servicegroup{
         servicegroup_name               NRPE_dep
         alias                           NRPE-dependant checks
 }

- I added members through the "servicegroups" directive in the service 
descriptions.

Now I'm trying that:

define servicedependency{
         dependent_servicegroup_name     NRPE_dep
         host_name                       server1
         service_description             NRPE
         execution_failure_criteria      n
         notification_failure_criteria   w,u,c
         }

I always get this error:

Error: NULL service description/host name in service dependency definition

Any ideas?




------------------------------

Message: 2
Date: Mon, 25 Sep 2006 16:27:11 -0400
From: Ugo Bellavance 
Subject: [Nagios-users] Distributed setup, NSCA, not working
To: nagios-users at lists.sourceforge.net
Message-ID: 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

 I'm trying to make a failover system, so I have added, on the master 
server, to:

nagios.cfg:

obsess_over_services=1
ocsp_command=send_service_check

( don't check for hosts)

I've defined send_service_check like this:

# send_service_check command definition
define command{
         command_name    send_service_check
         command_line    /usr/sbin/send_nsca -H 10.0.0.2 -c 
/etc/nagios/send_nsca.cfg -d "," 
$HOSTNAME$,'$SERVICEDESC$',$SERVICESTATEID$,'$SERVICEOUTPUT$'
         }

It does not work.  10.0.0.2 never gets anything, but I don't have any 
errors either.

I tried running manually:

/usr/sbin/send_nsca -H 10.0.0.2 -c /etc/nagios/send_nsca.cfg -d "," 
gateway2,SWAP,0,Caution

It leads to help, as if I made a mistake.

I've tried encrypting, and I decided to try without encryption to be 
sure this wasn't the problem.  Still nothing.

Telnetting to port 5667 connects, outputs garbage.

I tried enabling debug on the nsca server (10.0.0.2), nothing more.

Any ideas?

Regards,

Ugo




------------------------------

Message: 3
Date: Mon, 25 Sep 2006 23:39:15 +0300
From: "naim abu darwish" 
Subject: [Nagios-users] httping through proxy
To: nagios-users at lists.sourceforge.net
Message-ID:
 <3f8ec11c0609251339j6b0ca236r95ad02f399bd8e5e at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

hello.
I'm trying to monitor browsing performance through proxies. httping (
http://www.vanheusden.com/httping/ )is  like ping but for
http-requests.
check command example is  something like ::

httping -h www.google.com -x 192.168.20.24:8080 -c 1 -t 2

where the variables are ::
1) 192.168.20.24 is the ip address of the proxy, corresponding to
$$HOSTADDRESS$$
2) 8080  is the port number that the squid proxy is running on, this
could be corresponding to $ARG1$

Could anyone please tell me how to put this in a way nagios
understands. Its something close to what i did below, but i cant quiet
 figure it out yet.
the mistake is somewhere with the colon ( : ), i think.

###  from the file   /etc/nagios/checkcommands.cfg


define command{
        command_name    check_httping
        command_line       /usr/bin/httping -x $HOSTADDRESS$ : $ARG1$
-c 1 -h  www.google.com
        }
###
Many thanks


-Naim



------------------------------

Message: 4
Date: Mon, 25 Sep 2006 23:16:07 +0200 (CEST)
From: David Schlecht 
Subject: [Nagios-users] Nagios Crashes on Downtime
To: nagios-users at lists.sourceforge.net
Message-ID: <20060925211607.729CE4F4046 at desire.netways.de>
Content-Type: text/plain; charset="ISO-8859-1"

Hi list



I've been fighting this beast forever and really am pleading for
 some expertise. 



I'm running Nagios on SUSe linux, 8.x, sles 9.3 and have been having
 this trouble since Nagios 1.1. Currently using v2.5. I'm currently
 using plugins v1.4.2, but the version doesn't seem to matter.



The OS also doesn't seem to matter. We're running on an old 486,
 a new 64-bit Intel blade, and a z/Os mainframe virtual host and
 it bombs the same on all.



Nagios crashes occassionally when entering or exiting from scheduled
 down time. I've seen the problem once or twice from other commands,
 but it seems the easiest to reproduce by scheduling downtime.



In all earlier versions, the crash wrote a segfault to the logs,
 but v2.5 just dies quietly.



The problem comes around once every 200-300 commands, but there
 isn't a magic number. It doesn't die on the same host name, either.
 We are currently showing around 11 critical items in the monitoring
 interface, and all the statuses and notifications are valid.



We are using only active checks. The performance numbers look suspicious
 (90% over one minute) but with performance data monitoring disabled
 in nagios.cfg, I don't place much confidence in these numbers.



Please help!





- David Schlecht (dschl)



-----------------------

The mailing list archive is found here:

http://www.nagiosexchange.org/nagios-users.34.0.html

    



------------------------------

Message: 5
Date: Mon, 25 Sep 2006 16:20:19 -0500
From: "Marc Powell" 
Subject: Re: [Nagios-users] httping through proxy
To: 
Message-ID: 
Content-Type: text/plain; charset="US-ASCII"



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of naim abu darwish
> Sent: Monday, September 25, 2006 3:39 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] httping through proxy
> 
> hello.
> I'm trying to monitor browsing performance through proxies. httping (
> http://www.vanheusden.com/httping/ )is  like ping but for
> http-requests.
> check command example is  something like ::
> 
> httping -h www.google.com -x 192.168.20.24:8080 -c 1 -t 2
> 
> where the variables are ::
> 1) 192.168.20.24 is the ip address of the proxy, corresponding to
> $$HOSTADDRESS$$
> 2) 8080  is the port number that the squid proxy is running on, this
> could be corresponding to $ARG1$
> 
> Could anyone please tell me how to put this in a way nagios
> understands. Its something close to what i did below, but i cant quiet
>  figure it out yet.
> the mistake is somewhere with the colon ( : ), i think.
> 
> ###  from the file   /etc/nagios/checkcommands.cfg
> 
> 
> define command{
>         command_name    check_httping
>         command_line       /usr/bin/httping -x $HOSTADDRESS$ : $ARG1$
> -c 1 -h  www.google.com
>         }

The spaces around the : are likely to be your current problem. You were
probably trying for something like --

command_line /usr/bin/httping -x $HOSTADDRESS$:$ARG1$ -c 1 -h
www.google.com

That would at least get httping running _BUT_ unless httping exits with
the standard nagios exit codes to denote state and follows the nagios
output guidelines (in the Developer Docs at http://nagiosplug.sf.net),
you'll need to create a wrapper script for it so that it does. This is
almost certainly going to be necessary. Essentially you'll need to look
at the output of httping and determine if it's OK, WARNING, CRITICAL or
UNKNOWN and tell nagios appropriately. At the minimum you'll need to
follow the 'Print only one line of output' and 'Plugin Return Codes'
section of that documentation. 

--
Marc 



------------------------------

Message: 6
Date: Tue, 26 Sep 2006 00:49:49 +0300
From: "naim abu darwish" 
Subject: Re: [Nagios-users] httping through proxy
To: nagios-users at lists.sourceforge.net
Message-ID:
 <3f8ec11c0609251449lde86f61w19b757096d8d221a at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello
Thnx for the quick reply Mark, httping actaully has a -N switch ::
httping::  -N x            Nagios mode 2: return 0 when all fine, 'x'
i could add to that a time limit, say -t 2, standing for time limit is
2 seconds, and i sound the alarm when the value goes above that.
but thats not what i  really want, i want the actuall httping value, i
want to make a graph out   of it, with nagiosgrapher or pnp. This is
very important, we must know when perfomance is better, when we must
upgrade, etc etc..

oh, and running without the spaces before and after the : did not
help, i got this message:
(Return code of 127 is out of bounds - plugin may be missing)
Any ideas?

Greets
-Naim

On 9/26/06, Marc Powell  wrote:
>
>
> > -----Original Message-----
> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> > bounces at lists.sourceforge.net] On Behalf Of naim abu darwish
> > Sent: Monday, September 25, 2006 3:39 PM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] httping through proxy
> >
> > hello.
> > I'm trying to monitor browsing performance through proxies. httping (
> > http://www.vanheusden.com/httping/ )is  like ping but for
> > http-requests.
> > check command example is  something like ::
> >
> > httping -h www.google.com -x 192.168.20.24:8080 -c 1 -t 2
> >
> > where the variables are ::
> > 1) 192.168.20.24 is the ip address of the proxy, corresponding to
> > $$HOSTADDRESS$$
> > 2) 8080  is the port number that the squid proxy is running on, this
> > could be corresponding to $ARG1$
> >
> > Could anyone please tell me how to put this in a way nagios
> > understands. Its something close to what i did below, but i cant quiet
> >  figure it out yet.
> > the mistake is somewhere with the colon ( : ), i think.
> >
> > ###  from the file   /etc/nagios/checkcommands.cfg
> >
> >
> > define command{
> >         command_name    check_httping
> >         command_line       /usr/bin/httping -x $HOSTADDRESS$ : $ARG1$
> > -c 1 -h  www.google.com
> >         }
>
> The spaces around the : are likely to be your current problem. You were
> probably trying for something like --
>
> command_line /usr/bin/httping -x $HOSTADDRESS$:$ARG1$ -c 1 -h
> www.google.com
>
> That would at least get httping running _BUT_ unless httping exits with
> the standard nagios exit codes to denote state and follows the nagios
> output guidelines (in the Developer Docs at http://nagiosplug.sf.net),
> you'll need to create a wrapper script for it so that it does. This is
> almost certainly going to be necessary. Essentially you'll need to look
> at the output of httping and determine if it's OK, WARNING, CRITICAL or
> UNKNOWN and tell nagios appropriately. At the minimum you'll need to
> follow the 'Print only one line of output' and 'Plugin Return Codes'
> section of that documentation.
>
> --
> Marc
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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: 7
Date: Mon, 25 Sep 2006 18:04:05 -0400
From: "John P. Rouillard" 
Subject: Re: [Nagios-users] NRPE dependencies
To: nagios-users at lists.sourceforge.net
Message-ID: <200609252204.k8PM453A026460 at mx1.cs.umb.edu>


In message ,
Ugo Bellavance writes:
>Hendrik Baecker wrote:
>> Hi,
>> 
>> just do so... the services dependency feature is just there for such an 
>> installation.
>> 
>> Read more about it on:
>> 
>> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#servicedependency
>
>Ok, it works.  Maybe I went too quickly.
>
>What dit not work is that I would like to use a group for the service 
>description.
>
>I want to be able to say that for every server in my config, if NRPE is 
>not returning OK on one server, don't do checks that depend on NRPE.
>
>The ideal solution would be only one servicedependency definition, but I 
>don't think it is possible, so here is what I tried:
>
>- Defined a servicegroup:
>
>define servicegroup{
>         servicegroup_name               NRPE_dep
>         alias                           NRPE-dependant checks
> }
>
>- I added members through the "servicegroups" directive in the service 
>descriptions.
>
>Now I'm trying that:
>
>define servicedependency{
>         dependent_servicegroup_name     NRPE_dep
>         host_name                       server1
>         service_description             NRPE
>         execution_failure_criteria      n
>         notification_failure_criteria   w,u,c
>         }
>
>I always get this error:
>
>Error: NULL service description/host name in service dependency definition

Apply the patch mentioned in:

 http://thread.gmane.org/gmane.network.nagios.user/19511/focus=19511

and see if:


define servicedependency {

        use                             defaults
        dependent_servicegroup_name     NRPE_dep

        service_description             NRPE
        host_name                       SELF

}

Don't know it it will work, but it seems like it should from the 
description.


Alternatively do what I do. Create a servicedependency.cfg file that
is created by a script that parses the objects.cache file. so to
update:

  clear/empty servicedependency.cfg

  reload nagios

  wait until objects.cache is updated

  parse objects.cache for all the host/service pairs in the NRPE_dep
        servicegroup

  generate:
    define servicedependency{
      dependent_host_name example
      dependent_service_description (all services from NRPE_dep
                                       for host example)
      host_name example
      service_description NRPE
     ...
    }
  and put them into servicedependency.cfg 

  reload nagios to load the now non-empty servicedependency.cfg file.


Definitely a pain.

    -- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.



------------------------------

Message: 8
Date: Mon, 25 Sep 2006 16:29:25 -0700
From: Ranga Nathan 
Subject: [Nagios-users] Monitoring windows servers
To: nagios 
Message-ID:
 
 
Content-Type: text/plain; charset="us-ascii"

I have been asked to investigate how our Nagios server can monitor Windows 
servers in our network. I have been monitoring only linux boxes so far.

We would like to monitor processes, disk, memory, network etc.

I would like to hear about your experiences. Any guidance welcome
__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services; 
BAX Global Inc. Irvine-California
Tel: 714-442-7591   Fax: 714-442-2840
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20060925/346a3302/attachment.html 

------------------------------

Message: 9
Date: Mon, 25 Sep 2006 19:44:02 -0400
From: Ugo Bellavance 
Subject: Re: [Nagios-users] Monitoring windows servers
To: nagios-users at lists.sourceforge.net
Message-ID: 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Ranga Nathan wrote:
> 
> I have been asked to investigate how our Nagios server can monitor 
> Windows servers in our network. I have been monitoring only linux boxes 
> so far.
> 
> We would like to monitor processes, disk, memory, network etc.
> 
> I would like to hear about your experiences. Any guidance welcome

It works nicely with nrpe.  http://sourceforge.net/projects/nscplus.




------------------------------

Message: 10
Date: Mon, 25 Sep 2006 17:21:49 -0700
From: karl.kornel at mindspeed.com
Subject: Re: [Nagios-users] Nagios Crashes on Downtime
To: nagios-users at lists.sourceforge.net
Message-ID:
 
 
Content-Type: text/plain; charset="us-ascii"

David,

I have also been experiencing crashes when I have many (>5) downtimes 
scheduled in a day.  I've posted about it previously under the subject 
"BUG?  Segfault & coredump with scheduled downtime, downtime scheduled 
horked", sent on the 17th of August.  Does what I describe in that message 
seem similar to your situation?

Also, in my case, Nagios' account on my system is configured to not save 
coredumps by default.  When I want a coredump, I run `ulimit -c unlimited` 
before starting Nagios.  Could you be in the same situation?

-- A. Karl Kornel, Mindspeed Technologies, Inc.
karl.kornel at mindspeed.com -- (949) 579-3503
"Remember the Rules: Separation & Optimization"



David Schlecht  
Sent by: nagios-users-bounces at lists.sourceforge.net
09/25/2006 02:16 PM

To
nagios-users at lists.sourceforge.net
cc

Subject
[Nagios-users] Nagios Crashes on Downtime






Hi list



I've been fighting this beast forever and really am pleading for
 some expertise. 



I'm running Nagios on SUSe linux, 8.x, sles 9.3 and have been having
 this trouble since Nagios 1.1. Currently using v2.5. I'm currently
 using plugins v1.4.2, but the version doesn't seem to matter.



The OS also doesn't seem to matter. We're running on an old 486,
 a new 64-bit Intel blade, and a z/Os mainframe virtual host and
 it bombs the same on all.



Nagios crashes occassionally when entering or exiting from scheduled

=== message truncated ===

 		
---------------------------------
Get your email and more, right on the  new Yahoo.com 
 		
---------------------------------
Get your email and more, right on the  new Yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060926/44c0beef/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list