Re: [Nagios-users] Using nagios check_httpfor webbasedauthentication

2009-01-22 Thread Kevin Keane
Actually, the response HTML usually ISN'T a login success page. Most of 
the time, with form-based login, the user name and password will be 
submitted to the same URL (in your case, signin.do). The Web server will 
then return a page (typically, completely empty) with a status code of 
302 (instead of the normal 200) and another URL in one of the headers. A 
Web browser will interpret the 302 as "redirect, please go to this new 
URL instead". So when you click on the "Logon" button, the browser will 
actually do not one but two (or sometimes even three or more) HTTP 
requests. Only the last one would contain the "welcome venu" text.

I'm not sure if check_http is smart enough to follow redirects; my guess 
is that it is not; it's designed to be very simple. You may have to 
either rely on status code 302 (which will also happen when login 
failed), or you will have to find (or write your own) a plugin that will 
follow redirects.

Venugopal S wrote:
> Hi Joerge,
>
> As you said "welcome venu" is not in the response in spite of giving
> valid credentials. That is why I am wondering !
> Even I gave the -v switch and found in the HTML response that "welcome
> venu" is not found. And the response HTML is the same as signin.do. It
> must have thrown me the login success page isn't it ?
>
> Venu
>
> -Original Message-
> From: Joerg Linge [mailto:pitchf...@ederdrom.de]
> Sent: Friday, January 23, 2009 11:20 AM
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Using nagios check_httpfor
> webbasedauthentication
>
> Venugopal S schrieb:
>   
>> Hi Marc,
>>
>>
>>
>> * This is my command in commands.cfg : *
>>
>>
>>
>> / define command{ /
>>
>> / command_namecheck_http /
>>
>> / command_line$USER1$/check_http -I $HOSTADDRESS$
>>   /
>>
>> / } /
>>
>>
>>
>> I executed the following command :
>>
>>
>>
>> ./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /signin.do
>> 
>
>   
>> -p 80 -P "email= svenugop...@gmail.com&password=podhum" -s "welcome
>> 
> venu"
>   
>>
>> and it threw
>>
>>
>>
>> HTTP CRITICAL - string not found|time=0.080070s;;;0.00
>> 
> size=38300B;;;0
>   
>>
>> Any idea why ?
>> 
>
> Add -v to you test a analyze te response. There is no string "welcome
> venu" in the response.
>
>
> 
> --
> 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
>
> This email message and its attachments may contain CONFIDENTIAL AND 
> PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you 
> have received it in error, please contact the sender by return email, notify 
> your system manager and destroy the original message and any copies thereof. 
> Any review, use, disclosure or distribution is unlawful. Please check this 
> email and any attachments for the presence of viruses. The Company accepts no 
>  liability for any damage caused by any virus transmitted by this email. The 
> views or opinions presented in this e-mail are solely those of the author and 
> do not necessarily represent those of the company.
> The Company reserves the right to monitor, review and store the content of 
> all messages sent to or from this e-mail address.
>
> www.aztecsoft.com
>
> --
> 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
>   


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.



Re: [Nagios-users] Using nagios check_httpfor webbasedauthentication

2009-01-22 Thread Venugopal S

Hi Joerge,

As you said "welcome venu" is not in the response in spite of giving
valid credentials. That is why I am wondering !
Even I gave the -v switch and found in the HTML response that "welcome
venu" is not found. And the response HTML is the same as signin.do. It
must have thrown me the login success page isn't it ?

Venu

-Original Message-
From: Joerg Linge [mailto:pitchf...@ederdrom.de]
Sent: Friday, January 23, 2009 11:20 AM
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_httpfor
webbasedauthentication

Venugopal S schrieb:
>
>
> Hi Marc,
>
> 
>
> * This is my command in commands.cfg : *
>
> 
>
> / define command{ /
>
> / command_namecheck_http /
>
> / command_line$USER1$/check_http -I $HOSTADDRESS$
>   /
>
> / } /
>
> 
>
> I executed the following command :
>
> 
>
> ./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /signin.do

> -p 80 -P "email= svenugop...@gmail.com&password=podhum" -s "welcome
venu"
>
> 
>
> and it threw
>
> 
>
> HTTP CRITICAL - string not found|time=0.080070s;;;0.00
size=38300B;;;0
>
> 
>
> Any idea why ?

Add -v to you test a analyze te response. There is no string "welcome
venu" in the response.



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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
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] Using nagios check_http for webbasedauthentication

2009-01-22 Thread Joerg Linge
Venugopal S schrieb:
> 
> 
> Hi Marc,
> 
>  
> 
> * This is my command in commands.cfg : *
> 
>  
> 
> / define command{ /
> 
> / command_namecheck_http /
> 
> / command_line$USER1$/check_http -I $HOSTADDRESS$ 
>   /
> 
> / } /
> 
>  
> 
> I executed the following command :
> 
>  
> 
> ./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /signin.do 
> -p 80 -P "email= svenugop...@gmail.com&password=podhum" -s "welcome venu"
> 
>  
> 
> and it threw
> 
>  
> 
> HTTP CRITICAL - string not found|time=0.080070s;;;0.00 size=38300B;;;0
> 
>  
> 
> Any idea why ?

Add -v to you test a analyze te response. There is no string "welcome venu" in 
the response. 


--
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] re-execute an event handler just in case the service stays DOWN

