Re: [Nagios-users] check_http oddness

2009-06-02 Thread Holger Weiss
* Janet Sullivan jsulli...@mndigital.com [2009-06-01 10:45]:
 Check_http reports a timeout, however, a packet capture shows that
 data was in fact received.

 Data Sent:

   GET /admin/ping?auser=XXXapaswd=XXX HTTP/1.0
   User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
   Connection: close

 Data Received:

   HTTP/1.0 200 OK
   Connection: Keep-Alive

While the plugin expects the server to close the connection after
sending the response, the server initiates a HTTP/1.0-style persistent
connection.  The plugin doesn't handle this properly and awaits more
data until it runs into the timeout.

Could you check whether you can reproduce the problem using the current
snapshot and the -H option (in which case the plugin should request an
HTTP/1.1 connection)?  See:

http://nagiosplug.sourceforge.net/snapshot/

Thanks, Holger

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] check_http -s

2009-05-08 Thread Holger Weiss
* Proskurin Kirill proskurin...@fxclub.org [2009-05-08 18:44]:
 I try to add a check_http with expecting some word in a body.
 But:
 
 ./check_http -v -H example.com -u /some.jsp -P -s=ERROR

In this command line, -s=ERROR will be interpreted as an argument to
the -P option, see the --help output:

$ check_http -h | grep -A 1 -- ' -P'
 -P, --post=STRING
URL encoded http POST data

Without the -P option (or with an appropriate argument to the -P
option), things should work as expected:

$ check_http -H www.nagiosplugins.org -P -s=ERROR
HTTP OK HTTP/1.1 200 OK - 19113 bytes in 1.578 seconds 
|time=1.578360s;;;0.00 size=19113B;;;0
$ check_http -H www.nagiosplugins.org -s=ERROR
HTTP CRITICAL - string not found|time=0.861949s;;;0.00 size=19048B;;;0

Holger

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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] check_http -s

2009-05-08 Thread Holger Weiss
* Proskurin Kirill proskurin...@fxclub.org [2009-05-08 19:52]:
 ./check_http -v -H example.com -u /some.jsp -s=OKAY

Try -s OKAY or --string=OKAY.

Holger

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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] radius checks

2009-03-04 Thread Holger Weiss
* Jason Frisvold frisv...@lafayette.edu [2009-03-04 10:09]:
   I tried the check_radius plugin that ships with nagios-plugins, but I
 kept getting Auth failed and no packets were ever sent to my radius
 server.

What's the check_radius command line you're using and how does your
radiusclient.conf look like?

FWIW, I use a command line such as:

check_radius -F /path/to/etc/radius/client.conf \
 -H radius.example.com -P 1812 \
 -u username -p password

... and a configuration similar to the following:

#
# /path/to/etc/radius/client.conf:
#
authserver  radius.example.com
acctserver  radius.example.com
servers /path/to/etc/radius/servers
login_tries 4
login_timeout   60
radius_timeout  10
radius_retries  3
dictionary  /path/to/etc/radius/dictionary
mapfile /path/to/etc/radius/port-id-map
seqfile /path/to/var/run/radius/seq
nologin /etc/nologin

#
# /path/to/etc/radius/servers:
#
radius.example.com  sh4red-s3cr3t

Holger

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] radius checks

2009-03-04 Thread Holger Weiss
* Jason Frisvold frisv...@lafayette.edu [2009-03-04 11:12]:
 Holger Weiss wrote:
  What's the check_radius command line you're using and how does your
  radiusclient.conf look like?

 With check_radius, I had used a configuration almost identical to what
 you had (of course, addresses and secrets were different) ...  I've run
 across an old message mentioning that running check_radius as root made
 it work..

It works just fine for me without root privileges.  Is the radiusclient
configuration (including the servers file) readable for the user
executing check_radius?

 However, while I can get it to remotely contact the server if I run it
 as root, I still get an Auth failed error.  I have, again, double
 checked secrets and made sure that the nagios server is in the
 clients.conf file properly.
 
 And so now I have multiple radius clients that cannot seem to get the
 secret correct, yet radtest works flawlessly.
 
 Could this possibly be a 64-bit issue?  These servers are x86_64 RHEL5
 servers..  Maybe that's a problem?

Yes, there are issues with radiusclient on 64-bit systems.  However, it
should work with radiusclient-ng[*], or with the following patch against
radiusclient (included with Debian's libradius1 0.3.2-9):

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321229

Holger

[*] http://developer.berlios.de/projects/radiusclient-ng/

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] check_dhcp seems not working

2009-01-15 Thread Holger Weiss
JFTR:

* jmose...@corp.xanadoo.com [2009-01-15 13:06]:
 If you're running Nagios on a different network than the DHCP server and
 there is a firewall in between, you'll probably have to do several things:
 
 1. Open up a hole in the firewall to allow the Nagios server to request a
 DHCP address from the DHCP server
 2. Have a DHCP relay statement on the router's interface your Nagios server
 connects to so it knows to which server to relay the DHCP request to
 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the
 Nagios server so it can offer a valid IP address

For such a setup, step (2) isn't necessary, as check_dhcp will mimic a
DHCP relay if the --unicast option is specified.

Holger

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] check_dhcp seems not working

2009-01-15 Thread Holger Weiss
* Christian Iñiguez challenger_jos...@yahoo.com.mx [2009-01-15 10:46]:
 I have a linux server as dhcp server and it's working very well, and
 I'd like to monitoring it with nrpe plugin and check_dhcp.
 
 The problem here is the outcome of check_dhcp is always: CRITICAL: No
 DHCPOFFERs were received. But the server is working alright.

