Please provide me info how i can interact with nagios developes

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: venerdì 26 gennaio 2007 15.30
To: nagios-users@lists.sourceforge.net
Subject: Nagios-users Digest, Vol 8, Issue 45

Send Nagios-users mailing list submissions to
        nagios-users@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
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

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


Today's Topics:

   1. nagios and selinux? (Jiann-Ming Su)
   2. Re: nagios and selinux? (Petersen, Mark)
   3. Re: nagios and selinux? (Marc Powell)
   4. Re: nagios and selinux? (Arno Lehmann)
   5. Re: nagios and selinux? (Daniel Lacey)
   6. Re: nagios and selinux? (Jiann-Ming Su)
   7. Re: Antwort: Re:  $HOME is not set in init script (Daniel Meyer)
   8. Antwort: Re: Antwort: Re: $HOME is not set in init        script
      ([EMAIL PROTECTED])
   9. Re: Antwort: Re: Antwort: Re: $HOME is not set in init    script
      (Arno Lehmann)
  10. Antwort: Re: Antwort: Re: $HOME is not set in init        script
      ([EMAIL PROTECTED])
  11. OpenVMS SSH (Barthier Wim)
  12. Nagios tracked by Update-Scout.com (Peter Kullmann)
  13. Re: Antwort: Re: Antwort: Re: $HOME is not set in init    script
      (Arno Lehmann)
  14. FW:  Memory leaks (Wheeler, JF (Jonathan))
  15. check_mrtgtraf returns STATE_UNKNOWN (Espen Tagestad)
  16. check_mrtgtraf returns STATE_UNKNOWN (Espen Tagestad)
  17. Re: Antwort: Re: Antwort: Re: $HOME is not set in init    script
      (Daniel Meyer)
  18. Different check_http? (Yolanda Santos)
  19. Re: Different check_http? (Richard Luys-Nagios User)
  20. removing acknowledge comments associated with the services or
      host from nagios (ankush grover)
  21. Re: removing acknowledge comments associated with theservices
      or host from nagios (Andrew Laden)


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

Message: 1
Date: Thu, 25 Jan 2007 15:26:49 -0500
From: "Jiann-Ming Su" <[EMAIL PROTECTED]>
Subject: [Nagios-users] nagios and selinux?
To: nagios-users@lists.sourceforge.net
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

What's the proper way to configure nagios and selinux to work
together?  I've run into the same problem as described here:

  http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html

Setting selinux to permissive got my test nagios going.  But, now I
need to migrate to a production system with selinux set to enforcing
and type set to targeted.  Thanks for any tips.

-- 
Jiann-Ming Su
"I have to decide between two equally frightening options.
 If I wanted to do that, I'd vote." --Duckman
"The system's broke, Hank.  The election baby has peed in
the bath water.  You got to throw 'em both out."  --Dale Gribble



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

Message: 2
Date: Thu, 25 Jan 2007 15:44:45 -0600
From: "Petersen, Mark" <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] nagios and selinux?
To: <nagios-users@lists.sourceforge.net>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"

Can you move the cgi's (or possibly hardlink them) to someplace that
apache will let them run (say /var/www/nagios2/cgi-bin)?  Otherwise you
might need some sort of a compile option to just install them there.
Someone more familiar with the build process might be able to help here.

There's also ways to hack apache (may require recompile) to allow this,
but I'm under the impression from these two posts that SELinux would
disallow those changes to take effect?


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jiann-Ming Su
Sent: Thursday, January 25, 2007 2:27 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagios and selinux?

What's the proper way to configure nagios and selinux to work
together?  I've run into the same problem as described here:

 
http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html

Setting selinux to permissive got my test nagios going.  But, now I
need to migrate to a production system with selinux set to enforcing
and type set to targeted.  Thanks for any tips.

-- 
Jiann-Ming Su
"I have to decide between two equally frightening options.
 If I wanted to do that, I'd vote." --Duckman