2009-01-22 Thread Joerg Linge
Marc Haber schrieb:
> Hi,
> 
> I would like one event handler to be re-executed just in case it
> failed for the first time. The docs
> (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you
> don't want that", but I am fairly confident that I want it in this case.
> 
> I have a nagios host in a unattended site which generally gets its
> internet access from the site network. In case of a site network
> failure, the host needs to dial in to the Internet via modem to be
> reachable for debugging purposes.
> 
> The nagios installation monitors a host on the Internet and has an
> event handler connected with this host which will initiate the dial-up
> when the "Internet host" goes into a HARD DOWN state.
> 
> I would like this event handler to be re-executed in case the dial-up
> connection doesn't come up or goes down _before_ nagios has detected
> that the "Internet host" is UP again.
> 
> Is there any way to accomplish this or am I better of with a cronjob
> which will initiate the dial-up from outside nagios?
> 
> Any hints will be appreciated.,

Hi Marc,
just use a notification to fire the eventhandler script.
Disadvantage: only triggered on HARD states.
Advantage: notification_interval to re-execute the script.

Joerg

--
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] Using nagios check_http for webbasedauthentication

2009-01-22 Thread Venugopal S

Hi Marc,



This is my command in commands.cfg :



define command{

command_namecheck_http

command_line$USER1$/check_http -I $HOSTADDRESS$


}



I executed the following command :



./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /signin.do
-p 80 -P "email=svenugop...@gmail.com&password=podhum" -s "welcome venu"



and it threw



HTTP CRITICAL - string not found|time=0.080070s;;;0.00
size=38300B;;;0



Any idea why ?



FYI : the password has been changed and now is not "podhum".



Thanks

Venu



-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Thursday, January 22, 2009 8:46 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http for
webbasedauthentication





On Jan 22, 2009, at 7:55 AM, Venugopal S wrote:



>

> Hi Marc,

>

> Thanks for the reply. I am even now vague about how to proceed.

>

> Let me tell you the need :

>

> I have to open http://ww12.1800flowers.com/signin.do and enter my

> email(svenugop...@gmail.com) and password("podhum") in order to login.



Looking at the source of the page, the sign-in form has the following 

pertinent fields --










The field names that would be passed as the POST are 'email' and 

'password'. Now, I don't know what command{} definitions you have for 

check_http or how they're configured so I'll show you how to create a 

new one very specific to this test --



define command {

command_name   check_flowers_login

command_line  $USER1$/check_http -I
$HOSTADDRESS$ -H 

ww12.1800flowers.com -u /signin.do -P 

"email=svenugop...@gmail.com&password=podhum"

}



Set that as the check_command for a service associated with the host 

and nagios will verify that the web server does not return an HTTP 

error after login. Note that if your server returns a standard 200 

response indicating OK even if there is a login error (most likely), 

you'll want to identify a word or string of text that should appear in 

the page after successful login, but not for a failure, and look for 

that with the -s parameter --



define command {

command_name   check_flowers_login

command_line  $USER1$/check_http -I
$HOSTADDRESS$ -H 

ww12.1800flowers.com -u /signin.do -P 

"email=svenugop...@gmail.com&password=podhum" -s "you are logged in"

}



> Though this looks like a lot of hand holding, I have no other go.



My charge is 1 local specialty beer for all Hand Holding Help.



--

Marc






--

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



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com--
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] using NPRE to monitor pbs_mom. Error: "NRPE: Unableto read output"

2009-01-22 Thread Rahul Nabar
On Thu, Jan 22, 2009 at 3:18 PM, Seth Simmons  wrote:

>  The filename you specified is check_pbsmom.sh though your command shows
> check_pbsmom
>
I was careless. That was exactly it! Thanks Seth. My bad. It works now.

-- 
Rahul
--
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] Windows disk health monitoring with smartmontoolsl/NSClient++?

2009-01-22 Thread Eric Pearce
I've hacked something together that seems to work using WSH and WMI (no 
smartmontools).
It displays the following for the "Service State Information":

Current Status: OK   (for 0d 0h 14m 52s) 
Status Information:SMART Status is OK
Performance Data:WDC WD1500HLFS-01G6U0 139 GB

In "nsc.ini" on the client, I've made the following changes:

uncommented NRPEListener.dll
added to [External Scripts]
check_smart_disk0=cscript.exe //T:30 //NoLogo "C:\Program 
Files\NSClient++\scripts\smart.vbs" 0
check_smart_disk1=cscript.exe //T:30 //NoLogo "C:\Program 
Files\NSClient++\scripts\smart.vbs" 1

The file "smart.vbs" contains:

set args = wscript.arguments
drive = Cint(args(0))

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer _
& "\root\cimv2")

Set diskset = objWMIService.ExecQuery _
("Select * from Win32_DiskDrive")

For Each disk in diskset
If disk.index = drive Then
   Select Case Disk.Status
 Case "OK"
   WScript.Echo "SMART Status is OK| " & Disk.Model & " " & 
Int(Disk.Size/1073741824) & " GB"
   WScript.Quit(0)
 Case Else
   Wscript.Echo "SMART Status is " & Disk.Status
   Wscript.quit(1)
End Select
  End If
next

There are actually a bunch of different error states, but I figure I want to 
know about anything other than "OK".  I kept the level as "WARNING", as I don't 
know if it's going to be useful until I get more experience with the real-life 
disk error messages.  I'm aware that disks sometimes die with no warning from 
SMART.   I've never used visual basic before, so feel free to improve on this.  
I just cobbled together little snippets of code I found via google.

On the Nagios server side,  the service and hostgroup definitions look like the 
following:

define service{
use generic-service
hostgroup_name   check_smart_disk0
service_description SMART Disk 0
check_command   check_nrpe!check_smart_disk0
check_interval  720
}
define service{
use generic-service
hostgroup_name   check_smart_disk1
service_description SMART Disk 1
check_command   check_nrpe!check_smart_disk1
check_interval  720
}

define hostgroup{
hostgroup_name  check_smart_disk0
alias   Windows SMART Disk0 status
members host1, host2, host3
 }
define hostgroup{
hostgroup_name  check_smart_disk1
alias   Windows SMART Disk1 status
members host2
}