Do you see the request and a reply in the DHCP server's logs?  If so,
could you verify that the server's reply reaches the host running
check_dhcp using tcpdump(8) (e.g., tcpdump -vv port bootps)?

Holger

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] check_dhcp seems not working

2009-01-15 Thread Holger Weiss
* jmose...@corp.xanadoo.com [2009-01-15 14:59]:
 Holger Weiss hol...@cis.fu-berlin.de  wrote:
 * jmose...@corp.xanadoo.com [2009-01-15 13:06]:
  2. Have a DHCP relay statement on the router's interface your Nagios server
  connects to so it knows to which server to relay the DHCP request to

 For such a setup, step (2) isn't necessary, as check_dhcp will mimic a
 DHCP relay if the --unicast option is specified.

 What I meant was you'd have to have an ip helper-address configured.

But that's precisely what you don't need if you use check_dhcp's
--unicast option :-)  If you configure an ip helper-address (as
Cisco calls it), the router will relay local DHCP broadcast packets to
the specified remote DHCP server.  check_dhcp --unicast creates the
same sort of unicast packets such a relay would generate.

Holger

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Getting rid of ACKNOWLEDGEMENT-Mails?

2008-09-08 Thread Holger Weiss
* Marcus [EMAIL PROTECTED] [2008-09-08 10:04]:
 I don't want any ACKNOWLEDGEMENT-mails sent out any more. Unfortunately,
 after about digging an hour in the current docs, I can't find the
 responsible flag, which would have to be set.

We simply unset the Send Notification: check box for ACKs in the web
interface by default, so that notifications will only be sent if the box
was explicitly checked (see the attached diff against cgi/cmd.c).

Holger
Index: cmd.c
===
RCS file: /cvsroot/nagios/nagios/cgi/cmd.c,v
retrieving revision 1.42
diff -u -r1.42 cmd.c
--- cmd.c   19 May 2008 18:42:26 -  1.42
+++ cmd.c   8 Sep 2008 08:31:23 -
@@ -945,7 +945,7 @@
printf(INPUT TYPE='checkbox' NAME='sticky_ack' 
CHECKED);
printf(/b/td/tr\n);
printf(trtd CLASS='optBoxItem'Send 
Notification:/tdtdb);
-   printf(INPUT TYPE='checkbox' NAME='send_notification' 
CHECKED);
+   printf(INPUT TYPE='checkbox' 
NAME='send_notification');
printf(/b/td/tr\n);
}
printf(trtd 
CLASS='optBoxItem'Persistent%s:/tdtdb,(cmd==CMD_ACKNOWLEDGE_HOST_PROBLEM)?
 Comment:);
@@ -971,7 +971,7 @@
printf(INPUT TYPE='checkbox' NAME='sticky_ack' 
CHECKED);
printf(/b/td/tr\n);
printf(trtd CLASS='optBoxItem'Send 
Notification:/tdtdb);
-   printf(INPUT TYPE='checkbox' NAME='send_notification' 
CHECKED);
+   printf(INPUT TYPE='checkbox' 
NAME='send_notification');
printf(/b/td/tr\n);
}
printf(trtd 
CLASS='optBoxItem'Persistent%s:/tdtdb,(cmd==CMD_ACKNOWLEDGE_SVC_PROBLEM)?
 Comment:);
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] Plugin Output Standardization

2008-02-27 Thread Holger Weiss
* [EMAIL PROTECTED] [2008-02-27 07:58]:
 I don't think printing the servicename would be helpful.  The
 servicename is already available in both the web and notification
 output too.

I agree, see the thread I started on this topic some time ago in
nagiosplug-devel@:

http://thread.gmane.org/gmane.network.nagios.plugins.devel/5155

While I'd also omit the status from the output, others would rather keep
that or prefer to also keep the service name.  So, we thought the best
solution would be to make the output format configurable at build time,
which I've implemented[*] but not yet committed.

Holger

[*] http://article.gmane.org/gmane.network.nagios.plugins.devel/5179

-
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] [Nagiosplug-devel] Licensing of Official and 3rd Party Plugins

2008-01-10 Thread Holger Weiss
* Thomas Guyot-Sionnest [EMAIL PROTECTED] [2008-01-10 06:16]:
 On 10/01/08 04:37 AM, Hari Sekhon wrote:
  Holger Weiss wrote:
  Personally, I'm somewhat annoyed by the various incompatible Open Source
  licenses floating around, as it they can make re-using code impossible
  in some cases.  As the GPLv3 is yet another license which is
  incompatible to everything else, I'm not really a fan of it.  I would
  prefer GPLv2 or higher licenses over GPLv3-only, if possible.

 Incompatibilities among GPL license are only brought by GPLvX-only
 type of licenses. Programs and libraries using GPLvX or higher will
 always avoid compatibility problems among GPL licenses.

Which is why I prefer the latter over the former, but not all people do
it this way.  See the Linux kernel's license, for example.

 GPL is meant to be incompatible with other licenses. If you're worried
 about that you should use the BSD license

Yes, I personally do :-)

 but keep in mind that OSS wouldn't be nearly as strong as it is with
 BSD. Many companies contributing to OSS would just rip the code if it
 was under the BSD license.

That's the idea of the GPL and in some cases it definitely worked, but I
doubt this effect is really that strong in practice.  My guess would be
that most companies which don't want to (or cannot) contribute their
code to OSS won't be forced by the GPL to do so, they simply won't use
GPL code.

  Thanks for the response, I think your points are valid. I'll continue to 
  use a GPL version 2 or higher license in order to try to maintain 
  compatibility and then I'll go GPLv3 when more people get in to it.

 That will likely change for the next release if we update Gnulib to the
 latest version, as they bumped their license to GPL v3.