"The system's broke, Hank.  The election baby has peed in
the bath water.  You got to throw 'em both out."  --Dale Gribble

------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
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



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

Message: 3
Date: Thu, 25 Jan 2007 15:57:26 -0600
From: "Marc Powell" <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] nagios and selinux?
To: <nagios-users@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="US-ASCII"



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Jiann-Ming Su
> Sent: Thursday, January 25, 2007 2:27 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] nagios and selinux?
> 
> What's the proper way to configure nagios and selinux to work
> together?  I've run into the same problem as described here:
> 
>
http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html
> 
> Setting selinux to permissive got my test nagios going.  But, now I
> need to migrate to a production system with selinux set to enforcing
> and type set to targeted.  Thanks for any tips.

I don't use Fedora nor do I use SELinux but googling for "fedora nagios
selinux" seems to provide a number of links with very specific
instructions. I know SELinux policies have been discussed here and those
will be available in the archives as well.

--
Marc

"Use the Net Luke..."



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

Message: 4
Date: Thu, 25 Jan 2007 22:57:41 +0100 (MET)
From: Arno Lehmann <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] nagios and selinux?
To: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

On 1/25/2007 10:44 PM, Petersen, Mark wrote:
> Can you move the cgi's (or possibly hardlink them) to someplace that
> apache will let them run (say /var/www/nagios2/cgi-bin)?  Otherwise you
> might need some sort of a compile option to just install them there.
> Someone more familiar with the build process might be able to help here.

That would not help, given a tightly locked SELinux system, I believe.

> There's also ways to hack apache (may require recompile) to allow this,
> but I'm under the impression from these two posts that SELinux would
> disallow those changes to take effect?

The point is to configure SELinux to allow whatever is necessary. This 
will not only be apache and the cgis, but also the monitoring plugins 
and, of course, nagios itself.

I've never used SELinux, but AFAIK you can run a system, log all the 
activities, review that log to make sure everything is ok, and convert 
that in a ruleset which allows just what you observed.

This will not work where programs do things that were never observed. 
Just think about event handler scripts that never got triggered in your 
observation phase.

In short, you will need someone who actually knows that SELinux stuff 
and has access to the machine in question. A security oriented person 
would hopefully never install SELinux rules on such a machine that he 
did not review or even create himself.

Sounds like that servers admin :-)

Arno

> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Jiann-Ming Su
> Sent: Thursday, January 25, 2007 2:27 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] nagios and selinux?
> 
> What's the proper way to configure nagios and selinux to work
> together?  I've run into the same problem as described here:
> 
>  
> http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html
> 
> Setting selinux to permissive got my test nagios going.  But, now I
> need to migrate to a production system with selinux set to enforcing
> and type set to targeted.  Thanks for any tips.
> 

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de



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

Message: 5
Date: Thu, 25 Jan 2007 14:08:40 -0800
From: Daniel Lacey <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] nagios and selinux?
To: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070125/cc038886/attachment.html
 

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

Message: 6
Date: Thu, 25 Jan 2007 20:09:48 -0500
From: "Jiann-Ming Su" <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] nagios and selinux?
To: nagios-users@lists.sourceforge.net
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 1/25/07, Marc Powell <[EMAIL PROTECTED]> wrote:
>
> I don't use Fedora nor do I use SELinux but googling for "fedora nagios
> selinux" seems to provide a number of links with very specific
> instructions. I know SELinux policies have been discussed here and those
> will be available in the archives as well.
>

Thanks for all the replies.  I'm using CentOS, but didn't even think
to add "centos" to the google search.  I'm working through the
archives now.  Thanks.

-- 
Jiann-Ming Su
"I have to decide between two equally frightening options.
 If I wanted to do that, I'd vote." --Duckman
"The system's broke, Hank.  The election baby has peed in
the bath water.  You got to throw 'em both out."  --Dale Gribble



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

Message: 7
Date: Fri, 26 Jan 2007 08:45:14 +0100 (CET)
From: Daniel Meyer <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] Antwort: Re:  $HOME is not set in init
        script