I do have to know ahead of time the number of disks to check on the client.  
Seems to be working so far.
-e
  - Original Message - 
  From: Eric Pearce 
  To: Anthony Montibello 
  Cc: nagios-users@lists.sourceforge.net 
  Sent: Thursday, January 15, 2009 3:14 PM
  Subject: Re: [Nagios-users] Windows disk health monitoring with 
smartmontoolsl/NSClient++?


  Thanks for the tip -  I think I'm making some progress, i.e. 

   C:\Program Files\NSClient++>"nsclient++.exe" CheckWMI Select Status from 
Win32_DiskDrive

   \NSClient++.cpp(370) Attempting to start NSCLient++ - 0.3.5.2 2008-09-24 

  l \NSClient++.cpp(476) NSCLient++ - 0.3.5.2 2008-09-24 Started! 

  l \CheckWMI.cpp(306) |+ 

  l \CheckWMI.cpp(307) | Status | 

  l \CheckWMI.cpp(308) |+ 

  l \CheckWMI.cpp(317) | OK | 

  l \CheckWMI.cpp(319) |+ 

  l \NSClient++.cpp(530) Attempting to stop NSCLient++ - 0.3.5.2 2008-09-24 

  l \NSClient++.cpp(589) NSCLient++ - 0.3.5.2 2008-09-24 Stopped succcessfully 

  But I dont' see how to turn this output into something useful for Nagios, 
i.e. "OK", "WARNING", "CRITICAL". It appears that the possible return values 
for "Status" are one of the following: OK,Error,Degraded,Unknown,Pred Fail, 
Starting, Stopping, Service, Stressed, NonRecover, No Contact or Lost Comm. I 
would be happy with "OK" resulting in a Nagios "OK" and anything else being a 
"WARNING". Ideally, "WARNING" followed by the "Status" output from WMI. Is 
there a way to do this using the  NSClient "filter" and Max/Min syntax?   

  Bonus question: What do you do if you have multiple drives? I don't see any 
obvious way to specify a drive to check.

  Thanks 

  -e 

- Original Message - 
From: Anthony Montibello 
To: Eric Pearce 
Cc: nagios-users@lists.sourceforge.net 
Sent: Wednesday, January 14, 2009 8:58 PM
Subject: Re: [Nagios-users] Windows disk health monitoring with 
smartmontoolsl/NSClient++?


USe WMI: 
the path to the smart data:
root/Cimv2/Win32_DiskDrive/
[Instance] --> Status


Hope this helps
Tony (Author of NC_Net)

On Tue, Jan 13, 2009 at 10:49 PM, Eric Pearce  
wrote:

  I'd like to get SMART disk health status for Windows machines.  It look

Re: [Nagios-users] using NPRE to monitor pbs_mom. Error: "NRPE: Unableto read output"

2009-01-22 Thread Seth Simmons
The filename you specified is check_pbsmom.sh though your command shows
check_pbsmom

 

 

From: Rahul Nabar [mailto:rpna...@gmail.com] 
Sent: Thursday, January 22, 2009 4:05 PM
To: Nagios-Users Mailinglist
Subject: [Nagios-users] using NPRE to monitor pbs_mom. Error: "NRPE:
Unableto read output"

 

I'm a bit confused about how exactly to add stuff with NRPE to monitor
local services on my remote hosts. I got the basics out of the way and I
can already monitor the easy stuff like users, procs, swap etc. 

More ambitiously, I wanted to monitor the status of my "pbs_mom" (Torque
Scheduler daemon) on each node in my cluster. I found the script
check_pbsmom.sh on the NagiosExchange (snippet below) and copied it to
my /usr/local/nagios/libexec. 

Then I added this line to my nrpe.cfg

command[check_pbsmom]=/usr/local/nagios/libexec/check_pbsmom

But then I don't seem to have much success.
remotehost>/usr/local/nagios/libexec/check_nrpe -H localhost -c
check_pbsmom
NRPE: Unable to read output

If I just run the shell script though it seems to be working
/usr/local/nagios/libexec/check_pbsmom.sh 
PBS_MOM OK:  Daemon is running.  Host is listening.


What am I doing wrong here! I'm still a bit confused about the
interaction between command.cfg on the monitoring machine and the
nrpe.cfg on the remote host.

Any advice?

-- 
Rahul

#!/bin/bash
# SYNOPSIS
#   check_pbsmom [] [] ...
#
# DESCRIPTION
#   This NAGIOS plugin checks whether: 1) pbs_mom is running and
#   2) the host is listening on the given port(s).  If no port
#   number is specified TCP ports 15002 and 15003 are checked.
#
# AUTHOR
#   wayne.mall...@jcu.edu.au

OK=0
WARN=1
CRITICAL=2
PATH="/bin:/sbin:/usr/bin:/usr/sbin"