I thought so, too, but I checked before my other posting and most of
Gnulib is actually LGPL'd, despite the headers in the C files:

| Many modules are provided dual-license, either GPL or LGPL at your
| option.  The headers of files in the lib directory (e.g., lib/error.c)
| state GPL for convenience, since the bulk of current gnulib users are
| GPL'd programs.  But the files in the modules directory (e.g.,
| modules/error) state the true license of each file, and when you use
| 'gnulib-tool --lgpl --import modules', gnulib-tool either rewrites
| the files to have an LGPL header as part of copying them from gnulib
| to your project directory, or fails because the modules you requested
| were not licensed under LGPL.

[ http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=COPYING ]

AFAICS, we're currently not using any of the GPL-only Gnulib files.

Anyway, if you (or others) would like to upgrade to GPLv3, I'm perfectly
fine with that.  I just stated my personal preference, but the license
question isn't important to me.

Holger

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] [Nagiosplug-devel] Licensing of Official and 3rd Party Plugins

2008-01-10 Thread Holger Weiss
* Andreas Ericsson [EMAIL PROTECTED] [2008-01-10 15:48]:
 Holger Weiss wrote:
  * Thomas Guyot-Sionnest [EMAIL PROTECTED] [2008-01-10 06:16]:
  Incompatibilities among GPL license are only brought by GPLvX-only
  type of licenses. Programs and libraries using GPLvX or higher will
  always avoid compatibility problems among GPL licenses.
 
  Which is why I prefer the latter over the former, but not all people do
  it this way.  See the Linux kernel's license, for example.

 It isn't really an issue for the kernel though, as it's never loaded as
 a library.

The issue is using kernel code directly in other projects.  If this
weren't an issue there'd be no point in using an Open Source license for
non-library-code.

  GPL is meant to be incompatible with other licenses. If you're worried
  about that you should use the BSD license
 
  Yes, I personally do :-)

 BSD license has other issues. If there had ever been a perfect one, the
 need for a billion different ones wouldn't be needed.

*shrug*, I don't see the issues, I guess the main reason the variants
emerged was to keep the lawyers of various institutions busy.  Well, an
issue I do see is with Berkeley's original 4-clause license, which isn't
compatible with the GPL, but I don't use that.

  but keep in mind that OSS wouldn't be nearly as strong as it is with
  BSD. Many companies contributing to OSS would just rip the code if it
  was under the BSD license.
 
  That's the idea of the GPL and in some cases it definitely worked, but I
  doubt this effect is really that strong in practice.  My guess would be
  that most companies which don't want to (or cannot) contribute their
  code to OSS won't be forced by the GPL to do so, they simply won't use
  GPL code.

 Or they'll use GPL code and have in-house modifications that are never
 made public, which is exactly what they would have done had it been BSD-
 or MIT-licensed instead.

Yup.

 For the plugins it won't matter in the slightest which version is used,
 as it isn't a library and so other programs will never have to think
 about it.

It doesn't matter for the plugins, but authors which like to use plugin
code in their projects would have to think about it.

I guess it's just me, but I've been bitten by license incompatibility
issues more than once, so I'm a bit annoyed of these.  However, I fully
agree it's no big deal for the plugin's project.  I should've kept
silent :-)

Holger

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Licensing of Official and 3rd Party Plugins

2008-01-09 Thread Holger Weiss
* Hari Sekhon [EMAIL PROTECTED] [2008-01-03 09:47]:
 Are there any plans to upgrade the official plugin distribution to GPLv3?

This hasn't been discussed yet, so I can only speak for myself.

 Are there any advantages/disadvantages to doing so?

First, almost all of the official plugins explicitly state that they're
licensed under either version 2 of the License, or (at your option) any
later version, so you can use and redistribute them with GPLv3 code
already.  Obviously, the advantage of switching to a GPLv3-only
license and therefore prohibiting redistribution under the GPLv2 would
be to force the additional restrictions imposed by the GPLv3, which I'm
personally not interested in.  It would also make using other people's
GPLv2-only code impossible.  On the other hand, as soon as we want to
include some GPLv3-only code, we'll have to upgrade to GPLv3-only, so
I'd _guess_ it'll happen some day anyway.

 Does anyone have any opinions in licensing of 3rd party plugins as GPLv3
 instead of GPLv2?

Personally, I'm somewhat annoyed by the various incompatible Open Source
licenses floating around, as it they can make re-using code impossible
in some cases.  As the GPLv3 is yet another license which is
incompatible to everything else, I'm not really a fan of it.  I would
prefer GPLv2 or higher licenses over GPLv3-only, if possible.
However, that's just me.  People who are interested in the new GPLv3
restrictions will of course prefer GPLv3-only licenses.

Holger

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] check_by_ssh problem

2008-01-07 Thread Holger Weiss
* [EMAIL PROTECTED] [2008-01-03 14:31]:
  * [EMAIL PROTECTED] [2008-01-02 21:56]:
   On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote:
   I want to do some checks on a remote host using check_by_ssh.
   Although user nagios can ssh to that host without being asked
   for a password the webinterface of my nagios is telling me:
  
   Unknown Remote command execution failed: Permission denied
   (publickey,keyboard-interactive)
  
   If I run nagios in the foreground I get prompts for password.
  
   Any idea what I might have missed?
  
   Are you using the exact same hostname/IP address for your command
   line test as the nagios user that you have in your configuration?
 
  Yes, I think so.
 
  I think so doesn't sound very convincing :-)
 
  Anyway, there's no ssh-agent(1) involved?  Does it work on the
  command line if you use env -i /path/to/check_by_ssh [...]?

 Yes it does work.
 Does it matter if I do not login as nagios to the webinterface?