To: [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Thu, 25 Jan 2007, [EMAIL PROTECTED] wrote:

> Daniel,
> 
> nagios is started in /etc/init.d/nagios with "su - nagios -c nagios", so the 
> process
> inherits the environment varialbes of the root user, which executes the su 
> command.
> ($HOME is /root)

Which distribution are you using? My init-script (based on the one from 
Dag Wieers Nagios-RPM) starts nagios this way:

case "$1" in

         start)
                 echo "Starting network monitor: nagios"
                 $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
                 if [ $? -eq 0 ]; then
                         su - $NagiosUser -c "/usr/bin/ndo2db -c 
/etc/nagios/ndo2db.cfg"
                         su - $NagiosUser -c "touch 
$NagiosVarDir/nagios.log $NagiosRetentionFile"
                         rm -f $NagiosCommandFile
                         touch $NagiosRunFile
                         chown $NagiosUser:$NagiosGroup $NagiosRunFile
                         $NagiosBin -d $NagiosCfgFile

Danny
-- 
Q: Gentoo is too hard to install      =        http://www.cyberdelia.de
    and I feel like whining.           =             [EMAIL PROTECTED]
A: Please see /dev/null.              =
       (from the gentoo installer FAQ) =                             \o/



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

Message: 8
Date: Fri, 26 Jan 2007 08:56:49 +0100
From: [EMAIL PROTECTED]
Subject: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in
        init    script
To: Daniel Meyer <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED], nagios-users@lists.sourceforge.net
Message-ID:
        <[EMAIL PROTECTED]>
        
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/75222d63/attachment.html
 

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

Message: 9
Date: Fri, 26 Jan 2007 09:12:12 +0100 (MET)
From: Arno Lehmann <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set
        in      init    script
To: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

On 1/26/2007 8:56 AM, [EMAIL PROTECTED] wrote:

I'm not absolutely sure, but is it your mail program that add an 
"Antwort:" to the Subject? It would be nice if that could be turned off 
- look at the subject line now and imagine how it will look after some 
longer mail exchange.

The usual and more-or-less standard prefix for a reply is Re:.

> Danny,
> 
> you have the same start section as it is on my system.
> If you look a little bit further in the file you find this section
> 
> prefix=/usr
> exec_prefix=/usr
> NagiosBin=/usr/bin/nagios
> NagiosCfgFile=/etc/nagios/nagios.cfg
> NagiosStatusFile=/var/log/nagios/status.dat
> NagiosTempFile=/var/log/nagios/nagios.tmp
> NagiosRetentionFile=/var/log/nagios/retention.dat
> NagiosCommandFile=/var/log/nagios/rw/nagios.cmd
> NagiosVarDir=/var/log/nagios
> NagiosRunFile=/var/run/nagios.pid
> NagiosLockDir=/var/lock/subsys
> NagiosLockFile=nagios
> NagiosCGIDir=/usr/lib/nagios/cgi
> NagiosUser=nagios
> NagiosGroup=nagios
> 
> # added by thorsten
> 
> HOME=/var/log/nagios

If that is necessary then your setup is, IMO, broken.

su uses the system-wide setting for the home directoy. At least it does 
so on all the systems I know.

That has been demonstarted in this thread.

Thus, there is no need for a work-around - you'd better check what is 
broken in your setup.

> 
> This solves the problem of the /home problem, so I before other people 
> are running in the same problem it is better to add it in the distritbution.


No, it's probably only you who has that problem. So it would be better 
to fix your problem and not create new ones...

By the way - and I don't know the start script you quote from - the HOME 
variable probably needs to be exported before it takes effect.

Arno

