Re: [Nagios-users] Query regarding Nagios notification

2009-10-15 Thread Satish Kumar P
On Wed, Oct 14, 2009 at 7:43 PM, Marc Powell  wrote:
>
> On Oct 14, 2009, at 8:18 AM, Satish Kumar P wrote:
>
>> Notifications are not disabled at Nagios level (nagios.cfg). Nagios is
>> working properly for all other hosts and services, except this strange
>> issue I mentioned.
>> I verified the service status from the GUI, notifications are NOT
>> disabled for this service and for the host also.
>
> Hmmm. Everything you've posted indicated nagios would have sent a
> notification for this service (unless I've missed something).
>
> -       Is the 24x7 timeperiod _really_ 24x7?
> -       Are the log entries related to the service you posted complete? You
> see no SERVICE NOTIFICATION entries for this service or any other
> entries?
> -       Please post the programstatus{} from status.dat.
> -       Please post the command definition and other information for this
> service from objects.cache and status.dat.
>

Thanks for all the suggestions and insight. Actually, we traced the
problem. It seems, one of our team members disabled the notifications
temporarily during that period, due to which Nagios didn't send out
alerts.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] Query regarding Nagios notification

2009-10-14 Thread Satish Kumar P
On Wed, Oct 14, 2009 at 5:56 PM, Marc Powell  wrote:
>
> On Oct 14, 2009, at 12:43 AM, Satish Kumar P wrote:
>
>> Hi,
>>
>> We have a Nagios server that monitors around 300 production servers
>> and around 2000+ services on all these servers. Recently, when the
>> STATE of one of the services on a particular host turned HARD, but
>> Nagios didn't NOTIFY. So I am just trying to understand why it didn't
>> notify. Here's more information regarding the configuration:
>>
>> define service {
>>        service_description     MAILQ_1K_2K
>>        host_name               server-name
>>        use                     generic-service
>>        check_command           check_mailq_snmp!1000!2000
>>        contact_groups          cg_server-name
>> }
>
>> Following are the few relevant options defined under "generic-
>> service":
>>
>>    check_period                    24x7
>>    normal_check_interval           5
>>    retry_check_interval            2
>>    max_check_attempts              5
>>    notification_period             24x7
>
> No notification_options or contact_groups. What are they? Check objects.cache.

OK, here are the complete contents of the service definition and
service template:

 define service {
service_description MAILQ_1K_2K
host_name   server-name
use generic-service
check_command   check_mailq_snmp!1000!2000
contact_groups  cg_server-name
 }

define service{
namegeneric-service ; The 'name' of
this service template
active_checks_enabled   1   ; Active service checks are enabled
passive_checks_enabled  1   ; Passive service checks
are enabled/accepted
parallelize_check   1   ; Active service checks
should be parallelized (disabling this can lead to major performance
problems)
obsess_over_service 1   ; We should obsess over
this service (if necessary)
check_freshness 0   ; Default is to NOT check
service 'freshness'
notifications_enabled   1   ; Service notifications are enabled
event_handler_enabled   1   ; Service event handler is enabled
flap_detection_enabled  1   ; Flap detection is enabled
failure_prediction_enabled  1   ; Failure prediction is enabled
process_perf_data   1   ; Process performance data
retain_status_information   1   ; Retain status
information across program restarts
retain_nonstatus_information1   ; Retain non-status
information across program restarts
notification_interval   0   ; Only send notifications
on status change by default.
is_volatile 0
check_period24x7
normal_check_interval   5
retry_check_interval2
max_check_attempts  5
notification_period 24x7
notification_optionsw,c,r
contact_groups  nobody
register0   ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}


>> More info: Looking at Nagios documentation, I understand that Nagios
>> does "on demand host checks" when a service changes STATE. So I
>> guessed, Nagios might have performed HOST CHECK when it actually
>> turned HARD (and simultaneously from WARNING to CRITICAL).
>
> Yes, nagios will run a host check and if it returns non-OK, notifications for 
> the service will be suppressed. What do you see in
> nagios.log related to the host?