No, the web interface shouldn't matter at all.  If it check_by_ssh works
on the command line, executed via env -i by the user running Nagios,
then I'm pretty sure you didn't configure Nagios to execute exactly the
same command as you did on the command line (as Marc suggested).

Holger

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] check_by_ssh problem

2008-01-02 Thread Holger Weiss
* [EMAIL PROTECTED] [2008-01-02 21:56]:
  On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote:
  I want to do some checks on a remote host using check_by_ssh. Although
  user nagios can ssh to that host without being asked for a password
  the webinterface of my nagios is telling me:
 
  Unknown
  Remote command execution failed: Permission denied
  (publickey,keyboard-interactive)
 
  If I run nagios in the foreground I get prompts for password.
 
  Any idea what I might have missed?
 
  Are you using the exact same hostname/IP address for your command line
  test as the nagios user that you have in your configuration?

 Yes, I think so.

I think so doesn't sound very convincing :-)

Anyway, there's no ssh-agent(1) involved?  Does it work on the command
line if you use env -i /path/to/check_by_ssh [...]?

Holger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Switching to passive checks instead of active ones?

2007-10-05 Thread Holger Weiss
* Andreas Ericsson [EMAIL PROTECTED] [2007-10-05 10:42]:
 Ivan Fetch wrote:
  I'm looking for folks doing something like this, or reasons why this 
  might be a particularly bad idea.  Perhaps Nagios triggering checks 
  has so much sanity built in, that moving checks to the 
  push-to-Nagios model is a bad idea?

We use NSCA for a large number of service checks (we don't use NRPE) and
it works just fine for us.

 It's not a particularly bad idea, but you'll have to accept that you don't
 get nagios' check max_check_attempts times before sending alerts logic,
 unless you implement it yourself.

You do get that logic, you can specify max_check_attempts just as for
active checks.  You just don't get a retry_check_interval different from
the normal_check_interval unless you implement it yourself.  For us,
that's not a problem, as we don't want a different retry_check_interval
anyway (for most checks, we submit check results once a minute).  But if
you rely on this Nagios feature, that's a real drawback of NSCA, yes.

Holger

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] Switching to passive checks instead of active ones?

2007-10-05 Thread Holger Weiss
* Ivan Fetch [EMAIL PROTECTED] [2007-10-05 09:43]:
 On Fri, 5 Oct 2007, Holger Weiss wrote:
  You do get that logic, you can specify max_check_attempts just as for
  active checks.  You just don't get a retry_check_interval different from
  the normal_check_interval unless you implement it yourself.  For us,
  that's not a problem, as we don't want a different retry_check_interval
  anyway (for most checks, we submit check results once a minute).  But if
  you rely on this Nagios feature, that's a real drawback of NSCA, yes.

 Good point.  We do use retry_check_interval in some cases, but it's not 
 strictly necessary.  If a it's fixed state and notification are 
 important enough, and desired before the next natural check, an admin 
 could always run the passive check manually.

Yes.

If a service is in a _hard_ non-OK state (so that notifications have
been sent out), it'll be re-checked using the normal_check_interval
anyway, so _here_ there is no difference between active and passive
checks.  The retry_check_interval just specifies the check interval for
active checks during soft states, that is, the interval for the
max_check_attempts number of checks which are done for active checks in
a non-OK state before notifications are sent out.  This interval cannot
be specified for passive checks via Nagios, of course.

Holger

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] nagios-plugins -- ./stdint.h:76:6: operator '' has no left operand