> I am using Nagios 2.5 rpm for RH ES 3, updated to 2.7 with an rpm build 
> by my own.
> 
> Thorsten
> 
> 
>     An: [EMAIL PROTECTED]
>     Von: Daniel Meyer <[EMAIL PROTECTED]>
>     Datum: 26.01.2007 08:45AM
>     Kopie: nagios-users@lists.sourceforge.net
>     Thema: Re: [Nagios-users] Antwort: Re: $HOME is not set in init script
> 
>     On Thu, 25 Jan 2007, [EMAIL PROTECTED] wrote:
> 
>      > Daniel,
>      >
>      > nagios is started in /etc/init.d/nagios with "su - nagios -c
>     nagios", so the process
>      > inherits the environment varialbes of the root user, which
>     executes the su command.
>      > ($HOME is /root)
> 
>     Which distribution are you using? My init-script (based on the one from
>     Dag Wieers Nagios-RPM) starts nagios this way:
> 
>     case "$1" in
> 
>             start)
>                     echo "Starting network monitor: nagios"
>                     $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
>                     if [ $? -eq 0 ]; then
>                             su - $NagiosUser -c "/usr/bin/ndo2db -c
>     /etc/nagios/ndo2db.cfg"
>                             su - $NagiosUser -c "touch
>     $NagiosVarDir/nagios.log $NagiosRetentionFile"
>                             rm -f $NagiosCommandFile
>                             touch $NagiosRunFile
>                             chown $NagiosUser:$NagiosGroup $NagiosRunFile
>                             $NagiosBin -d $NagiosCfgFile
> 
> 
> 
>     Danny
>     -- 
>     Q: Gentoo is too hard to install      =        http://www.cyberdelia.de
>        and I feel like whining.           =             [EMAIL PROTECTED]
>     A: Please see /dev/null.              =
>           (from the gentoo installer FAQ) =                             \o/
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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@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

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de



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

Message: 10
Date: Fri, 26 Jan 2007 09:54:23 +0100
From: [EMAIL PROTECTED]
Subject: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in
        init    script