# Default listening ports are TCP 15004 and 42559.
if [ $# -lt 1 ] ; then
  list="15002 15003"
else
  list="$*"
fi

if [ `ps -C pbs_mom | wc -l` -lt 2 ]; then
  echo "PBS_MOM CRITICAL:  Daemon is NOT running!"
  exit $CRITICAL
else
  for port in $list ; do
if [ `netstat -ln | grep -E "tcp.*:$port" | wc -l` -lt 1 ]; then
  echo "PBS_MOM CRITICAL:  Host is NOT listening on TCP port $port!"
  exit $CRITICAL
fi
  done
  echo "PBS_MOM OK:  Daemon is running.  Host is listening."
  exit $OK
fi
 

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

[Nagios-users] using NPRE to monitor pbs_mom. Error: "NRPE: Unable to read output"

2009-01-22 Thread Rahul Nabar
I'm a bit confused about how exactly to add stuff with NRPE to monitor local
services on my remote hosts. I got the basics out of the way and I can
already monitor the easy stuff like users, procs, swap etc.

More ambitiously, I wanted to monitor the status of my "pbs_mom" (Torque
Scheduler daemon) on each node in my cluster. I found the script
check_pbsmom.sh on the NagiosExchange (snippet below) and copied it to my
/usr/local/nagios/libexec.

Then I added this line to my nrpe.cfg

command[check_pbsmom]=/usr/local/nagios/libexec/check_pbsmom

But then I don't seem to have much success.
remotehost>/usr/local/nagios/libexec/check_nrpe -H localhost -c check_pbsmom
NRPE: Unable to read output

If I just run the shell script though it seems to be working
/usr/local/nagios/libexec/check_pbsmom.sh
PBS_MOM OK:  Daemon is running.  Host is listening.


What am I doing wrong here! I'm still a bit confused about the interaction
between command.cfg on the monitoring machine and the nrpe.cfg on the remote
host.

Any advice?

-- 
Rahul

#!/bin/bash
# SYNOPSIS
#   check_pbsmom [] [] ...
#
# DESCRIPTION
#   This NAGIOS plugin checks whether: 1) pbs_mom is running and
#   2) the host is listening on the given port(s).  If no port
#   number is specified TCP ports 15002 and 15003 are checked.
#
# AUTHOR
#   wayne.mall...@jcu.edu.au

OK=0
WARN=1
CRITICAL=2
PATH="/bin:/sbin:/usr/bin:/usr/sbin"

# Default listening ports are TCP 15004 and 42559.
if [ $# -lt 1 ] ; then
  list="15002 15003"
else
  list="$*"
fi

if [ `ps -C pbs_mom | wc -l` -lt 2 ]; then
  echo "PBS_MOM CRITICAL:  Daemon is NOT running!"
  exit $CRITICAL
else
  for port in $list ; do
if [ `netstat -ln | grep -E "tcp.*:$port" | wc -l` -lt 1 ]; then
  echo "PBS_MOM CRITICAL:  Host is NOT listening on TCP port $port!"
  exit $CRITICAL
fi
  done
  echo "PBS_MOM OK:  Daemon is running.  Host is listening."
  exit $OK
fi
--
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

[Nagios-users] check_extcmd_ucd error returns error: ERROR: get_table: Counter length too long (5 bytes)

2009-01-22 Thread Dale J. Chatham
check_extcmd_ucd 1.1, Copyright (C) 2007 Herbert Stadler

nagios is running on:

SunOS xx 5.10 Generic_13-03 sun4v sparc SUNW,T5240


The error appears to be coming from Net::SNMP.

I've seen some discussion about this, but never a fix.

Any ideas?

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


[Nagios-users] Recommended plugin to monitor Network

2009-01-22 Thread Christian Iñiguez
Hi Guys!

Actually I'm working with Nagios and NRPE and they're working very well. 
Actually I'd like to monitor the Network of a host with Linux.

which plugin could help me? Any recommended plugin to do this?

Actually using check_icmp

Thanks!!


__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

--
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] re-execute an event handler just in case the service stays DOWN

2009-01-22 Thread Ludse Verhoeven
Maybe the "is_volatile" option is something for you (see: 
http://nagios.sourceforge.net/docs/3_0/volatileservices.html)

Met vriendelijke groet/with kind regards,
  Ludse Verhoeven
 
AIX System Engineer
T: +31 10 400 2440
F: +31 10 400 2891
E: ludse.verhoe...@vopak.com

Vopak Information Services B.V.
Trade Register (or local equivalent): 24146892
Visit Address: Westerlaan 10, 3016 CK Rotterdam
Postal Address: P.O. Box 863, 3000 AW  Rotterdam
The Netherlands
http://www.vopak.com

A Royal Vopak company




Marc Haber  
22/01/2009 16:17

To
nagios-users@lists.sourceforge.net
cc

Subject
[Nagios-users] re-execute an event handler just in case the service stays 
DOWN






Hi,

I would like one event handler to be re-executed just in case it
failed for the first time. The docs
(http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you
don't want that", but I am fairly confident that I want it in this case.

I have a nagios host in a unattended site which generally gets its
internet access from the site network. In case of a site network
failure, the host needs to dial in to the Internet via modem to be
reachable for debugging purposes.

The nagios installation monitors a host on the Internet and has an
event handler connected with this host which will initiate the dial-up
when the "Internet host" goes into a HARD DOWN state.

I would like this event handler to be re-executed in case the dial-up
connection doesn't come up or goes down _before_ nagios has detected
that the "Internet host" is UP again.

Is there any way to accomplish this or am I better of with a cronjob
which will initiate the dial-up from outside nagios?

Any hints will be appreciated.,

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im 
Header
Mannheim, Germany  |  lose things."Winona Ryder | Fon: *49 621 
72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 
2323190

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

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

[Nagios-users] Checking websites with NTML authentication

2009-01-22 Thread Joe Hartley
Has anyone solved the problem of using Nagios to check a website that
uses NTML authentication?  My Googling keeps bringing me to a suggestion
about writing something with curl, but I have zero curl-fu.

 

--

Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc. (formerly VeriSign RDS)
40 Sharpe Drive
Cranston, RI 02920
joe.hart...@retailsolutions.com 


+1 401.824.5040 (o) | +1 401.824.5002 (f)

 

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

[Nagios-users] Help with visualization.

2009-01-22 Thread Sergio Ariel
How can I improve the way Nagios shows items in the web? I have more 
than 20 items with the same parent, so, their icons appear very close. I 
need to show icons more separated in the web.

Thanks.
-- 
Sergio Ariel de la Campa Saiz
Administrador Red UH

--
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] Using nagios check_http for web basedauthentication

2009-01-22 Thread Marc Powell

On Jan 22, 2009, at 7:55 AM, Venugopal S wrote:

>
> Hi Marc,
>
> Thanks for the reply. I am even now vague about how to proceed.
>
> Let me tell you the need :
>
> I have to open http://ww12.1800flowers.com/signin.do and enter my
> email(svenugop...@gmail.com) and password("podhum") in order to login.

Looking at the source of the page, the sign-in form has the following  
pertinent fields --




The field names that would be passed as the POST are 'email' and  
'password'. Now, I don't know what command{} definitions you have for  
check_http or how they're configured so I'll show you how to create a  
new one very specific to this test --

define command {
command_namecheck_flowers_login
command_line$USER1$/check_http -I $HOSTADDRESS$ -H  
ww12.1800flowers.com -u /signin.do -P  
"email=svenugop...@gmail.com&password=podhum"
}

Set that as the check_command for a service associated with the host  
and nagios will verify that the web server does not return an HTTP  
error after login. Note that if your server returns a standard 200  
response indicating OK even if there is a login error (most likely),  
you'll want to identify a word or string of text that should appear in  
the page after successful login, but not for a failure, and look for  
that with the -s parameter --

define command {
command_namecheck_flowers_login
command_line$USER1$/check_http -I $HOSTADDRESS$ -H  
ww12.1800flowers.com -u /signin.do -P  
"email=svenugop...@gmail.com&password=podhum" -s "you are logged in"
}

> Though this looks like a lot of hand holding, I have no other go.

My charge is 1 local specialty beer for all Hand Holding Help.

--
Marc


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


[Nagios-users] re-execute an event handler just in case the service stays DOWN

2009-01-22 Thread Marc Haber
Hi,

I would like one event handler to be re-executed just in case it
failed for the first time. The docs
(http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you
don't want that", but I am fairly confident that I want it in this case.

I have a nagios host in a unattended site which generally gets its
internet access from the site network. In case of a site network
failure, the host needs to dial in to the Internet via modem to be
reachable for debugging purposes.

The nagios installation monitors a host on the Internet and has an
event handler connected with this host which will initiate the dial-up
when the "Internet host" goes into a HARD DOWN state.

I would like this event handler to be re-executed in case the dial-up
connection doesn't come up or goes down _before_ nagios has detected
that the "Internet host" is UP again.

Is there any way to accomplish this or am I better of with a cronjob
which will initiate the dial-up from outside nagios?

Any hints will be appreciated.,

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

--
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] Using nagios check_http for webbasedauthentication

2009-01-22 Thread Venugopal S

Just like that..  Changed it now anyways :)
That apart, please help me out folks as to how I have to go ahead with
nagios ..

-Original Message-
From: Klaus Umbach [mailto:treibh...@sozial-inkompetent.de]
Sent: Thursday, January 22, 2009 7:40 PM
To: Venugopal S
Cc: Marc Powell; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http for
webbasedauthentication

On 22/01/09 19:25, Venugopal S wrote:
>
> Hi Marc,
>
> Thanks for the reply. I am even now vague about how to proceed.
>
> Let me tell you the need :
>
> I have to open http://ww12.1800flowers.com/signin.do and enter my
> email(svenugop...@gmail.com) and password("podhum") in order to login.

Why did you give us a valid user/password combination? :-)