2007-10-02 Thread Holger Weiss
* Caylan Van Larson [EMAIL PROTECTED] [2007-10-02 11:32]:
 `/root/nrpe.install/src/nagios-plugins-1.4.10/gl'
 if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl   -g -O2 -MT fsusage.o -MD 
 -MP -MF .deps/fsusage.Tpo -c -o fsusage.o fsusage.c; \
 then mv -f .deps/fsusage.Tpo .deps/fsusage.Po; else rm -f 
 .deps/fsusage.Tpo; exit 1; fi
 In file included from fsusage.h:25,
  from fsusage.c:22:
 ./stdint.h:76:6: operator '' has no left operand

Could you show copy'n'paste line 76 of the file

/root/nrpe.install/src/nagios-plugins-1.4.10/gl/stdint.h

for us?

Holger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] nagios-plugins -- ./stdint.h:76:6: operator '' has no left operand

2007-10-02 Thread Holger Weiss
* Caylan Van Larson [EMAIL PROTECTED] [2007-10-02 13:35]:
 On Oct 2, 2007, at 12:35 PM, Caylan Van Larson wrote:
 On Oct 2, 2007, at 11:42 AM, Holger Weiss wrote:
 * Caylan Van Larson [EMAIL PROTECTED] [2007-10-02 11:32]:
 ./stdint.h:76:6: operator '' has no left operand

 Could you show copy'n'paste line 76 of the file

 /root/nrpe.install/src/nagios-plugins-1.4.10/gl/stdint.h

 for us?

 # if   ! defined __BIT_TYPES_DEFINED__
   /* Linux libc4 = 4.6.7 and libc5 have a sys/bitypes.h that defines
  int{8,16,32,64}_t and __BIT_TYPES_DEFINED__.  In libc5 = 5.2.2 it is
  included by sys/types.h.  */
 # include sys/bitypes.h
 #endif

 It's worth noting that I had no problem building the plugins on RHEL 3/4 
 boxes.

What's the output of the following commands?

$ cd /root/nrpe.install/src/nagios-plugins-1.4.10
$ grep ^HAVE config.log gl/Makefile

Just to make sure, running make distclean and re-running ./configure;
make won't solve the problem?

Holger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Standard Nagios Plugins 1.4.9 and IPv6 problem?

2007-09-23 Thread Holger Weiss
* Holger Weiss [EMAIL PROTECTED] [2007-09-21 17:32]:
 * Andreas Ericsson [EMAIL PROTECTED] [2007-09-21 17:06]:
  Holger Weiss wrote:
   ---
   --- netutils.c.orig   2007-01-20 07:07:48.0 +0100
   +++ netutils.c2007-09-21 16:28:13.117372070 +0200
   @@ -39,7 +39,7 @@
unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; 
int econn_refuse_state = STATE_CRITICAL;
int was_refused = FALSE;
   -int address_family = AF_UNSPEC;
   +int address_family = PF_INET;
 
  Since we're nitpicking anyways, this should be AF_INET, although
  any system where AF_INET != PF_INET is quite clearly insane ;-)

 Heh :-P  At least on Linux, NetBSD and Solaris, getaddrinfo(3) uses the
 PF_* macros for the addrinfo-ai_family.  NetBSD's manpage explicitely
 defines it as the protocol family for the socket :-P

Okay, I did a little more digging on this critical question and stand
corrected :-)  While the original definition of getaddrinfo(3) in POSIX
1003.1g apparently[1] used PF_*, the current version of the standard[2]
uses AF_*.  Linux' getaddrinfo(3) manpage was changed[3] accordingly.

Holger

[1] See ftp://ftp.fu-berlin.de/doc/rfc/rfc2553.txt (6.4), for example.
[2] http://www.opengroup.org/onlinepubs/009695399/functions/getaddrinfo.html
http://www.opengroup.org/onlinepubs/009695399/basedefs/netdb.h.html
[3] http://article.gmane.org/gmane.linux.kernel/339408 (getaddrinfo.3)

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Standard Nagios Plugins 1.4.9 and IPv6 problem?

2007-09-23 Thread Holger Weiss
* Holger Weiss [EMAIL PROTECTED] [2007-09-21 18:11]:
 * Frost, Mark {PBG} [EMAIL PROTECTED] [2007-09-21 11:14]:
  I guess the big problem I have here is what is necessary to convince an
  application that a system does not use IPv6?  That there's no interface
  configured to use IPv6? (check)  That there's no routing or other
  networking setup at boot time to enable it? (check)  I feel that I'm an
  unfortunate victim of Linux just throws IPv6 include files into its base
  configuration whether I want them or not so the plugins assume that they
  might as well try it.

 As I said, the plugins don't actually decide to try IPv6 DNS lookups,
 they just call the system's getaddrinfo(3) function without explicitly
 stating that the function should only try IPv4 address lookups.  The
 latter could be done and I'll implement that behaviour for ./configure
 --without-ipv6.

This change is now committed and will be in the next release.

Holger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Standard Nagios Plugins 1.4.9 and IPv6 problem?

2007-09-21 Thread Holger Weiss
* Andreas Ericsson [EMAIL PROTECTED] [2007-09-21 17:06]:
 Holger Weiss wrote:
  ---
  --- netutils.c.orig 2007-01-20 07:07:48.0 +0100
  +++ netutils.c  2007-09-21 16:28:13.117372070 +0200
  @@ -39,7 +39,7 @@
   unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; 
   int econn_refuse_state = STATE_CRITICAL;
   int was_refused = FALSE;
  -int address_family = AF_UNSPEC;
  +int address_family = PF_INET;

 Since we're nitpicking anyways, this should be AF_INET, although
 any system where AF_INET != PF_INET is quite clearly insane ;-)

Heh :-P  At least on Linux, NetBSD and Solaris, getaddrinfo(3) uses the
PF_* macros for the addrinfo-ai_family.  NetBSD's manpage explicitely
defines it as the protocol family for the socket :-P

Holger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Standard Nagios Plugins 1.4.9 and IPv6 problem?

2007-09-21 Thread Holger Weiss
* Frost, Mark {PBG} [EMAIL PROTECTED] [2007-09-21 11:20]:
 - because that first request fails, it sends another request now trying
 with a search domain combination, say foo.bar.com.biz.pvt (usually
 just stupidly appending a domain to an already FQDN).

Appending search domains can be suppressed by using host.example.com.
instead of host.example.com as the host name.

Holger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Standard Nagios Plugins 1.4.9 and IPv6 problem?

2007-09-21 Thread Holger Weiss
* Frost, Mark {PBG} [EMAIL PROTECTED] [2007-09-21 11:14]:
 It does open a socket with parameters for IPv6 (AF_INET6) and then tells
 the resolver to run the query.

The plugins won't actually open an IPv6 socket, they merely call
getaddrinfo(3) which, depending on how it's called, may query your
nameserver for an  record before querying it for an A record.  This
is done before opening a socket.

 I guess the big problem I have here is what is necessary to convince an
 application that a system does not use IPv6?  That there's no interface
 configured to use IPv6? (check)  That there's no routing or other
 networking setup at boot time to enable it? (check)  I feel that I'm an
 unfortunate victim of Linux just throws IPv6 include files into its base
 configuration whether I want them or not so the plugins assume that they
 might as well try it.

As I said, the plugins don't actually decide to try IPv6 DNS lookups,
they just call the system's getaddrinfo(3) function without explicitly
stating that the function should only try IPv4 address lookups.  The
latter could be done and I'll implement that behaviour for ./configure
--without-ipv6.

Holger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Solaris10 (Sparc)

2007-09-04 Thread Holger Weiss
* David Rivera [EMAIL PROTECTED] [2007-09-05 00:59]:
 I see that Solaris10 on x86 works a a Nagios server, so does that mean
 that sparc based servers will not work?

It works fine for me on SPARC.

Holger

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] configuring check_mysqld.pl

2007-08-31 Thread Holger Weiss
* Marc Powell [EMAIL PROTECTED] [2007-08-31 09:20]:
  I tried the following with check_mysqld.pl plugin being the Nagios user.
  Following is the output
  
  [EMAIL PROTECTED] ~]$ cd /usr/local/nagios/libexec
  [EMAIL PROTECTED] libexec]$ ./check_mysqld.pl -H localhost -u root -p root
  MYSQL 5.0.22 OK
  From the output, it seems the plugin working fine from the command line.
 
 Great! That's not how you've told nagios to run it though. I explained
 why in my original message. You'll want to review the documentation on
 using macros in commands, specifically passing arguments. While I could
 just hand you the answer, it's a basic and important concept you should
 understand and the documentation covers it well.

Yup, I gave the pointers on nagiosplug-help@ yesterday:

http://article.gmane.org/gmane.network.nagios.plugins/2885

Holger

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] Check_icmp

2007-08-27 Thread Holger Weiss
* Edwin Zoeller [EMAIL PROTECTED] [2007-08-27 10:58]:
 Can anyone supply me with the syntax of how check_icmp should be entered
 in the checkcommands.cfg file.

Well, an example command definition (which assumes $USER1$ points to
your plugins directory) would be:

define command {
command_namecheck-host-alive
command_line$USER1$/check_icmp -H $HOSTADDRESS$
}

But it depends on how you want check_icmp to behave, of course.  See
check_icmp -h for the available options.

Holger

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] FW: Plugin check_by_ssh: On a particular server using check_by_ssh I get 'Remote command execution failed:'

2007-08-07 Thread Holger Weiss
* Nicholas Magers [EMAIL PROTECTED] [2007-08-08 11:00]:
 I have been using the check_by_ssh command on some linux servers and was
 attempting to use it on a Solaris server.

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

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] Plugin check_by_ssh: On a particular server using check_by_ssh I get 'Remote command execution failed:'

2007-08-06 Thread Holger Weiss
* Nicholas Magers [EMAIL PROTECTED] [2007-08-07 13:01]:
 Is it the banner?

Most probably, yes.  You could try check_by_ssh's --quiet option or
(with check_by_ssh from the 1.4.9 release) --skip-stderr:

| -q, --quiet
|Tell ssh to suppress warning and diagnostic messages [optional]
| -E, --skip-stderr[=n]
|Ignore all or (if specified) first n lines on STDERR [optional]

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] check_ping vs check_icmp?

2007-07-30 Thread Holger Weiss
* Rogelio Bastardo [EMAIL PROTECTED] [2007-07-30 10:37]:
 I just recently noticed that there is a check_ping and a check_icmp plugin.

 I ran ./check_plugin --help on each, but am still unclear as to what
 each does differently.

Unlike check_ping, check_icmp allows for checking multiple hosts at
once; the behaviour is more configurable; and it generates performance
data output.  But the main difference is that check_ping executes the
system's ping(1) command and parses its output while check_icmp talks
ICMP itself.  This usually means that check_icmp must be installed
setuid root, but also that its performance is much better.  Given that
Nagios 2.x holds off on doing anything else while performing host
checks, this might be an important advantage.

So, if you don't mind installing the plugin setuid root, I'd recommend
using check_icmp.

 Does check_icmp include traceroute and other non-ping ICMP checks?

No.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] Generating PDF documentation

2007-04-24 Thread Holger Weiss
* Daniel Dehennin [EMAIL PROTECTED] [2007-04-24 18:21]:
 I hope this is the right place to ask this, I want to generate the
 documentation as PDF.
 
 I see that Holger Weiss provide the script and the configuration to do
 so. The PDF is in letter format and I would like to generate it in
 another format.
 
 Is it possible to provide the generation tools ?

I used html2ps(1) with the following configuration file and expect(1)
wrapper:

ftp://ftp.in-berlin.de/pub/users/weiss/nagios/doc/src/

The wrapper is only useful if you retrieve the HTML input via HTTP (as
opposed to using a local copy of the docs), as in this case, html2ps(1)
will prompt you for _each_ remote document after the first fifty HTML
pages have been downloaded.  There's no I know what I'm doing flag.

Note that Ethan has changed a few more configuration settings for the
official docs, not only the paper size.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] sendpage working - what do your commands look like?

2007-02-05 Thread Holger Weiss
* Brian Loe [EMAIL PROTECTED] [2007-02-05 16:28]:
 On 2/5/07, Holger Weiss [EMAIL PROTECTED] wrote:
   define command {
command_name service-notify-by-pager
command_line /usr/bin/printf %b $NOTIFICATIONTYPE$: $SERVICEDESC$ 
  $SERVICESTATE$ - $HOSTADDRESS$ - $SERVICEOUTPUT$ - $LONGDATETIME$ | 
  /server/sendpage/bin/snpp $CONTACTPAGER$
   }
 
   define command {
command_name host-notify-by-pager
command_line /usr/bin/printf %b $NOTIFICATIONTYPE$: $HOSTADDRESS$ 
  $HOSTSTATE$ - $HOSTOUTPUT$ - $LONGDATETIME$ | /server/sendpage/bin/snpp 
  $CONTACTPAGER$
   }

 What is the %b in the misccommands?

| printf FORMAT [ARGUMENT]...
| [...]
| Print ARGUMENT(s) according to FORMAT.
| [...]
| FORMAT controls the output as in C printf.  Interpreted sequences are:
| [...]
| %bARGUMENT as a string with `\' escapes interpreted, [...]