This host was UP.
>
>> Thoughts??
>
> Do you get notifications at all, for anything? Verify that you haven't 
> disabled notifications program wide (in nagios.cfg or via the web
> interface) or for this specific service (via the web interface). I tend to 
> look in status.dat for that information but it can be found in
> the GUI under Program Info and the specific service.

Notifications are not disabled at Nagios level (nagios.cfg). Nagios is
working properly for all other hosts and services, except this strange
issue I mentioned.
I verified the service status from the GUI, notifications are NOT
disabled for this service and for the host also.

>
> --
> Marc
>

Kindly do let me know if you need more info. Thanks for the help.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from Novem

Re: [Nagios-users] Query regarding Nagios notification

2009-10-14 Thread Satish Kumar P
On Wed, Oct 14, 2009 at 12:58 PM, Marc-André Doll  wrote:
> Le mercredi 14 octobre 2009 à 12:17 +0530, Satish Kumar P a écrit :
>> On Wed, Oct 14, 2009 at 11:22 AM, Justin Pryzby  
>> wrote:
>> > On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote:
>> >> Hi,
>> >>
>> >> We have a Nagios server that monitors around 300 production servers
>> >> and around 2000+ services on all these servers. Recently, when the
>> >> STATE of one of the services on a particular host turned HARD, but
>> >> Nagios didn't NOTIFY. So I am just trying to understand why it didn't
>> >> notify. Here's more information regarding the configuration:
>> >
>
> What happened te me once was Nagios not sending notification because for
> some reasons the output was changed and contained spaces. As the
> "$OUTPUT$" macro wasn't quoted in the notification command definition,
> we encountered some erratic behaviours. Check your notification command
> definition to be sure.
>
> Marc-André
>

Hi Marc,

Thanks for the update. Actually all the macros seem to be quoted in
the command definitions. Check the below mentioned command
definitions. Nagios was supposed to use them for the service I
mentioned.

define command{command_namenotify-by-email
command_line/usr/bin/printf "%b" "* Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nURL:
https://some-url/hosts/show/$HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$
alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}

# 'notify-by-pager' command definition
define command{
command_namenotify-by-pager
  command_line  /usr/bin/printf "%b" "$NOTIFICATIONTYPE$:
$HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$\n$SHORTDATETIME$\n$SERVICEOUTPUT$" | /usr/bin/mail -s
"$NOTIFICATI
ONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
}

But one more quick question: If the issue were related to "not quoting
the macros in command definition", Nagios should have logged something
regarding the "SERVICE NOTIFICATION" right (though whether we received
the notification or not). Correct me if I am wrong. Looking at the
logs, I am guessing that due to some reason, Nagios didn't initiate a
notification at all.

Thanks,
Satish

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] Query regarding Nagios notification

2009-10-13 Thread Satish Kumar P
On Wed, Oct 14, 2009 at 11:22 AM, Justin Pryzby  wrote:
> On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote:
>> Hi,
>>
>> We have a Nagios server that monitors around 300 production servers
>> and around 2000+ services on all these servers. Recently, when the
>> STATE of one of the services on a particular host turned HARD, but
>> Nagios didn't NOTIFY. So I am just trying to understand why it didn't
>> notify. Here's more information regarding the configuration:
>
> Was the service flapping?
>
> Justin
>

HI Justin,

Actually no. Nagios didn't log anything related to this  FLAPPING of
this SERVICE. Though lot of other SERVICES related to same host
flapped after this SERVICE turned HARD, this service didn't. Nagios
didn't send notifications related all other services, that's justified
because of SERVICE FLAPS.

Thanks,
Satish

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] Query regarding Nagios notification

2009-10-13 Thread Satish Kumar P
Hi,

We have a Nagios server that monitors around 300 production servers
and around 2000+ services on all these servers. Recently, when the
STATE of one of the services on a particular host turned HARD, but
Nagios didn't NOTIFY. So I am just trying to understand why it didn't
notify. Here's more information regarding the configuration:

define service {
service_description MAILQ_1K_2K
host_name   server-name
use generic-service
check_command   check_mailq_snmp!1000!2000
contact_groups  cg_server-name
}

define contactgroup {
contactgroup_name   cg_server-name
alias   server-name Contact Group
members team_emailpage-24x7
}