>
> When I login using the above valid credentials it would take me to the
> next page or otherwise throw an error.
>
> How do I compose the command line for check_http ?
>
> Though this looks like a lot of hand holding, I have no other go.
>
> Can you please help ?
>
> Venu
>
> -Original Message-
> From: Marc Powell [mailto:m...@ena.com]
> Sent: Thursday, January 22, 2009 7:15 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Using nagios check_http for web
> basedauthentication
>
>
> On Jan 22, 2009, at 5:50 AM, Venugopal S wrote:
>
> > Hi,
> >
> > Can I do a check on a particular website by supplying the username
> > and password to nagios check_http commandline ?
> >
> > To be clear :
> >
> > Assume that I want to check whether login action happens properly on

> > my website which is www.venu.com. And the login page name is
> www.venu.com/signup.do
> >  . This form would take username and password and send a POST
> > request to www.venu.com/autorize.do. How will i check this in nagios
?
> >
> > If it had been GET method, I would have done that. But in my case,
> > it is POST method
>
> Since you're using forms based authentication, use the -P parameter to

> check_http.
>
> $ ./check_http --help
>
> [chop]
>
>   -P, --post=STRING
>  URL encoded http POST data
>
>
> check_http -I  -H www.venu.com -u /autorize.do -P
> "usernamefield=username&passwordfield=password"
>
> If you need something more complex than that you might want to search
> for past posts about use of perl's WWW::Mechanize or
> Nagios::WebTransact to help create a custom plugin.
>
> Note for future readers, if the site uses standard htaccess
> authentication then '-a username:password' if the format.
>
> --
> Marc
>
>

> --
> 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
>
> This email message and its attachments may contain CONFIDENTIAL AND
PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If
you have received it in error, please contact the sender by return
email, notify your system manager and destroy the original message and
any copies thereof. Any review, use, disclosure or distribution is
unlawful. Please check this email and any attachments for the presence
of viruses. The Company accepts no  liability for any damage caused by
any virus transmitted by this email. The views or opinions presented in
this e-mail are solely those of the author and do not necessarily
represent those of the company.
> The Company reserves the right to monitor, review and store the
content of all messages sent to or from this e-mail address.
>
> www.aztecsoft.com
>
>

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

--
BOFH excuse #184:

loop found in loop in redundant loopback

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any v

Re: [Nagios-users] Using nagios check_http for web basedauthentication

2009-01-22 Thread Klaus Umbach
On 22/01/09 19:25, Venugopal S wrote:
> 
> Hi Marc,
> 
> Thanks for the reply. I am even now vague about how to proceed.
> 
> Let me tell you the need :
> 
> I have to open http://ww12.1800flowers.com/signin.do and enter my
> email(svenugop...@gmail.com) and password("podhum") in order to login.