[ printf(1) ]

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] syslog-ng process monitor plugin

2006-07-13 Thread Holger Weiss
* Radhika [EMAIL PROTECTED] [2006-07-13 09:49]:
 I have checked the check_procs plugin but it is not giving the option
 of monitoring remote host i may be wrong

You could install check_procs on the remote host and use NRPE, NSCA or
simply the check_by_ssh plugin.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] Host retry interval

2006-05-22 Thread Holger Weiss
* Kyle Tucker [EMAIL PROTECTED] [2006-05-22 14:45]:
   I have many hosts that are constantly giving me DOWN/UP state as they
 are unreachable for certain periods. In an attempt to give the system more
 time to become available, I increased the max_check_attempts from 2 to 5. At
 2 the interval between retry attempts was 10 seconds. Now at 5, the interval
 is 7 seconds. I'd like to have this interval higher for some hosts, but 
 there's a real scary note on the hosts check_interval option to not use it
 if you can help it.

Using `check_interval' within a host definition would activate regularly
scheduled checks of the host as opposed to checking the host on-demand
only.  The directive you'd want is `retry_check_interval', but such a
thing doesn't exist for host checks.

 Is this my only option or is there a better way?

With Nagios 2.x, there is no real solution, you can only use
workarounds such as defining host escalations in order to suppress the
first notification.  AFAICS, this will be solved with Nagios 3.x.

 I am also following the thread titled Workaround for 'Host DOWN'
 false-positives