To: [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Message-ID:
        <[EMAIL PROTECTED]>
        
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/cc543b49/attachment.html
 

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

Message: 11
Date: Fri, 26 Jan 2007 09:58:54 +0100
From: "Barthier Wim" <[EMAIL PROTECTED]>
Subject: [Nagios-users] OpenVMS SSH
To: <nagios-users@lists.sourceforge.net>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Hello,

Question concerning OpenVMS with SSH towards Nagios.
I have some OpenVMS 7.3-2 Alpha at site and I wanna use Nagios to check
some stuff like disk space, processes, batchjobs... i have written some
procedures in DCL (Digital Command Language) which return a status and a
comment line.

The Nagios server
        OS RedHat4
        Nagios v2.5

OpenVMS client
        OS v7.3-2 (soon 8.3)
        TCPIP 5.4 eco 6
        SSL v1.2
        

The problem is, when I use SSH for the connection, the first line I get
at the Nagios server is a blanc line and then the comments I put
through. So at the Nagios console I don't see sh**. As far as I have
checked and debugged the line comes from the SSH connection.
Is there anyone who has implemented Nagios on OpenVMS with the SSH
connection? Is there a way to say at the Nagios server that he has to
ignore the first line he gets from the client?

Now I am using NRPE but I would prefer to standardize arround SSH
because we are now already using it for a various number of other
things.

Greets,

Wim Barthier

System Engineer

National Bank of Belgium





-----------------------------------------
Visit our website! http://www.nbb.be

"DISCLAIMER: The content of this e-mail message should not be
construed as binding on the part of the National Bank of Belgium
(NBB) unless otherwise and previously stated. The opinions
expressed in this message are solely those of the author and do not
necessarily reflect NBB viewpoints, particularly when the content
of this message, or part thereof, is private by nature or does not
fall within the professional scope of its author."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/aff84383/attachment.html
 

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

Message: 12
Date: Fri, 26 Jan 2007 10:42:44 +0100
From: Peter Kullmann <[EMAIL PROTECTED]>
Subject: [Nagios-users] Nagios tracked by Update-Scout.com
To: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-15

Hi,

Nagios has been added to Update-Scout.com, an interactive web
service, that informs its users about software updates and releases.
Users can set up personal update news feeds from the Update-Scout
software catalog and even add new entries to the catalog.
The address is http://www.update-scout.com .

The latest version number is currently grabbed from
http://www.nagios.org/download/ . If there is a better possibility to
retrieve the version (e.g. PAD file), I would be glad to know.

Thanks,
Peter Kullmann

==========================================
elementec Software & Consulting
Dr. Peter Kullmann
Wollgrasweg 49, 70599 Stuttgart, Germany
==========================================
Tel +49 - 711 - 4510 17 350
Fax +49 - 711 - 4510 17 222
info at update-scout.com
www.update-scout.com
==========================================







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

Message: 13
Date: Fri, 26 Jan 2007 11:16:38 +0100 (MET)
From: Arno Lehmann <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set
        in      init    script
To: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

On 1/26/2007 9:54 AM, [EMAIL PROTECTED] wrote:
> 
> Hi Danny,

I'm not Danny, but...

> in my further debugging, I recognized that something different is missing.
> 
> The whole stoy:
> 
> I wrote an event-handler which uses Expect to ssh to the faulty device. 
> ssh is not executed if I define the perl file as event-handler, but the 
> event-hander itself is executed.
> 
> If I write a bash script as event-handler, which embeddeds the perl 
> event-handler everything works fine:

You've got a problem with the perl script. The embedded Perl requires 
that you follow certain rules in your script. I suupose that there's the 
problem.

How to use ePn is documented somewhere - as I don't use it myself I 
don't have the URL here.

Arno

> #!/bin/bash
> /usr/local/nagios/libexec/eventhandlers/stop_pbr_webcomm.pl $1 $2 $3
> 
> In this case I removed the HOME assignment in the startup script and 
> reloaded nagios. Any Ideas?
> 
> Thorsten
> 
> -----Thorsten Kocher/Spirit21 schrieb: -----
> 
>     An: Daniel Meyer <[EMAIL PROTECTED]>
>     Von: Thorsten Kocher/Spirit21
>     Datum: 26.01.2007 08:56AM
>     Kopie: Thorsten Kocher/[EMAIL PROTECTED],
>     nagios-users@lists.sourceforge.net
>     Thema: Antwort: Re: [Nagios-users] Antwort: Re: $HOME is not set in
>     init script
> 
>     Danny,
> 
>     you have the same start section as it is on my system.
>     If you look a little bit further in the file you find this section
> 
>     prefix=/usr
>     exec_prefix=/usr
>     NagiosBin=/usr/bin/nagios
>     NagiosCfgFile=/etc/nagios/nagios.cfg
>     NagiosStatusFile=/var/log/nagios/status.dat
>     NagiosTempFile=/var/log/nagios/nagios.tmp
>     NagiosRetentionFile=/var/log/nagios/retention.dat
>     NagiosCommandFile=/var/log/nagios/rw/nagios.cmd
>     NagiosVarDir=/var/log/nagios
>     NagiosRunFile=/var/run/nagios.pid
>     NagiosLockDir=/var/lock/subsys
>     NagiosLockFile=nagios
>     NagiosCGIDir=/usr/lib/nagios/cgi
>     NagiosUser=nagios
>     NagiosGroup=nagios
> 
>     # added by thorsten
> 
>     HOME=/var/log/nagios
> 
>     This solves the problem of the /home problem, so I before other
>     people are running in the same problem it is better to add it in the
>     distritbution.
> 
>     I am using Nagios 2.5 rpm for RH ES 3, updated to 2.7 with an rpm
>     build by my own.
> 
>     Thorsten
> 
> 
>         An: [EMAIL PROTECTED]
>         Von: Daniel Meyer <[EMAIL PROTECTED]>
>         Datum: 26.01.2007 08:45AM
>         Kopie: nagios-users@lists.sourceforge.net
>         Thema: Re: [Nagios-users] Antwort: Re: $HOME is not set in init
>         script
> 
>         On Thu, 25 Jan 2007, [EMAIL PROTECTED] wrote:
> 
>          > Daniel,
>          >
>          > nagios is started in /etc/init.d/nagios with "su - nagios -c
>         nagios", so the process
>          > inherits the environment varialbes of the root user, which
>         executes the su command.
>          > ($HOME is /root)
> 
>         Which distribution are you using? My init-script (based on the
>         one from
>         Dag Wieers Nagios-RPM) starts nagios this way:
> 
>         case "$1" in
> 
>                 start)
>                         echo "Starting network monitor: nagios"
>                         $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
>                         if [ $? -eq 0 ]; then
>                                 su - $NagiosUser -c "/usr/bin/ndo2db -c
>         /etc/nagios/ndo2db.cfg"
>                                 su - $NagiosUser -c "touch
>         $NagiosVarDir/nagios.log $NagiosRetentionFile"
>                                 rm -f $NagiosCommandFile
>                                 touch $NagiosRunFile
>                                 chown $NagiosUser:$NagiosGroup
>         $NagiosRunFile
>                                 $NagiosBin -d $NagiosCfgFile
> 
> 
> 
>         Danny
>         -- 
>         Q: Gentoo is too hard to install      =        
>         http://www.cyberdelia.de <http://www.cyberdelia.de>
>            and I feel like whining.           =            
>         [EMAIL PROTECTED]
>         A: Please see /dev/null.              =
>               (from the gentoo installer FAQ) =                        
>             \o/
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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@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

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de



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