define contact {
contact_name  team_emailpage-24x7
alias team_emailpage-24x7
service_notification_period   24x7
host_notification_period  24x7
service_notification_options  c,r
host_notification_options d,r
service_notification_commands notify-by-page,notify-by-email
host_notification_commandshost-notify-by-page,host-notify-by-email
email email-address
pager team
}


Following are the few relevant options defined under "generic-service":

check_period24x7
normal_check_interval   5
retry_check_interval2
max_check_attempts  5
notification_period 24x7

And following are the corresponding logs when the service went down:

Oct 11 02:19:50 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;1;mailq is 1358
Oct 11 02:22:49 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;2;mailq is 1537
Oct 11 02:26:05 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;3;mailq is 1799
Oct 11 02:28:59 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;WARNING;SOFT;4;mailq is 1799
Oct 11 02:36:53 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;HARD;5;mailq is 2133

I modified the server names. The WARNING THRESHOLD is 1000 and
CRITICAL THRESHOLD is 2000. After roughly 45 minutes later, the
service recovered, but Nagios didn't fire any alert w.r.t this service
during this whole period (i mean until it came back to OK state).
Nagios logs when this service came back:

Oct 11 03:20:20 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;SOFT;1;mailq is 2968
Oct 11 03:22:17 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;SOFT;2;mailq is 2968
Oct 11 03:24:17 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;CRITICAL;SOFT;3;mailq is 2968
Oct 11 03:26:18 nagios-server nagios: SERVICE ALERT:
server-name;MAILQ_1K_2K;OK;SOFT;4;mailq is 411

More info: Looking at Nagios documentation, I understand that Nagios
does "on demand host checks" when a service changes STATE. So I
guessed, Nagios might have performed HOST CHECK when it actually
turned HARD (and simultaneously from WARNING to CRITICAL). And I see
lot of logs related to other services after this SERVICE turned HARD,
but I wonder there should have been NOTIFICATION w.r.t this particular
service. Thoughts??

Nagios version: 3.1.2
O.S: Debian 4.0 (Etch)

Thanks in advance.

Thanks,
Satish

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 for new linxux users.. shed some light...