This might be another useful workaround, haven't looked at it yet.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] remote passive checks

2006-05-01 Thread Holger Weiss
* Tracy R Reed [EMAIL PROTECTED] [2006-05-01 17:10]:
 I have chosen nsca because I prefer my machines connect to my server
 since some of them may be behind firewalls etc. The problem is how do I
 feed the data into nsca? For some reason it seems that the output from
 the checks that come with nagios (check_disk, check_load, check_swap)
 are not compatible with the input for nsca.

Yes, see the README file included with the NSCA package for a
description of the format.

 Why is this?

For passive checks, the exit code of the plugin and the host/service the
submitted plugin output refers to must be passed to Nagios in addition
to the usual plugin output for active checks.

 I am wondering how I am going to handle configuration and management of
 this wrapper to wrap all of the local checks and configure them
 appropriately for the local machine. The nagios config on the server
 does not apply to remote checks. So basically I have to write a custom
 shell script for each server that calls all of the right checks with the
 right arguments, converts their output, and passes the result into
 send_nsca to the main nagios server.

You could use a wrapper script such as the following (not tested):

 ftp://ftp.in-berlin.de/pub/users/weiss/nagios/tools/nsca_client.sh

This wrapper could be called via the following crontab entry:

 * * * * * /path/to/nsca_client.sh diskspace /path/to/check_disk -w 20% -c 10% 
| /path/to/send_nsca

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] nagios notification via sms

2006-03-28 Thread Holger Weiss
* Nelson Serafica [EMAIL PROTECTED] [2006-03-28 17:05]:
 does anyone knows how can i send notifications via sms that is FREE ???

| There are two ways you can do this.
|
| If your paging company has an email-pager gateway, you can simply have
| Nagios send an email message to your pager address. An example of this
| type of address might look like: [EMAIL PROTECTED]
|
| You should note that sending notifications through email might fail if
| SMTP or DNS services are down or if your connection to the greater
| Internet is down. An alternative to sending pager messages through an
| email gateway would be to hook a modem up to your monitoring host and
| have Nagios dial out through the modem and send the message using the
| TAP (IXO) protocol. There are several programs that can do this for you
| on *NIX systems. Two popular ones seem to be Sendpage and QuickPage.

[ http://www.nagios.org/faqs/viewfaq.php?faq_id=113 ]

See also:

http://nagios.sourceforge.net/docs/2_0/notifications.html

Some links to these and other packages:

http://www.sendpage.org/
http://qpage.org/
http://www.sta.to/ftp/yaps/
http://rsug.itd.umich.edu/software/beepage/
http://smash.sourceforge.net/
http://www.smsclient.org/
http://www.hylafax.org/

 if anyone here using free software that send sms when there is
 critical or warning, please share or any procedure how to setup this
 sms notifications or just an idea that you implement in your nagios

| SMS messages can be sent with several programs, one of which is yaps
| (Yet Another Pager Software).
|
| Once yaps is installed and working, command definitions like these can
| be added and used.
|
| define command{
| command_namenotify-by-sms
| command_line/usr/bin/yaps -t $CONTACTPAGER$ '$NOTIFICATIONTYPE$: 
$HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ ($OUTPUT$)'
| }
|
| define command{
| command_namehost-notify-by-sms
| command_line/usr/bin/yaps -t $CONTACTPAGER$ '$NOTIFICATIONTYPE$: 
$HOSTNAME$ is $HOSTSTATE$ ($OUTPUT$)'
| }

[ http://www.nagios.org/faqs/viewfaq.php?faq_id=65 ]

We use Sendpage.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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] Send_NSCA - Segmentation Fault

2006-02-09 Thread Holger Weiss
* Mike Koponick [EMAIL PROTECTED] [2006-02-09 15:44]:
 All of this works without a hitch. Luckily, all of the equipment is in a
 lab environment. I'm ready to deploy a server to a real remote site so I
 wanted to encrypt the traffic, so I configured BOTH the NSCA server and
 Send_NSCA for 3DES encryption. I restarted XINETD on the server. Now,
 when I send data from the remote server I see a Segmentation Fault and
 of course no data is sent through.

This is a known bug in the NSCA 2.5 release[*], it's fixed in CVS:

http://nagios.sourceforge.net/download/cvs/nsca-cvs.tar.gz

Holger

[*] http://thread.gmane.org/gmane.network.nagios.devel/2412

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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] DEPENDENCIES