Message: 14
Date: Fri, 26 Jan 2007 10:19:39 -0000
From: "Wheeler, JF \(Jonathan\)" <[EMAIL PROTECTED]>
Subject: [Nagios-users] FW:  Memory leaks
To: <nagios-users@lists.sourceforge.net>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"

-----Original Message-----
From: [EMAIL PROTECTED] On Behalf Of Andreas
Ericsson
Sent: 24 January 2007 11:15

> Tobias Klausmann wrote:
(big snip)
 
>> For vanilla Nagios, at least it's clear that in whatever way
>> memory is wasted, it also slows Nagios down - a possibility would
>> be a linked list that is walked and gets appended over and over.
>> But I guess those with knowledge of the inner workings of Nagios
>> have more clue about this than I do.

> Anyone wanting to look into it should probably take a look at the
> event scheduling queue.

I have also been experiencing memory leaks, such that the kernel has
been taking drastic action by killing processes starting with nagios and
often including httpd, sshd etc.  This all seems to happen at about 4:45
every morning.  A reboot solves the problem and everything starts up
again, but yesterday I decided to reboot using the single processor
kernel (most of our nodes are dual processor, some are dual core as
well) and there is no sign of a memory leak today !

Does that give anyone any clues ?

Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory



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

Message: 15
Date: Fri, 26 Jan 2007 11:45:01 +0100
From: Espen Tagestad <[EMAIL PROTECTED]>
Subject: [Nagios-users] check_mrtgtraf returns STATE_UNKNOWN
To: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

Hi,
  
My check_mrtgtraf returns STATE_UNKOWN, it should really be STATE_OK.
Why?
  
My check-command is like this:
  
/usr/local/libexec/nagios/check_mrtgtraf -F
/usr/local/www/data/mrtg_switch/gatekeeper.log -a MAX -w 375000,375000
-c 500000,500000 -e 10
  
Output is this:
  
Traffic UNKNOWN - Max. In = 39.6 KB/s, Max. Out = 192.0
KB/s|in=39.619141KB/s;375000.000000;500000.000000;0.000000
in=192.045898KB/s;375000.000000;500000.000000;0.000000
  
  
Lowering warning and critical options triggers STATE_WARNING and
STATE_CRITICAL. Is this a bug? I can't see anything in check_mrtgtraf.c
setting STATE_OK other than when plugin is execute with a -V or -h
option.
  