2009-01-05 Thread Satish Kumar P
On Tue, Jan 6, 2009 at 7:36 AM, Mirza Dedic  wrote:
> Hello,
>
> I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I
> am able to get Nagios to monitor all the things I need on a Win32 box (using
> NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to work
> for me. I have previously never used check_by_ssh; I am also fairly new to 
> the linux
> OS. My OS is Ubuntu and many of the servers I want to monitor are RHEL4 or
> Fedora.  I know that to get check_by_ssh to work, I need to create a 
> private/public
> certificate on the client/server; anyone shed some light on how to create
> this?
>
>  Do I create the key on my Nagios box? Under the same user that was used when
> compiling Nagios? For the remote host (monitored linux server); what do I 
> need to do? Create
> the same user-id? How do I apply the certificate from my Nagios Host to the
> monitored Host so that my shell scripts can connect to the Host B without a
> password prompt? Please if you could, shed some light for a beginner.
>
> Also, our environment is using Kerberos, all the servers use SSH/Kerberos,
> this way when users are created in Active Directory they are replicated
> across the linux servers (is this why I can't find authorized_keys file?)

The key based authentication works if you enable RSAAuthentication (or
equivalent) in your SSH server's configuration on Linux servers. I am
not really sure how things work out if you enable both Kerberos and
Key based authentication. But you could give it a try with one server.

You could create the private and public key pair using a command,
ssh-keygen (from a Linux machine) or puttygen (on windows). Next the
user account that runs Nagios should use the private and public key
pairs generated. You can create a new user account on the target Linux
server or use existing account also. Place the newly generated public
key in the ~/.ssh/authorized_keys file on the target
Linux server,

Then you could verify the setup by trying a SSH session from the
Nagios server to the target Linux server. If you are not being asked
for a password etc. and if you get the remote shell immediately, the
setup should be proper. Then you can configure a new command
definition by specifying the login identity etc. for check_by_ssh
command.

If you do not to get into the hassles of these things, I would suggest
to try out check_ssh plugin to check the sanity of SSH daemons running
on Linux servers. HTH.

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

2008-06-12 Thread Satish Kumar P
Thanks a lot. check_snmp_vmfs.pl has worked for my requirement.

Just one more query: Is there any nagios plugin to monitor ssh keys on
remote servers??

Thanks in advance.

Thanks & Regards,
  Satish Kumar P

On Thu, Jun 12, 2008 at 4:59 AM, Steve Shipway <[EMAIL PROTECTED]>
wrote:

>  Check on nagiosexchange.org
>
>
>
> There's the check_esx2 plugin to check ESX servers and their guests.  Its
> currently being reworked to support ESX3 better.  I also have a plugin (run
> via NRPE) that checks vmem and vcpu on a linux/windows guest using the
> VMWare library API.  Also check_vmfs that checks for free space in the vmfs
> filesystems on the ESX server for free space.  This needs to be run via cron
> and sends NSCA alerts.
>
>
>
> Steve
>
>
>   --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Satish Kumar P
> *Sent:* Thursday, 12 June 2008 02:27
> *To:* nagios-users@lists.sourceforge.net
> *Subject:* [Nagios-users] check_vmfs
>
>
>
> Hi,
>
> Can someone guide me a link from where I can download check_vmfs Nagios
> plugin to monitor virtual guest operating systems?
> Or kindly share information regarding any other plugins you might have used
> (if any) for this purpose.
>
> Thanks in advance.
>
> Thanks & Regards,
>   Satish Kumar P
>
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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_vmfs

2008-06-11 Thread Satish Kumar P
Hi,

Can someone guide me a link from where I can download check_vmfs Nagios
plugin to monitor virtual guest operating systems?
Or kindly share information regarding any other plugins you might have used
(if any) for this purpose.

Thanks in advance.

Thanks & Regards,
  Satish Kumar P
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] Default value for retry_check_interval

2008-05-22 Thread Satish Kumar P
Marc,

Just one more query. What would be this value in Nagios 3 (default value)?

Thanks & Regards,
 Satish Kumar P

On Thu, May 22, 2008 at 5:36 PM, Marc Powell <[EMAIL PROTECTED]> wrote:

>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Satish Kumar P
> > Sent: Thursday, May 22, 2008 6:28 AM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Default value for retry_check_interval
> >
> > Hi,
> >
> > I am actually wondering, for Nagios 1 and 2, what would be the default
> value
> > for retry_check_interval for Hosts when a Host is down.
>
> There is no interval. Retries happen immediately after the previous
> check.
>
> > This is because I think we cannot define the retry_check_interval for
> Hosts in
> > Nagios versions 1 and 2.
>
> Correct.
>
> --
> Marc
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-
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] Default value for retry_check_interval

2008-05-22 Thread Satish Kumar P
Marc,

Thanks for the update.

On Thu, May 22, 2008 at 5:36 PM, Marc Powell <[EMAIL PROTECTED]> wrote:

>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Satish Kumar P
> > Sent: Thursday, May 22, 2008 6:28 AM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Default value for retry_check_interval
> >
> > Hi,
> >
> > I am actually wondering, for Nagios 1 and 2, what would be the default
> value
> > for retry_check_interval for Hosts when a Host is down.
>
> There is no interval. Retries happen immediately after the previous
> check.
>
> > This is because I think we cannot define the retry_check_interval for
> Hosts in
> > Nagios versions 1 and 2.
>
> Correct.
>
> --
> Marc
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Default value for retry_check_interval

2008-05-22 Thread Satish Kumar P
Hi,

I am actually wondering, for Nagios 1 and 2, what would be the default value
for retry_check_interval for Hosts when a Host is down.
This is because I think we cannot define the retry_check_interval for Hosts
in Nagios versions 1 and 2.

Thanks in advance.

Thanks & Regards,
 Satish Kumar P
-
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] Query regarding negate wrapper

2008-05-21 Thread Satish Kumar P
Hi Thomas,

Thanks for the quick response. Your solution has helped me. Timeout was the
real issue.
After increasing the negate plugin's timeout, it is working properly.

Thanks & Regards,
  Satish Kumar P