2006-02-08 Thread Holger Weiss
* Deborah Martin [EMAIL PROTECTED] [2006-02-08 16:40]:
 When the main database plugin check goes to warning or critical I want to
 suppress email notifications on the 3 remaining checks as there is no point
 in running these (they won't return anything useful apart from timeouts).

 However, this rarely happens. Usually, I get the main check email
 notification plus 1 other email notification from one of the dependencies
 (though it may not always be the same dependency)

Whether or not service dependencies work as expected depends on the
setting of soft_state_dependencies and your check intervals:

| Try reading the nagios docs on soft_state_dependencies. Then setting
|
|   soft_state_dependencies=1
|
| in nagios.cfg.
|
| If A depends on B (aka no alert on A when B in trouble) make sure that:
|
|   retry_check_interval(A) * max_check_attempts(A) 
|   normal_check_interval(B)
|
| That should guarantee that at least one check of B occurs during the
| trouble interval for A. Without the soft_state_dependencies you must use:
|
|   retry_check_interval(A) * max_check_attempts(A) 
|   normal_check_interval(B) +
|   (retry_check_interval(B) * max_check_attempts(B))
|
| to make sure that B goes into a hard state during the trouble interval
| of A.

[ http://sourceforge.net/mailarchive/message.php?msg_id=14420901 ]

This makes sure it should work in most cases (though in theory it can
still fail if the critical check of service B was delayed for some
reason).

Holger

PS: For host dependencies, a similar problem AFAICS cannot be solved
without patching Nagios:
http://sourceforge.net/mailarchive/message.php?msg_id=14641584

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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] Why the distinction between host definition and hostextinfo definition?

2006-02-08 Thread Holger Weiss
* Lori Adams [EMAIL PROTECTED] [2006-02-07 18:48]:
 This is actually true of the services documentation.  It doesn't state
 that you can use hostgroups.

This is documented here:

http://nagios.sf.net/docs/2_0/templatetricks.html#service

However, I agree it should also be added to xodtemplate.html.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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] Mails Configuration

2006-01-25 Thread Holger Weiss
* Raghavendra Prasad [EMAIL PROTECTED] [2006-01-25 15:40]:
 Could some one tell me how does Nagios sends an alert or SMS. Does it relay
 on mails server.

http://nagios.sf.net/docs/2_0/notifications.html
http://www.nagios.org/faqs/viewfaq.php?faq_id=113
http://www.nagios.org/faqs/viewfaq.php?faq_id=65
http://www.nagios.org/faqs/viewfaq.php?faq_id=279

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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: FW: [Nagios-users] Host checks

2005-12-21 Thread Holger Weiss
* prashanth guduru [EMAIL PROTECTED] [2005-12-16 14:31]:
 Its true it doesnt talk about how you can do that in the
 documentation.

Yes.

 But the documentation does say that it is going to try it until the
 max_attempts, so i guess it keeps running the command that many times
 or until the host is up.

Yes, but the question was how to configure the _interval_ between host
check retries.  AFAICS this is not possible.

 Im sure you must have thought about this but you can actually do this
 by writing another simple plugin that wraps around check_ping.

You mean this wrapper should sleep for the desired number of seconds
before it returns the result?  That's not an option.  First, I want a
retry interval which is larger than my host_check_timeout.  Second:

| when Nagios is check the status of a host, it holds off on doing
| anything else (executing new service checks, processing other service
| check results, etc).

[ http://nagios.sourceforge.net/docs/2_0/checkscheduling.html#host_checks ]

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
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] check_radius

2005-12-14 Thread Holger Weiss
* Mário Sérgio Candian [EMAIL PROTECTED] [2005-12-14 14:44]:
 ([EMAIL PROTECTED])~# ./check_radius -H 201.38.x.y -u radius -p password -P 
 1645 -t 15
 Config file error
 Exit 3

 ([EMAIL PROTECTED])~# ./check_radius
 Could not parse arguments
 Usage:
 check_radius -H host -F config_file -u username -p 
 password'  [-P port] [-t timeout] [-r retries] [-e expect]
 check_radius (-h | --help) for detailed help
 check_radius (-V | --version) for version information
 Exit 3

 What is the config_file? What I can put in the config_file?

It's the configuration file for the 'radiusclient' library:

| $ check_radius -h | grep configuration
| [...] A configuration file may also be present. The format of the
| configuration file is described in the radiusclient library sources.

Please use the 'nagiosplug-help' list if you have further questions
regarding the plugin.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
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] check_radius

2005-11-18 Thread Holger Weiss
* Askar Ali [EMAIL PROTECTED] [2005-11-17 15:26]:
 You mean i have to install the radius on the nagios machine also?, our 
 radius is another separate machine for authenticating dialup users.

Of course, you don't need a RADIUS server on the Nagios machine, but
check_radius requires the radiusclient library.

| check_radius:
|   - Requires the radiusclient library available from
| http://www.cityline.net/~lf/radius/
|   RPM (rpmfind): radiusclient-0.3.1-1, radiusclient-devel-0.3.1-1

[ nagios-plugins-1.4.2/REQUIREMENTS ]

The above URL seems dead, but the radiusclient source is available at:

ftp://ftp.cityline.net/pub/radiusclient/

The Debian packages are called libradius1 and libradius1-dev.

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
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