Cheers,
  
Espen Tagestad




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

Message: 16
Date: Fri, 26 Jan 2007 11:38:26 +0100
From: Espen Tagestad <[EMAIL PROTECTED]>
Subject: [Nagios-users] check_mrtgtraf returns STATE_UNKNOWN
To: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

Hi,

My check_mrtgtraf returns STATE_UNKOWN, it should really be STATE_OK.
Why?

My check-command is like this:

/usr/local/libexec/nagios/check_mrtgtraf -F 
/usr/local/www/data/mrtg_switch/gatekeeper.log -a MAX -w 375000,375000 -c 
500000,500000 -e 10 

Output is this:

Traffic UNKNOWN - Max. In = 39.6 KB/s, Max. Out = 192.0 
KB/s|in=39.619141KB/s;375000.000000;500000.000000;0.000000 
in=192.045898KB/s;375000.000000;500000.000000;0.000000


Lowering warning and critical options triggers STATE_WARNING and
STATE_CRITICAL. Is this a bug? I can't see anything in check_mrtgtraf.c
setting STATE_OK other than when plugin is execute with a -V or -h
option.

regards,

Espen 



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

Message: 17
Date: Fri, 26 Jan 2007 12:56:59 +0100 (CET)
From: Daniel Meyer <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set
        in init script
To: Arno Lehmann <[EMAIL PROTECTED]>
Cc: nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Fri, 26 Jan 2007, Arno Lehmann wrote:

>> Hi Danny,
> I'm not Danny, but...
but i am :-)

> You've got a problem with the perl script. The embedded Perl requires
> that you follow certain rules in your script. I suupose that there's the
> problem.

Yep, clearly a problem with ePN.
You can just call /usr/bin/perl /path/to/your/plugin.pl as a check command 
to prevent the ePN usage for just that plugin/event handler.

With nagios 3 you'll be able to enable/disable epn on a per script basis 
by using settings in the first few lines within the script

Danny
-- 
Q: Gentoo is too hard to install      =        http://www.cyberdelia.de
    and I feel like whining.           =             [EMAIL PROTECTED]
A: Please see /dev/null.              =
       (from the gentoo installer FAQ) =                             \o/



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

Message: 18
Date: Fri, 26 Jan 2007 13:11:55 +0100
From: "Yolanda Santos" <[EMAIL PROTECTED]>
Subject: [Nagios-users] Different check_http?
To: nagios-users@lists.sourceforge.net
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I have Nagios 2.5 with plugins 1.4.5
I have an url and it can happend 2 possibilities:

1? If it's OK, it responds a binary file

2? If it's ERROR, it responds a html page, wich tell us that 'The service is
not available'

I want to check this, but... how can I do it?
How can I check if a determinated string is in the binary file?
Or.... can I change the check_http for giving me an ERROR when find an
string?

Normaly, if you check an url, and a string to expect in the content, if you
find it, you have an OK answer.
I want the opposite. If I find a string in the content, I want an ERROR
answer...
Is this possible?

Thanks.
Yolanda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/10290ad1/attachment.html
 

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

Message: 19
Date: Fri, 26 Jan 2007 13:31:40 +0100
From: "Richard Luys-Nagios User" <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] Different check_http?
To: "Yolanda Santos" <[EMAIL PROTECTED]>,
        nagios-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; delsp=yes;
        charset=iso-8859-15

Yolanda,

With the plugin package came (if I'm not mistaken) a small binary called  
'negate'. This should be in your plugin directory. With this you can  
negate the returncodes of your plugins; ie: Error becomes Ok, and vice  
versa. See the help output of negate below:

negate (nagios-plugins 1.3.1) 1.5.2.2
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 2002 Karl DeBisschop <[EMAIL PROTECTED]>

Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).

Usage:
  negate [-t timeout] <definition of wrapped plugin>
  negate (-h | --help) for detailed help
  negate (-V | --version) for version information