Why did you give us a valid user/password combination? :-)


> 
> When I login using the above valid credentials it would take me to the
> next page or otherwise throw an error.
> 
> How do I compose the command line for check_http ?
> 
> Though this looks like a lot of hand holding, I have no other go.
> 
> Can you please help ?
> 
> Venu
> 
> -Original Message-
> From: Marc Powell [mailto:m...@ena.com]
> Sent: Thursday, January 22, 2009 7:15 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Using nagios check_http for web
> basedauthentication
> 
> 
> On Jan 22, 2009, at 5:50 AM, Venugopal S wrote:
> 
> > Hi,
> >
> > Can I do a check on a particular website by supplying the username 
> > and password to nagios check_http commandline ?
> >
> > To be clear :
> >
> > Assume that I want to check whether login action happens properly on 
> > my website which is www.venu.com. And the login page name is
> www.venu.com/signup.do
> >  . This form would take username and password and send a POST 
> > request to www.venu.com/autorize.do. How will i check this in nagios ?
> >
> > If it had been GET method, I would have done that. But in my case, 
> > it is POST method
> 
> Since you're using forms based authentication, use the -P parameter to 
> check_http.
> 
> $ ./check_http --help
> 
> [chop]
> 
>   -P, --post=STRING
>  URL encoded http POST data
> 
> 
> check_http -I  -H www.venu.com -u /autorize.do -P 
> "usernamefield=username&passwordfield=password"
> 
> If you need something more complex than that you might want to search 
> for past posts about use of perl's WWW::Mechanize or 
> Nagios::WebTransact to help create a custom plugin.
> 
> Note for future readers, if the site uses standard htaccess 
> authentication then '-a username:password' if the format.
> 
> --
> Marc
> 
> 
> --
> 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
> 
> This email message and its attachments may contain CONFIDENTIAL AND 
> PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you 
> have received it in error, please contact the sender by return email, notify 
> your system manager and destroy the original message and any copies thereof. 
> Any review, use, disclosure or distribution is unlawful. Please check this 
> email and any attachments for the presence of viruses. The Company accepts no 
>  liability for any damage caused by any virus transmitted by this email. The 
> views or opinions presented in this e-mail are solely those of the author and 
> do not necessarily represent those of the company.
> The Company reserves the right to monitor, review and store the content of 
> all messages sent to or from this e-mail address.
> 
> www.aztecsoft.com
> 
> --
> 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
> 

-- 
BOFH excuse #184:

loop found in loop in redundant loopback

--
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] Recommended Plugin for Monitoring iptables

2009-01-22 Thread Kaplan, Andrew H.
Hi Marc --

Thanks for your reply. I downloaded the script, and I am currently testing it.

I had to make one modification within the script: The -S argument is not known
by the version, 1.3.8, of iptables on the server in question, so I replaced it
with the -L argument.

One question to all members who have used the script: Is the script designed to
run in the background, or is it simply invoked by Nagios and then closed when it
is done running? The reason I ask is I am manually running it, and it does not
immediately close. Thanks. 



-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: Tuesday, January 20, 2009 5:05 PM
To: nagios-users Mailinglist
Subject: Re: [Nagios-users] Recommended Plugin for Monitoring iptables


On Jan 20, 2009, at 3:00 PM, Kaplan, Andrew H. wrote:

> Hi there --
>
> Thanks for your reply. I simply want to ensure that 'iptables -vnL'
> comes back with output indicating that firewall rules are in effect.

I don't use it but the first hit on google looks promising...

http://www.google.com/search?q=nagios+check_iptables

"The script does not (and can not) detect "stupid" rules. It's purpose  
is to ensure that iptables and the configured rules (whatever they may  
be) are loaded.

It is useful to identify situations such as:
- forgetting to start iptables at boot
- stopping iptables for testing and forgetting to restart
- etc

Normal condition is where all tables have 1 or more rules.
Critical condition is when a table (any table) has 0 rules. "

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


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


--
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] Using nagios check_http for web basedauthentication

2009-01-22 Thread Venugopal S

Hi Marc,

Thanks for the reply. I am even now vague about how to proceed.

Let me tell you the need :

I have to open http://ww12.1800flowers.com/signin.do and enter my
email(svenugop...@gmail.com) and password("podhum") in order to login.

When I login using the above valid credentials it would take me to the
next page or otherwise throw an error.

How do I compose the command line for check_http ?

Though this looks like a lot of hand holding, I have no other go.

Can you please help ?

Venu

-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Thursday, January 22, 2009 7:15 PM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Using nagios check_http for web
basedauthentication


On Jan 22, 2009, at 5:50 AM, Venugopal S wrote:

> Hi,
>
> Can I do a check on a particular website by supplying the username 
> and password to nagios check_http commandline ?
>
> To be clear :
>
> Assume that I want to check whether login action happens properly on 
> my website which is www.venu.com. And the login page name is
www.venu.com/signup.do
>  . This form would take username and password and send a POST 
> request to www.venu.com/autorize.do. How will i check this in nagios ?
>
> If it had been GET method, I would have done that. But in my case, 
> it is POST method

Since you're using forms based authentication, use the -P parameter to 
check_http.

$ ./check_http --help

[chop]

  -P, --post=STRING
 URL encoded http POST data


check_http -I  -H www.venu.com -u /autorize.do -P 
"usernamefield=username&passwordfield=password"

If you need something more complex than that you might want to search 
for past posts about use of perl's WWW::Mechanize or 
Nagios::WebTransact to help create a custom plugin.

Note for future readers, if the site uses standard htaccess 
authentication then '-a username:password' if the format.

--
Marc


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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
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] Using nagios check_http for web based authentication