On Wed, May 21, 2008 at 3:08 PM, Thomas Guyot-Sionnest <[EMAIL PROTECTED]>
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 21/05/08 05:19 AM, Satish Kumar P wrote:
> > Hi,
> >
> > I have been trying to test and implement the negate wrapper in our
> > Nagios environment. It has worked successfully with all (except one) of
> > the plugins. 'negate' is not working as expected when I try to use with
> > check_http (with -u  argument especially). When I actually run the
> > negate wrapper with check_http plugin against a web server (enabled with
> > SSL), it doesn't negate the state returned (only when the web server is
> > down).
> >
> > When the web server is down (connect to socket times out) and check_http
> > plugin actually returns STATE_CRITICAL with time out error. But when
> > negate wrapper is used, surprisingly it doesn't negate the output, but
> > instead returns STATE_CRITICAL. I have included the commands and the
> > output of the commands as below:
>
> Negate has a timeout option. Make sure it's higher that the plugin's
> timeout to catch plugin timeouts.
>
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIM+1/6dZ+Kt5BchYRAmiJAJ9kOT681r9/VUod/4goIpVKvR1PsgCgxCBZ
> AznjgVhc8C9XiT9fpQ6wmvo=
> =ZDOE
> -END PGP SIGNATURE-
>
-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Query regarding negate wrapper

2008-05-21 Thread Satish Kumar P
Hi,

I have been trying to test and implement the negate wrapper in our Nagios
environment. It has worked successfully with all (except one) of the
plugins. 'negate' is not working as expected when I try to use with
check_http (with -u  argument especially). When I actually run the
negate wrapper with check_http plugin against a web server (enabled with
SSL), it doesn't negate the state returned (only when the web server is
down).

When the web server is down (connect to socket times out) and check_http
plugin actually returns STATE_CRITICAL with time out error. But when negate
wrapper is used, surprisingly it doesn't negate the output, but instead
returns STATE_CRITICAL. I have included the commands and the output of the
commands as below:

prod-unix-mon04:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/check_http
-S -p 443 -u '/EdgeAuth/login.jsp' -H 
CRITICAL - Socket timeout after 10 seconds
prod-unix-mon04:/usr/lib/nagios/plugins# echo $?
2
prod-unix-mon04:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/negate
/usr/lib/nagios/plugins/check_http -S -p 443 -u '/EdgeAuth/login.jsp' -H

CRITICAL - Plugin timed out after 10 seconds
prod-unix-mon04:/usr/lib/nagios/plugins# echo $?
2

Our Nagios environment details are as follows:
Nagios Version : 3.0
Nagios Plugins Version : 1.4.11

Appreciate any quick help / suggestions to get around this problem. Thanks
in advance.

Thanks & Regards,
  Satish Kumar P
-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Query regarding negate wrapper

2008-05-20 Thread Satish Kumar P
Hi,

I have been trying to test and implement the negate wrapper in our Nagios
environment. It has worked successfully with all (except one) of the
plugins.
'negate' is not working as expected when I try to use with check_http (with
-u  argument especially). When I actually run the negate wrapper
with check_http plugin against a web server (enabled with SSL), it doesn't
negate the state returned (only when the web server is down).

When the web server is down (connect to socket times out) and check_http
plugin actually returns STATE_CRITICAL with time out error. But when
negate wrapper is used, surprisingly it doesn't negate the output, but
instead returns STATE_CRITICAL. I have included the commands and the output
of the commands as below:

prod-unix-mon04:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/check_http
-S -p 443 -u '/EdgeAuth/login.jsp' -H 
CRITICAL - Socket timeout after 10 seconds
prod-unix-mon04:/usr/lib/nagios/plugins# echo $?
2
prod-unix-mon04:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/negate
/usr/lib/nagios/plugins/check_http -S -p 443 -u '/EdgeAuth/login.jsp' -H

CRITICAL - Plugin timed out after 10 seconds
prod-unix-mon04:/usr/lib/nagios/plugins# echo $?
2

Our Nagios environment details are as follows:
Nagios Version : 3.0
Nagios Plugins Version : 1.4.11

Appreciate any quick help / suggestions to get around this problem. Thanks
in advance.

Thanks & Regards,
  Satish Kumar P
-
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