Options:
   -t, --timeout=INTEGER
     Terminate test if timeout limit is exceeded (default: 9)
      [keep this less than the plugin timeout to retain CRITICAL status]

This plugin is a wrapper to take the output of another plugin and invert  
it.
If the wrapped plugin returns STATE_OK, the wrapper will return  
STATE_CRITICAL.
If the wrapped plugin returns STATE_CRITICAL, the wrapper will return  
STATE_OK.
Otherwise, the output state of the wrapped plugin is unchanged.

Send email to nagios-users@lists.sourceforge.net if you have questions
regarding use of this software. To submit patches or suggest improvements,
send email to [EMAIL PROTECTED]

Richard




On Fri, 26 Jan 2007 13:11:55 +0100, Yolanda Santos <[EMAIL PROTECTED]>  
wrote:

> Hi,
>
> I have Nagios 2.5 with plugins 1.4.5
> I have an url and it can happend 2 possibilities:
>
> 1? If it's OK, it responds a binary file
>
> 2? If it's ERROR, it responds a html page, wich tell us that 'The  
> service is
> not available'
>
> I want to check this, but... how can I do it?
> How can I check if a determinated string is in the binary file?
> Or.... can I change the check_http for giving me an ERROR when find an
> string?
>
> Normaly, if you check an url, and a string to expect in the content, if  
> you
> find it, you have an OK answer.
> I want the opposite. If I find a string in the content, I want an ERROR
> answer...
> Is this possible?
>
> Thanks.
> Yolanda



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



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

Message: 20
Date: Fri, 26 Jan 2007 19:43:34 +0530
From: "ankush grover" <[EMAIL PROTECTED]>
Subject: [Nagios-users] removing acknowledge comments associated with
        the     services or host from nagios
To: "Nagios Users Mailinglist" <nagios-users@lists.sourceforge.net>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

hi friends,

I have configured Nagios 2.6 in a Production Environment. There are
about 200 servers and about 1000 services which are being monitored by
nagios.

I want to remove acknowledge comments associated with the hosts or
services  is there any command through which I can achieve this.


Thanks & Regards


Ankush Grover



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

Message: 21
Date: Fri, 26 Jan 2007 09:28:11 -0500
From: "Andrew Laden" <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] removing acknowledge comments associated
        with    theservices or host from nagios
To: "ankush grover" <[EMAIL PROTECTED]>,        "Nagios Users Mailinglist"
        <nagios-users@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

I have a script that loads in the status and comments.dat file, and
looks for any services that are OK, that have acknowlege comments
associated with them, and the give the option to delete.

I don't consider this ready for prime time, so I havent thought about
putting it up on nagios exchange yet. But you are free to try to adapt
it.

Rename to complean.tar.gz, Unzip, untar, edit for your paths, and run
comclean.pl

-Andrew 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of ankush grover
> Sent: Friday, January 26, 2007 9:14 AM
> To: Nagios Users Mailinglist
> Subject: [Nagios-users] removing acknowledge comments 
> associated with theservices or host from nagios
> 
> hi friends,
> 
> I have configured Nagios 2.6 in a Production Environment. 
> There are about 200 servers and about 1000 services which are 
> being monitored by nagios.
> 
> I want to remove acknowledge comments associated with the 
> hosts or services  is there any command through which I can 
> achieve this.
> 
> 
> Thanks & Regards
> 
> 
> Ankush Grover
> 
> --------------------------------------------------------------
> -----------
> 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@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 communication is intended only for the addressee(s) and may contain 
confidential information. We do not waive any confidentiality by misdelivery. 
If you receive this communication in error, any use, dissemination, printing or 
copying is strictly prohibited; please destroy all electronic and paper copies 
and notify the sender immediately.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: complean.tar.gz.txt
Url: 
http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/642cd1b6/attachment.txt
 

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

-------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


End of Nagios-users Digest, Vol 8, Issue 45
*******************************************

-------------------------------------------------------------------------
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@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

Reply via email to