2009-01-22 Thread Marc Powell

On Jan 22, 2009, at 5:50 AM, Venugopal S wrote:

> Hi,
>
> Can I do a check on a particular website by supplying the username  
> and password to nagios check_http commandline ?
>
> To be clear :
>
> Assume that I want to check whether login action happens properly on  
> my website which is www.venu.com. And the login page name is 
> www.venu.com/signup.do 
>  . This form would take username and password and send a POST  
> request to www.venu.com/autorize.do. How will i check this in nagios ?
>
> If it had been GET method, I would have done that. But in my case,  
> it is POST method

Since you're using forms based authentication, use the -P parameter to  
check_http.

$ ./check_http --help

[chop]

  -P, --post=STRING
 URL encoded http POST data


check_http -I  -H www.venu.com -u /autorize.do -P  
"usernamefield=username&passwordfield=password"

If you need something more complex than that you might want to search  
for past posts about use of perl's WWW::Mechanize or  
Nagios::WebTransact to help create a custom plugin.

Note for future readers, if the site uses standard htaccess  
authentication then '-a username:password' if the format.

--
Marc

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


[Nagios-users] time based first_notification_delay

2009-01-22 Thread Klaus Umbach
Hi,
I would like to delay notifications at night for 10 minutes. According to
the documentation, first_notification_delay is only possible for service
and host objects but not for contacts.

I was thinking about using escalations, but they start counting after the
last attempt of a check and after the first error like
first_notification_delay.

Any ideas how to setup my needs. (except changing configuration-files by
cron! :-) )

-
Klaus

-- 
BOFH excuse #440:

Cache miss - please take better aim next time

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


[Nagios-users] Using nagios check_http for web based authentication

2009-01-22 Thread Venugopal S

Hi,



Can I do a check on a particular website by supplying the username and
password to nagios check_http commandline ?



To be clear :



Assume that I want to check whether login action happens properly on my
website which is www.venu.com  . And the login
page name is www.venu.com/signup.do . This form would take username and
password and send a POST request to www.venu.com/autorize.do. How will i
check this in nagios ?



If it had been GET method, I would have done that. But in my case, it is
POST method.



Please help me out.



Thanks

Venu



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com--
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

[Nagios-users] Using nagios check_http for web based authentication

2009-01-22 Thread Venugopal S



Hi,



Can I do a check on a particular website by supplying the username and
password to nagios check_http commandline ?



To be clear :



Assume that I want to check whether login action happens properly on my
website which is www.venu.com  . And the login
page name is www.venu.com/signup.do . This form would take username and
password and send a POST request to www.venu.com/autorize.do. How will i
check this in nagios ?



If it had been GET method, I would have done that. But in my case, it is
POST method.



Please help me out.



Thanks

Venu



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com--
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] selectively disable notifications for services inheriting a specific template?

2009-01-22 Thread Assaf Flatto

Have you looked at service dependencies ?
http://nagios.sourceforge.net/docs/3_0/dependencies.html

It sounds like this is what you need.

Assaf


On Thursday 22 January 2009 02:21:55 Owen LaGarde wrote:
> I essentially want to disable only notifications, only when a specific
> service check fails, only for services inheriting a specific template.
> And I'm lazy, and don't want to double the size of my config for this
> one function.
>
> I'm using nagios 3.0.2 and nagios-plugins 1.4.12 with a large (>1000
> hosts/services) configuration.  Most (800+) of the services use a
> "check_remote" custom plugin to tunnel network calls [ie., to plugins on
> other hosts] within kerberos authenticated and encrypted sessions.  That
> kerberos activity requires a ticket cache containing a TGT;  said cache
> is maintained by a custom event broker module and said TGT's presence is
> monitored by a service definition referencing a custom check_krbtgt
> plugin.  This has worked great so far -- no race conditions, clean
> start/restart/refresh cycles for the cache and TGT, scales well, etc.
> For a number of policy reasons all service definitions use active
> checks.  When the TGT check fails it logically follows that all service
> checks using the check_remote plugin have or are about to fail.  This is
> desirable behavior -- depending on the nature of the kerberos TGT
> problem there are a number of check_remote failure messages and these
> need to be captured in the event log, so I *don't* want to block *any*
> checks from running.
>
> But...
>
> If it's the TGT check that's failed then the notifications for
> everything except the TGT failure are inappropriate and should be
> blocked.  In effect I want to cause a specific service check's failure
> to disable notifications for a large (800+) number of other service
> checks but I don't want to nearly double the size of the config tree and
> have that much more text to wade through when maintaining the nagios
> configuration.  Remember, I need the checks that are about to fail
> because of the TGT failure to go on and run, and fail, and log their
> events and perfdata.  It's just the notifications that should be
> stopped, and only then if the originating service "use"-es the
> remote-active-service template.
>
> Anybody else doing this?



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
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] Nagios - LDAP/RSA authentication

2009-01-22 Thread Mohammed Al-Kout
i will try to set the parameters same as yours and try it

Best Regards
--
Mohammed Al-Kout





On Thu, Jan 22, 2009 at 11:41, Werner Flamme  wrote:

> Mohammed Al-Kout [22.01.2009 05:06]:
> > Warner,
> >
> > in my setup i'm not using authz, but i noticed something you are using "
> > AuthUserFile /some/file " why is it required if the users are on ldap ?
>
> Mohammed,
>
> we have some accounts not stored in LDAP ("emergency", "srvadm"). So
> this is our way to combine LDAP and local accounts.
>
> Regards,
> Werner
>
> >
> >
> > On Wed, Jan 21, 2009 at 17:50, Werner Flamme 
> wrote:
> >
> >> Mohammed Al-Kout [21.01.2009 14:31]:
> >>> Warner,
> >>>
> >>> the session seems to be expiring after ( 10-20) and nagios asks for
> >>> reauthentication, ( we are using RSA passwords that change frequently
> so
> >> the
> >>> LDAPCAche does not apply in our case ) are you using mod_auth_ldap ?
> >>> what are the parameters you use in the httpd.conf for LDAP Cache
> settings
> >>>
> >> Mohammed,
> >>
> >> I hope I get them all:
> >> AuthName "LDAP Auth"
> >> AuthType Basic
> >> AuthBasicProvider ldap files
> >> AuthLDAPURL "ldap://ldap.domain.tld/ou=people,dc=domain,dc=tld?uid?sub";
> >> AuthLDAPAuthoritative off
> >> AuthBasicAuthoritative On
> >> require valid-user
> >> AuthUserFile /some/file
> >>
> >> I do not see any special parameter about LDAP cache or SSL cache (we use
> >> SSL, we don't want to pass the words unciphered via network ;-)).
> >>
> >> We're running apache 2.2.3 that loads the modules "suexec authz_host
> >> actions alias auth_basic authz_groupfile authn_file authz_user authn_dbm
> >> autoindex cgi dir env expires include log_config mime negotiation
> >> setenvif status userdir asis imagemap ldap authnz_ldap ssl php5 perl
> >> authz_default rewrite".
> >>
> >> Regards,
> >> Werner
> >>
> >>>
> >>>
> >>>
> >>>
> >>> On Wed, Jan 21, 2009 at 16:22, Werner Flamme 
> >> wrote:
>  Mohammed Al-Kout [21.01.2009 14:00]:
> > Hello,
> >
> > i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local
> > userfile for sometime, recently i switched to LDAP authentication
> with
> > mod_auth_ldap its working fine, the problem is i'm getting the
> > authentication popup every 10-20 mins, is there a way to stop this or
> >> set
>  a
> > longer interval  ? i'm not sure what is causing this popup to
> reappear
> >> (
> > LDAP , Apache or Nagios ) if anyone has an idea please lemme know
>  Neither of them. We use LDAP auth for years, and there are no such
> >> popups.
> >>
> >>
> >>
> >>
> --
> >> 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
> >>
> >
>
>
> --
> Werner Flamme, Abt. WKDV
> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
> Permoserstr. 15 - 04318 Leipzig
> Tel.: (0341) 235-1921 - Fax (0341) 235-451921
> Information nach §§ 37a HGB, 35a GmbHG:
> Sitz der Gesellschaft: Leipzig
> Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703
> Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Grübel
> Wissenschaftlicher Geschäftsführer: Prof. Dr. Georg Teutsch
> Administrativer Geschäftsführer: Dr. Andreas Schmidt
>
>
> --
> 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
>
--
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] Nagios - LDAP/RSA authentication

2009-01-22 Thread Werner Flamme
Mohammed Al-Kout [22.01.2009 05:06]:
> Warner,
> 
> in my setup i'm not using authz, but i noticed something you are using "
> AuthUserFile /some/file " why is it required if the users are on ldap ?

Mohammed,

we have some accounts not stored in LDAP ("emergency", "srvadm"). So
this is our way to combine LDAP and local accounts.

Regards,
Werner

> 
> 
> On Wed, Jan 21, 2009 at 17:50, Werner Flamme  wrote:
> 
>> Mohammed Al-Kout [21.01.2009 14:31]:
>>> Warner,
>>>
>>> the session seems to be expiring after ( 10-20) and nagios asks for
>>> reauthentication, ( we are using RSA passwords that change frequently so
>> the
>>> LDAPCAche does not apply in our case ) are you using mod_auth_ldap ?
>>> what are the parameters you use in the httpd.conf for LDAP Cache settings
>>>
>> Mohammed,
>>
>> I hope I get them all:
>> AuthName "LDAP Auth"
>> AuthType Basic
>> AuthBasicProvider ldap files
>> AuthLDAPURL "ldap://ldap.domain.tld/ou=people,dc=domain,dc=tld?uid?sub";
>> AuthLDAPAuthoritative off
>> AuthBasicAuthoritative On
>> require valid-user
>> AuthUserFile /some/file
>>
>> I do not see any special parameter about LDAP cache or SSL cache (we use
>> SSL, we don't want to pass the words unciphered via network ;-)).
>>
>> We're running apache 2.2.3 that loads the modules "suexec authz_host
>> actions alias auth_basic authz_groupfile authn_file authz_user authn_dbm
>> autoindex cgi dir env expires include log_config mime negotiation
>> setenvif status userdir asis imagemap ldap authnz_ldap ssl php5 perl
>> authz_default rewrite".
>>
>> Regards,
>> Werner
>>
>>>
>>>
>>>
>>>
>>> On Wed, Jan 21, 2009 at 16:22, Werner Flamme 
>> wrote:
 Mohammed Al-Kout [21.01.2009 14:00]:
> Hello,
>
> i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local
> userfile for sometime, recently i switched to LDAP authentication with
> mod_auth_ldap its working fine, the problem is i'm getting the
> authentication popup every 10-20 mins, is there a way to stop this or
>> set
 a
> longer interval  ? i'm not sure what is causing this popup to reappear
>> (
> LDAP , Apache or Nagios ) if anyone has an idea please lemme know
 Neither of them. We use LDAP auth for years, and there are no such
>> popups.
>>
>>
>>
>> --
>> 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
>>
> 


-- 
Werner Flamme, Abt. WKDV
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstr. 15 - 04318 Leipzig
Tel.: (0341) 235-1921 - Fax (0341) 235-451921
Information nach §§ 37a HGB, 35a GmbHG:
Sitz der Gesellschaft: Leipzig
Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703
Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Grübel
Wissenschaftlicher Geschäftsführer: Prof. Dr. Georg Teutsch
Administrativer Geschäftsführer: Dr. Andreas Schmidt

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