Re: [Nagios-users] Attempting to monitor the "Nagios Server" itself

2008-08-12 Thread kyle . odonnell
check the nagios exchange.  there are plenty of nagios server related
checks that might indicate impending failure.  that being said, if
nagios dies how can it monitor itself?  I have scheduled a job in cron
that monitors, restarts, and emails me when it dies.

On 8/12/08, Bret Goodfellow <[EMAIL PROTECTED]> wrote:
> Hello there,
>
>
>
> I have Nagios running on a RHEL 4 (update 6) server.  It is monitoring
> 30 linux servers and 10 unix servers.  I am now attempting to get Nagios
> to monitor the host server (the server that the nagios daemon is running
> on).  When I add services for the nagios server (Colorado), the nagios
> service fails after about 15 seconds.  I am getting the following
> messages in /var/log/messages:
>
>
>
> Aug 12 13:18:09 colorado nagios: Nagios 2.10 starting... (PID=23650)
>
> Aug 12 13:25:58 colorado nagios: LOG VERSION: 2.0
>
> Aug 12 13:25:58 colorado nagios: Finished daemonizing... (new PID=23651)
>
> Aug 12 13:26:10 colorado nagios: Caught SIGSEGV, shutting down...
>
>
>
> Why can't I get nagios to monitor itself?  In other words, why can't I
> get nagios to monitor the server that it is running from?
>
>
>
> Thanks in advance,
>
>
>
> Bret Goodfellow
>
>
>
>
>
>
>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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 Processes in Linux

2008-08-12 Thread kyle . odonnell
"bad interpreter"

means the script is being executed by an interpreter that doesn't exist.

I am guessing it says something like:

#!/bin/bash

at the top and bash is either not installed or in a different
location.  Make sure whichever interpreter it's referencing is
correct.

On 8/12/08, Fernando Rocha <[EMAIL PROTECTED]> wrote:
> Hi Edwin!
>
> Could you please give more details about the OS?
>
> Fernando Rocha
> OpServices Tecnologia da Informação
>
> - Original Message -
> From: "Edwin Zoeller" <[EMAIL PROTECTED]>
> To: nagios-users@lists.sourceforge.net
> Sent: Tuesday, August 12, 2008 4:21:13 PM (GMT-0300) Auto-Detected
> Subject: [Nagios-users] Check Processes in Linux
>
>
> I have downloaded to check_procs scripts for the exchange and I am having a
> hell of a time to get it to work. I get "bad interpreter" and have done all
> I could to fix it. Can someone let me know what I am doing wrong or how they
> are monitoring processes.
>
> Thanks,
>
> Ed
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes Grand prize is a trip for two to an Open Source event anywhere in the
> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___ 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] NRPE: Unable to read output

2008-08-12 Thread kyle . odonnell
I dont know if that will work, there is a specific option inside
nrpe.cfg for executing commands via sudo:

# COMMAND PREFIX
# This option allows you to prefix all commands with a user-defined string.
# A space is automatically added between the specified prefix string and the
# command line from the command definition.
#
# *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! ***
# Usage scenario:
# Execute restricted commmands using sudo.  For this to work, you need to add
# the nagios user to your /etc/sudoers.  An example entry for alllowing
# execution of the plugins from might be:
#
# nagios  ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/
#
# This lets the nagios user run all commands in that directory (and only them)
# without asking for a password.  If you do this, make sure you don't give
# random users write access to that directory or its contents!

# command_prefix=/usr/bin/sudo


Also make sure you can run the command exactly like nrpe does as the
user nrpe is running as.

As for your bolded question, go chmod 644 check_load and try to run
it, it will give you the same error.  It just means that the script
executed but didn't respond with recognized output.

On 8/12/08, Jake Solid <[EMAIL PROTECTED]> wrote:
> I did modified the nrpe.cfg to execute commands via sudo by adding the
> following line:
>
> *command[check_smartmon]=/usr/bin/sudo
> /usr/lib64/nagios/plugins/check_smartmon  ata -d /dev/sda*
>
> *Why I'm able to invoke the following plugins from the nagios server using
> check_nrpe but when invoking check_smartmon  I get *NRPE: Unable to read
> output*?*
>
> command[check_users]=/usr/lib64/nagios/plugins/check_users -w 8 -c 10
> command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c
> 30,25,20
> command[check_disk1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
> /dev/mapper/VolGroup00-LogVol00
> command[check_disk2]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
> /dev/mapper/VolGroup00-LogVol01
> command[check_disk3]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
> /dev/mapper/VolGroup00-LogVol02
> command[check_disk4]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
> /dev/mapper/VolGroup01-LogVol00
> command[check_md]=/usr/lib64/nagios/plugins/check_swraid
> command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10
> -s Z
> command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 200 -c
> 300
>
>
>
> On Tue, Aug 12, 2008 at 12:25 PM, <[EMAIL PROTECTED]> wrote:
>
>> executing check_nrpe via sudo will not accomplish what you want.  You
>> will need to either modify the nrpe.cfg to execute commands via sudo,
>> or write a wrapper for check_smartmon.  I am not familiar with that
>> plugin, but you may also be able to edit it and prepend /path/to/sudo
>> before it execs smartctl.
>>
>>
>>
>> On 8/12/08, Jake Solid <[EMAIL PROTECTED]> wrote:
>> > I'm trying to use check_nrpe with check_smartmon but I'm getting NRPE:
>> > Unable to read output at the Nagios Server. *All other check plugins
>> > like
>> > check_load and check_procs work fine.
>> > *
>> > *I'm running the following command from my nagios server to the remote
>> host:
>> > *
>> > *./check_nrpe -H remotehost.domain.com -c check_smartmon*
>> >
>> > *and the out put is the following:*
>> > *NRPE: Unable to read output*
>> >
>> > *This is what the remote host logs display:*
>> > *Aug 12 11:16:13 *remotehost* xinetd[7151]: START: nrpe pid=7986 from=
>> > 198.162.1.1 <- Nagios Server IP Address
>> > Aug 12 11:16:13 *remotehost* nrpe[7986]: INFO: SSL/TLS initialized. All
>> > network traffic will be encrypted.
>> > Aug 12 11:16:13 *remotehost* xinetd[7151]: EXIT: nrpe status=0 pid=7986
>> > duration=0(sec)*
>> >
>> >
>> > *When I use the check_smartmon directly in the remote machine as the
>> > user
>> > nagios and using sudo it works fine:*
>> > [EMAIL PROTECTED] plugins]$  sudo
>> /usr/lib64/nagios/plugins/check_smartmon
>> > ata -d /dev/sda
>> > OK: device is functional and stable (temperature: 33)
>> >
>> > *If I change the only_from line on  /etc/xinetd.d/nrpe file to
>> > 127.0.0.1and
>> > I run the following from the remote host I get prompted by a password:*
>> > [EMAIL PROTECTED] plugins]$ sudo /usr/lib64/nagios/plugins/check_nrpe
>> -h
>> > remotehost.domain.com.latpro.com -c check_smartmon
>> > Password:
>> > *
>> > *The permissions on the device are the following:*
>> > [EMAIL PROTECTED] plugins]$ ls -lah /dev/sda
>> > brw-rw 1 root disk 8, 0 Jan  8  2008 /dev/sda*
>> >
>> > *The disk group also has nagios:*
>> > disk:x:6:root,nagios
>> >
>> >
>> > *And again the other plugins work fine when they are invoked from the
>> Nagios
>> > server. Like the following:*
>> > [EMAIL PROTECTED] plugins]$ ./check_nrpe -H remotehost.domain.com -c
>> > check_load
>> > OK - load average: 2.14, 2.44, 2.72|load1=2.140;15.000;30.000;0;
>> > load5=2.440;10.000;25.000;0; load15=2.720;5.000;20.000;0;
>> >
>> > *I added the following line on 

Re: [Nagios-users] Environment variables

2008-08-12 Thread kyle . odonnell
I usually have env variable files which I source depending on the
instance/db.  When I write my plugins I either specify the env
variable file as a command line argument, or hardcode the sourcing in
my script.

On 8/12/08, Ciro Iriarte <[EMAIL PROTECTED]> wrote:
> 2008/8/11 Hugo van der Kooij <[EMAIL PROTECTED]>:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Ciro Iriarte wrote:
>> | Is there other way to set environment variables than modifying the
>> | nagios start script?, I need to set Oracle variables for several
>> | scripts/plugins but I would like it to survive a
>> | reinstallation/migration.
>>
>> Create your own wrapper for the plugins.
>>
>> If you stick to the usage parameters of the plugins that need the
>> wrapper script you should be fine.
>>
>> Hugo.
>>
>
> So, there's no option available from nagios to define global
> variables?. The idea is that I don't have to change multiple script
> every time I change oracle client version or reinstall/migrate the
> monitoring host
>
> Regards,
> Ciro
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] NRPE: Unable to read output

2008-08-12 Thread kyle . odonnell
executing check_nrpe via sudo will not accomplish what you want.  You
will need to either modify the nrpe.cfg to execute commands via sudo,
or write a wrapper for check_smartmon.  I am not familiar with that
plugin, but you may also be able to edit it and prepend /path/to/sudo
before it execs smartctl.



On 8/12/08, Jake Solid <[EMAIL PROTECTED]> wrote:
> I'm trying to use check_nrpe with check_smartmon but I'm getting NRPE:
> Unable to read output at the Nagios Server. *All other check plugins like
> check_load and check_procs work fine.
> *
> *I'm running the following command from my nagios server to the remote host:
> *
> *./check_nrpe -H remotehost.domain.com -c check_smartmon*
>
> *and the out put is the following:*
> *NRPE: Unable to read output*
>
> *This is what the remote host logs display:*
> *Aug 12 11:16:13 *remotehost* xinetd[7151]: START: nrpe pid=7986 from=
> 198.162.1.1 <- Nagios Server IP Address
> Aug 12 11:16:13 *remotehost* nrpe[7986]: INFO: SSL/TLS initialized. All
> network traffic will be encrypted.
> Aug 12 11:16:13 *remotehost* xinetd[7151]: EXIT: nrpe status=0 pid=7986
> duration=0(sec)*
>
>
> *When I use the check_smartmon directly in the remote machine as the user
> nagios and using sudo it works fine:*
> [EMAIL PROTECTED] plugins]$  sudo /usr/lib64/nagios/plugins/check_smartmon
> ata -d /dev/sda
> OK: device is functional and stable (temperature: 33)
>
> *If I change the only_from line on  /etc/xinetd.d/nrpe file to 127.0.0.1 and
> I run the following from the remote host I get prompted by a password:*
> [EMAIL PROTECTED] plugins]$ sudo /usr/lib64/nagios/plugins/check_nrpe -h
> remotehost.domain.com.latpro.com -c check_smartmon
> Password:
> *
> *The permissions on the device are the following:*
> [EMAIL PROTECTED] plugins]$ ls -lah /dev/sda
> brw-rw 1 root disk 8, 0 Jan  8  2008 /dev/sda*
>
> *The disk group also has nagios:*
> disk:x:6:root,nagios
>
>
> *And again the other plugins work fine when they are invoked from the Nagios
> server. Like the following:*
> [EMAIL PROTECTED] plugins]$ ./check_nrpe -H remotehost.domain.com -c
> check_load
> OK - load average: 2.14, 2.44, 2.72|load1=2.140;15.000;30.000;0;
> load5=2.440;10.000;25.000;0; load15=2.720;5.000;20.000;0;
>
> *I added the following line on my remotehost to the /etc/sudoers:*
> nagiosALL=(ALL) NOPASSWD:
> /usr/sbin/smartctl,/usr/lib64/nagios/plugins/check_nrpe,/usr/lib64/nagios/plugins/check_smartmon
>
> I also try running the NRPE as adeamon and not with xinetd and I had the
> same issue.
>
> Any inputs?
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] Condition Based Active Check

2008-08-12 Thread kyle . odonnell
would creating a service dependency solve your problem?

On 8/12/08, Jesse Callaway <[EMAIL PROTECTED]> wrote:
> Hi Nair,
>
> I think you'd have to give an example of where you would use this, and
> a specific case. Normally checking the availability of a service is
> done with exactly an active check.  Active checks check for the
> availability of a service. The language here can get quite circular
> without a more concrete example. I recommend using the words local,
> remote, daemon, and network service somewhere in your question.
>
> -jesse
>
>
> On Aug 12, 2008, at 11:09 AM, Nair wrote:
>
>> Hi Friends
>>
>> Can we add a codition for active check. Say for eg: i need to check
>> availability of a service before performing active check.
>>
>> Any idea.
>>
>> Thank you,
>> Nair.
>>
>>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] unable to install nagios-plug ins on HP UX

2008-07-30 Thread kyle . odonnell
I compiled the hpux10.20/11.00 nrpe/nsca/nagios-plugins binaries
available on the nagios exchange. The were compiled with parisc v1.1
(compat with 2.0).

They work in 11.11 too.

I don't have any 11.23 boxes around, but if you want my config.log
from the 11.00 boxes let me know.

On 7/30/08, Kaplan, Andrew H. <[EMAIL PROTECTED]> wrote:
> Hi there -
>
>
>
> The solution that I have used, admittedly it is more of a workaround than a
> fix,
> is to install the precompiled packages
>
> that are available for the HP-UX operating system. The URL for the packages
> is
> the following:
>
>
>
> http://www.bennyvision.com/projects/nagios/index.php
>
>
>
> Hope that helps.
>
>
>
> 
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2008 9:36 AM
> To: nagios Mailinglist
> Subject: [Nagios-users] unable to install nagios-plug ins on HP UX
>
>
>
> Hi,
>
>
>
> I set up nagios server on Red Hat Linux box and trying to make HP UX as
> nagios
> client to it. I'm trying to install nagios-plugins (nagios-plugins-1.4.11)
> on HP
> UX - PA RISC and found some problems. After untar nagios-plugin and then
> execute
>
>
>
> ./configure --prefix=/usr/local/nagios
>
>
>
>
> checking for working re_compile_pattern... no
> checking whether isblank is declared... yes
> checking for stdint.h... (cached) yes
> checking for SIZE_MAX... (((1UL << 31) - 1) * 2 + 1)
> checking for snprintf... yes
> checking for socklen_t... no
> checking for socklen_t equivalent... configure: error: Cannot find a type to
> use
> in place of socklen_t
>
> bash-3.2# tail -f config.log
> #define regcomp rpl_regcomp
> #define regexec rpl_regexec
> #define regerror rpl_regerror
> #define regfree rpl_regfree
> #define HAVE_DECL_ISBLANK 1
> #define HAVE_STDINT_H 1
> #define SIZE_MAX (((1UL << 31) - 1) * 2 + 1)
> #define HAVE_SNPRINTF 1
>
> configure: exit 1
>
> can you please let us know how we can fix this?
>
>
>
> Thanks
>
>
>
>
> --
> shankar
>
>
> The information transmitted in this electronic communication is intended
> only
> for the person or entity to whom it is addressed and may contain
> confidential
> and/or privileged material. Any review, retransmission, dissemination or
> other
> use of or taking of any action in reliance upon this information by persons
> or
> entities other than the intended recipient is prohibited. If you received
> this
> information in error, please contact the Compliance HelpLine at 800-856-1983
> and
> properly dispose of this information.
>
>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] NetApp disk monitoring

2008-07-24 Thread kyle . odonnell
just add the -w -c anywhere, the number 9000 is the total number of
disks, you can alert on each of the returned fields, in this case I
just picked a high number of total disks as I dont care to alert if
the number of disks grows larger than X(9000).

warn on greater than 9000 total disks
warn on greater than 9000 active disks
warn on greater than 9000 spare disks
warn on greater than 0 failed disks




On 7/24/08, Robert Ferguson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Here is the check I am using
>
> #Number of disks
> Define command{
>   command_namecheck-netapp-numdisk
>   command_line$USER1$/check_snmp -H $HOSTADDRESS$ -C
> public -o
> .1.3.6.1.4.1.789.1.6.4.1.0,.1.3.6.1.4.1.789.1.6.4.2.0,.1.3.6.1.4.1.789.1
> .6.4.8.0,.1.3.6.1.4.1.789.1.6.4.7.0 -u 'Total Disks','
> Active','Spare','Failed' -l ""
> }
>
> I can see were to put the '-w 9000,9000,9000,0 -c 9000,9000,9000,2' from
> you statement, but what is the '9000.' for?
>
> Thanks,
>
> Robert
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of [EMAIL PROTECTED]
> Sent: Thursday, July 24, 2008 9:23 AM
> To: Robert Ferguson
> Cc: Nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] NetApp disk monitoring
>
> what check are you using?  i use snmp:
>
> check_snmp  -H $HOSTADDRESS$ -C $ARG1$ -t 60 -o
> .enterprises.789.1.6.4.1.0,.enterprises.789.1.6.4.2.0,.enterprises.789.1
> .6.4.8.0,.enterprises.789.1.6.4.7.0
> -w 9000,9000,9000,0 -c 9000,9000,9000,2  -u 'Total
> Disks','Active','Spare','Failed' -l ""
>
> the last number in the -w/-c represents number of failures (greather
> than)
>
> On 7/24/08, Robert Ferguson <[EMAIL PROTECTED]> wrote:
>> Good Morning Users,
>>
>>
>>
>> I have run into a little snag monitoring our netapps.  I am sure it is
> a
>> simple mistake however her it is.
>>
>>
>>
>> We are monitoring the number of disk on each head of the netapp.  This
>> give us the number of Total, number Active, number Spare and Number
>> Failed.   The issue this morning is we had a disk fail  over night.
>> Nagios caught it and is reporting 1 failed, however it is still in an
> ok
>> state.  I can't find where to set the number for -w and -c.   Please
> let
>> me know of your thoughts.
>>
>>
>>
>> Thanks
>>
>>
>>
>> Robert
>>
>>
>>
>>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] NetApp disk monitoring

2008-07-24 Thread kyle . odonnell
what check are you using?  i use snmp:

check_snmp  -H $HOSTADDRESS$ -C $ARG1$ -t 60 -o
.enterprises.789.1.6.4.1.0,.enterprises.789.1.6.4.2.0,.enterprises.789.1.6.4.8.0,.enterprises.789.1.6.4.7.0
-w 9000,9000,9000,0 -c 9000,9000,9000,2  -u 'Total
Disks','Active','Spare','Failed' -l ""

the last number in the -w/-c represents number of failures (greather than)

On 7/24/08, Robert Ferguson <[EMAIL PROTECTED]> wrote:
> Good Morning Users,
>
>
>
> I have run into a little snag monitoring our netapps.  I am sure it is a
> simple mistake however her it is.
>
>
>
> We are monitoring the number of disk on each head of the netapp.  This
> give us the number of Total, number Active, number Spare and Number
> Failed.   The issue this morning is we had a disk fail  over night.
> Nagios caught it and is reporting 1 failed, however it is still in an ok
> state.  I can't find where to set the number for -w and -c.   Please let
> me know of your thoughts.
>
>
>
> Thanks
>
>
>
> Robert
>
>
>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] CPU Usage for Linux

2008-07-17 Thread kyle . odonnell
i wrote a very simple one using vmstat to check the idle percentage

/usr/bin/vmstat 1 1 | egrep '[0-9]' |awk '{print $15}'



On 7/17/08, Jose Luis Garcia <[EMAIL PROTECTED]> wrote:
> Why don't you like check_load?
>
> I wouldn't mind a CPU at 100% if no process is waiting to be run, would you?
>
> Cheers
>
>
> 17 Jul 2008 15:31:02 -, Nair <[EMAIL PROTECTED]>:
>>
>> Hi Friends,
>>
>> I would love to have thoughts on monitoring CPU for Linux.(without using
>> check_load).
>>
>> Looking for some output like SAR output.
>>
>> Thank you,
>> Nair
>>
>>
>>   [image: Rediff
>> Shopping]>  PROTECTED]/2206641_2199021/2201651/1?PARTNER=3&OAS_QUERY=null>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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_nrpe missing

2008-06-25 Thread kyle . odonnell
check_nrpe does not come with the nagios-plugins.  Download the nrpe
source tarball.

On 6/25/08, Natxo Asenjo <[EMAIL PROTECTED]> wrote:
> hi,
>
> I followed the instructions on the guide to install nagios 3.03 and
> the nagios-plugins-1.4.12. The operating system is debian stable, but
> as I say, the nagios installation is manual from the official nagios
> sources.
>
> I do
> # tar xzf nagios-plugins-1.4.12.tar.gz
> # cd nagios-plugins-1.4.12
>
> Compile and install the plugins.
>
> # ./configure --with-nagios-user=nagios --with-nagios-group=nagios
> # make
> # make install
>
> and when I cd to /usr/local/nagios/libexec I have a lot of plugins,
> but no check_nrpe. What am I doing wrong?
> --
> Groeten,
> J.Asenjo
>
> -
> 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
>

-
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] Best administration tool for Nagios

2008-06-03 Thread kyle . odonnell
monarch works well for me.. nagios 3 isn't 'supported' but it works
just fine (if you don't need any of the new config options)

On 6/3/08, alexus <[EMAIL PROTECTED]> wrote:
> i like nagiosQL, i haven't tried latest version yet, but older had
> some bugs, i really hope they fix it in new release
>
>
> On Fri, Apr 25, 2008 at 12:42 PM, Luis Fernando Lacayo
> <[EMAIL PROTECTED]> wrote:
>> Not to offend anyone,
>>
>> But I think that this is a great opportunity for the community to get
>> involved and help with the translation.  Unfortunately, my French is as
>> good as my Arabic, but I am willing to help with the Spanish version.
>>
>> :-)
>>
>> Thanks,
>>
>> Luis
>>
>> On Fri, 2008-03-28 at 15:29 +1300, Steve Wray wrote:
>>> Yost, Karl wrote:
>>> > Centreon for me, support for nagios 3 is on the way with the Centreon 2
>>> > release.
>>>
>>> yeah it looks interesting but a fair bit of it still seems to come
>>> through in French even though I've told it my language choice is en.
>>>
>>> Eg Services Check Load de l'host oreon
>>>
>>> Forums would be more useful if you know French too... I guess that, wow,
>>> the universe really *doesn't* revolve around English...
>>>
>>> :)
>>>
>>>
>>> > Thanks,
>>> > Karl
>>> >
>>> >
>>> > -Original Message-
>>> > From: [EMAIL PROTECTED]
>>> > [mailto:[EMAIL PROTECTED] On Behalf Of PO
>>> > Michel
>>> > Sent: Wednesday, March 26, 2008 8:43 AM
>>> > To: nagios-users@lists.sourceforge.net
>>> > Subject: [Nagios-users] Best administration tool for Nagios
>>> >
>>> > Hi list
>>> >
>>> > What is the best PHP/Mysql based tool to administer Nagios ? Nagios Web
>>> > Config ? NagEdit ? Nagios PHP ? NagiosQL ? Nagat ?
>>> >
>>> > Does someone has an idea of which tool will sooner support Nagios 3.0 ?
>>> >
>>> > Thanks in advance for your advice,
>>> >
>>> >
>>> > - PO Michel (misterpo)
>>>
>>>
>>> -
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>>> ___
>>> Nagios-users mailing list
>>> Nagios-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>> ::: Please include Nagios version, plugin version (-v) and OS when
>>> reporting any issue.
>>> ::: Messages without supporting info will risk being sent to /dev/null
>> --
>> Luis Fernando Lacayo
>> Chicago Public Schools
>> Senior Unix Administrator
>> ITS/ UNIX Infrastructure
>> Office: 773-553-3835
>> Cell: 773-203-4493
>>
>>
>> -
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Don't miss this year's exciting event. There's still time to save $100.
>> Use priority code J8TL2D2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> ___
>> 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
>>
>
>
>
> --
> http://alexus.org/
>
> -
> 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] Easier way to make nagios send mail as different user?

2008-05-28 Thread kyle . odonnell
sendmail -f

On 5/28/08, Drew Weaver <[EMAIL PROTECTED]> wrote:
> The two ways I've come up with to make nagios send
> notifications as a different user are:
>
> Write a wrapper which allows mail to be sent with normal headers or run
> nagios as a different user, are there any different options? The mail
> command in linux/unix appears to be a little bit limited without a parameter
> to specify the from address.
>
> Any advice?
>
> -Drew
>
>

-
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] nagios-plugins fail to compile solaris 10 x86/x64

2008-05-21 Thread kyle . odonnell
-bash-3.00$ gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

according to your above output you are using the /usr/sfw compiler,
doesn't sunfreeware put the pkgs into /usr/local?

On 5/21/08, Terry L. Inzauro <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> I used the following:
>>
>> ./configure --prefix=/opt/nagios --enable-perl-modules
>> --with-perl=/usr/bin/perl --without-ipv6 --without-openssl
>> --without-ssl --disable-ssl --disable-openssl
>> --with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime
>> comm args' --with-ps-format=%s %d %d %d %d %d %f %s %s %n
>> --with-ps-cols=10
>> -with-ps-varlist=procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos
>>
>> I also used the sunfreeware gcc compiler instead.
>>
>> binaries are available on the nagiosexchange:
>>
>> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2564.html;d=1
>>
>>
>> On 5/21/08, Terry L. Inzauro <[EMAIL PROTECTED]> wrote:
>>> list,
>>>
>>> im getting the following when attempting to compile nagios-plugins on a
>>> solaris 10 x86 (x4500) box.
>>>
>>>
>>> # begin background system info
>>>
>>>
>>> -bash-3.00$ uname -a
>>> SunOS loraine 5.10 Generic_127128-11 i86pc i386 i86pc
>>>
>>> -bash-3.00$ gcc -v
>>> Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
>>> Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
>>> --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
>>> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
>>> --enable-shared
>>> Thread model: posix
>>> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>>>
>>> -bash-3.00$ which ar
>>> /usr/local/bin/ar
>>>
>>> -bash-3.00$ which make
>>> /usr/local/bin/make
>>>
>>> -bash-3.00$ make -v
>>> GNU Make 3.81
>>> Copyright (C) 2006  Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.
>>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>>> PARTICULAR PURPOSE.
>>>
>>> This program built for i386-pc-solaris2.10
>>>
>>> # end background system
>>>
>>>
>>> # begin make errors (output truncated)
>>>
>>> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
>>> -I/usr/local/ssl/include  -g -O2 -MT vasnprintf.o -MD -MP -MF
>>> ".deps/vasnprintf.Tpo" -c -o vasnprintf.o vasnprintf.c; \
>>> then mv -f ".deps/vasnprintf.Tpo" ".deps/vasnprintf.Po"; else rm
>>> -f ".deps/vasnprintf.Tpo"; exit 1; fi
>>> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
>>> -I/usr/local/ssl/include  -g -O2 -MT vasprintf.o -MD -MP -MF
>>> ".deps/vasprintf.Tpo" -c -o vasprintf.o vasprintf.c; \
>>> then mv -f ".deps/vasprintf.Tpo" ".deps/vasprintf.Po"; else rm
>>> -f ".deps/vasprintf.Tpo"; exit 1; fi
>>> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
>>> -I/usr/local/ssl/include  -g -O2 -MT xmalloc.o -MD -MP -MF
>>> ".deps/xmalloc.Tpo" -c -o xmalloc.o xmalloc.c; \
>>> then mv -f ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; else rm -f
>>> ".deps/xmalloc.Tpo"; exit 1; fi
>>> rm -f libgnu.a
>>> ar cru libgnu.a full-read.o full-write.o strnlen1.o xalloc-die.o
>>> xstrndup.o asnprintf.o asprintf.o basename.o c-strtod.o cloexec.o
>>> creat-safer.o dirname.o dup-safer.o error.o exitfail.o fd-safer.o
>>> fsusage.o getopt.o getopt1.o mbchar.o mountlist.o open-safer.o
>>> pipe-safer.o printf-args.o printf-parse.o regex.o safe-read.o
>>> safe-write.o strcasecmp.o stripslash.o strndup.o strnlen.o vasnprintf.o
>>> vasprintf.o xmalloc.o
>>> /bin/bash: /usr/local/bin/ar: Invalid argument
>>> make[3]: *** [libgnu.a] Error 126
>>> make[3]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11/gl'
>>> make[2]: *** [all] Error 2
>>> make[2]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11/gl'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11'
>>>
>>>
>>> any ideas?
>>>
>>>
>>>
>>> regards,
>>>
>>>
>>> _Terry
>>>
>>>
>>>
>>> -
>>> 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 e

Re: [Nagios-users] nagios-plugins fail to compile solaris 10 x86/x64

2008-05-21 Thread kyle . odonnell
I used the following:

./configure --prefix=/opt/nagios --enable-perl-modules
--with-perl=/usr/bin/perl --without-ipv6 --without-openssl
--without-ssl --disable-ssl --disable-openssl
--with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime
comm args' --with-ps-format=%s %d %d %d %d %d %f %s %s %n
--with-ps-cols=10
-with-ps-varlist=procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos

I also used the sunfreeware gcc compiler instead.

binaries are available on the nagiosexchange:

http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2564.html;d=1


On 5/21/08, Terry L. Inzauro <[EMAIL PROTECTED]> wrote:
> list,
>
> im getting the following when attempting to compile nagios-plugins on a
> solaris 10 x86 (x4500) box.
>
>
> # begin background system info
>
>
> -bash-3.00$ uname -a
> SunOS loraine 5.10 Generic_127128-11 i86pc i386 i86pc
>
> -bash-3.00$ gcc -v
> Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
> Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
> --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
> --enable-shared
> Thread model: posix
> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>
> -bash-3.00$ which ar
> /usr/local/bin/ar
>
> -bash-3.00$ which make
> /usr/local/bin/make
>
> -bash-3.00$ make -v
> GNU Make 3.81
> Copyright (C) 2006  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for i386-pc-solaris2.10
>
> # end background system
>
>
> # begin make errors (output truncated)
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
> -I/usr/local/ssl/include  -g -O2 -MT vasnprintf.o -MD -MP -MF
> ".deps/vasnprintf.Tpo" -c -o vasnprintf.o vasnprintf.c; \
> then mv -f ".deps/vasnprintf.Tpo" ".deps/vasnprintf.Po"; else rm
> -f ".deps/vasnprintf.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
> -I/usr/local/ssl/include  -g -O2 -MT vasprintf.o -MD -MP -MF
> ".deps/vasprintf.Tpo" -c -o vasprintf.o vasprintf.c; \
> then mv -f ".deps/vasprintf.Tpo" ".deps/vasprintf.Po"; else rm
> -f ".deps/vasprintf.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
> -I/usr/local/ssl/include  -g -O2 -MT xmalloc.o -MD -MP -MF
> ".deps/xmalloc.Tpo" -c -o xmalloc.o xmalloc.c; \
> then mv -f ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; else rm -f
> ".deps/xmalloc.Tpo"; exit 1; fi
> rm -f libgnu.a
> ar cru libgnu.a full-read.o full-write.o strnlen1.o xalloc-die.o
> xstrndup.o asnprintf.o asprintf.o basename.o c-strtod.o cloexec.o
> creat-safer.o dirname.o dup-safer.o error.o exitfail.o fd-safer.o
> fsusage.o getopt.o getopt1.o mbchar.o mountlist.o open-safer.o
> pipe-safer.o printf-args.o printf-parse.o regex.o safe-read.o
> safe-write.o strcasecmp.o stripslash.o strndup.o strnlen.o vasnprintf.o
> vasprintf.o xmalloc.o
> /bin/bash: /usr/local/bin/ar: Invalid argument
> make[3]: *** [libgnu.a] Error 126
> make[3]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11/gl'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11/gl'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11'
>
>
> any ideas?
>
>
>
> regards,
>
>
> _Terry
>
>
>
> -
> 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] nagios npre

2008-05-01 Thread kyle . odonnell
if you use sudo to execute the reboot command sure.

On 5/1/08, Ange Olivier AMBEMOU <[EMAIL PROTECTED]> wrote:
> hi all
>
> i am new to nagios and i want to know if is possible to use nagios to reboot
>  on pc or service with command check_something, i see check_npre can be use
> to make check for a remote box . help me please.
>
>
> __
> Do You Yahoo!?
> En finir avec le spam? Yahoo! Mail vous offre la meilleure protection
> possible contre les messages non sollicités
> http://mail.yahoo.fr Yahoo! Mail

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Cluster setup

2008-05-01 Thread kyle . odonnell
I have nagios on an nfs mount and share between 2 servers.  Remember
to point the entire var directory to local disk (performance reasons,
and because the nagios command pipe wont work over nfs).

Monitor the primary server from the secondary server via cron (run
check_nrpe/check_by_ssh  check_nagios).

You can either leave the secondary nagios daemon running, but send an
external command to disable notifications and or active checks on
startup, then have your cron job send an external command to enable
notofications/checks. OR do not leave the nagios daemon running and
have your cron job start nagios

On 5/1/08, Tom Brown <[EMAIL PROTECTED]> wrote:
> Hi
>
> I will shortly be configuring a couple of nagios hosts in a cluster
> setup, most likely active/passive, and i wonder if there are 'best
> practices' for this? I will most likely be setting up for redundancy as
> opposed 'performance'
>
> I have things like NFS from a Netapp available to me so would it be
> 'easier' to share configs between the hosts by having them on the NFS
> disk and then use heartbeat to control the VIP or do people do this a
> different way for Nagios?
>
> thanks
>
>
>
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> 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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Strange NRPE Problem...

2008-04-28 Thread kyle . odonnell
Does it work locally if you run it as the same user as the NRPE daemon
is running?

On 4/28/08, Gavin Williams <[EMAIL PROTECTED]> wrote:
> Hi there,
>
>
>
> I'm having some strange NRPE behaviour.
>
> I've written a Perl script that runs a load of checks on our systems,
> but the ones that are causing the problem are any checks that want to
> connect to Oracle via DBI.
>
>
>
> The error it's giving me is:
>
> DBI connect('','',...) failed: ORA-12560: TNS:protocol adapter error
> (DBD ERROR: OCIServerAttach) at nagios_checks.pl line 82
>
>
>
> Now this command works fine if I run it locally on the server, however
> when using NRPE it throws the above error.
>
>
>
> The lines in question in my script look like this:
>
> sub dbConnect
>
> {
>
> my $dbh;
>
> eval
>
> {
>
> $dbh =
> DBI->connect("dbi:Oracle:$database","$username","$password",{ RaiseError
> => 1, AutoCommit => 0, PrintError => 0})
>
> || die "failed to connect to $database\n";
>
> };
>
> if ($@)
>
> {
>
> my $msg .= [EMAIL PROTECTED]"\n";
>
> die "$msg\n";
>
> }
>
>
>
> return $dbh;
>
> }
>
> The username, password and database get loaded in from a XML Config
> file... But it all works locally???
>
>
>
> Any ideas?
>
>
>
> Cheers
>
> Gavin
>
>
> 
> Please consider the environment - do you really need to print this email?
> 
> This email has been scanned for all viruses by the MessageLabs Email
> Security System - http://www.messagelabs.com.
> 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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_logfiles documentation

2008-04-16 Thread kyle . odonnell
http://www.consol.de/opensource/nagios/check-logfiles

Theres an english flag in the top left.  Near the bottom of the page
there's a link with a load of examples.



On 4/16/08, Victor Lanza <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> Does anyone have a detailed doc written for configuring check_logfiles. I'm
> new to Nagios and Linux :-) and I've managed to install Nagios, NRPE, as
> well as the check_logfiles plugin. I've set up a few hosts, commands, and
> service checks with and without the use of NRPE and everything is working in
> that aspect. I'm just stuck on getting the plugin jumpstarted and the
> current documentation provided in the check_logs site is a bit overwhelming.
>
>
>
> I would greatly appreciate it.
>
>
>
> Thanks,
>
>

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] interfacing nagios to ibm director

2008-04-11 Thread kyle . odonnell
We've been looking at a few different methods.

Using the Director server to execute send_nsca, or send snmptraps to
snmptt which get picked up by nagios.

Or dumping the director agent messages to syslog/ a log and picking up
the messages with check_logfiles.

On 4/10/08, Folkert van Heusden <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Anyone got experience with interfacing ibm director to nagios?
> E.g. director checks some statusses of some servers and nagios then
> somehow picks that status up.
>
>
> Folkert
>
> --
> --
> Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
>
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> 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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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_Disk Issues

2008-02-28 Thread kyle . odonnell
there is no -H hostaddress option for check_disk it is a local check.
if you want to check filesystems remotely use nrpe or ssh.



On 2/28/08, Hill Jeffrey <[EMAIL PROTECTED]> wrote:
> In the commands.cfg file.
> define command{
> command_name check_disk
> command_line $USER1$/check_disk -H $HOSTADDRESS$ -w $ARG1$ -c
> $ARG2$ -p $ARG3$
> }
> In the services.cfg file.
> define service{
> host_name X
> service_description check_disk
> check_command check_disk!80%!90%!*
> max_check_attempts 5
> normal_check_interval 5
> retry_check_interval 3
> check_period 24x7
> notification_interval 30
> notification_period 24x7
> notification_options w,c,r
> contact_groups systems-admins
> }
>
> In the web interface I am getting
> Current Status: CRITICAL
> Status Information: (Return code of 127 is out of bounds - plugin may be
> missing)
>
> I have checked the libexec and the check_disk command is in
> /usr/local/nagios/libexec. I have also got it to error with a different
> error which is Current Status:
> UNKNOWN
>
> Status Information:
> Unknown argument
>
> I have restarted with no errors, and have checked and found no errors
> involved with check_disk not being installed, or it would not let me
> restart the Nagios service.
>
> Any ideas on what I am doing wrong?
>
>
>
>
> Thanks,
>
> Jeff
>

-
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] Plugin Output Standardization (was JMX plugin thread)

2008-02-27 Thread kyle . odonnell
My $0.02:

plug-in output isn't completely arbitrary if you plan on processing
performance data.

considering that a single defined command can be turned into multiple
services (assuming you use $ARG$ variables) I don't think printing the
servicename would be helpful.  The servicename is already available in
both the web and notification output too.

-Kyle

On 2/27/08, Hari Sekhon <[EMAIL PROTECTED]> wrote:
> Marc Powell wrote:
> > The plugin output text is completely arbitrary. Nagios only really cares
> > about the exit code and that there's only one line of plugin output,
> > whatever it is
> Yes quite right, but standardization of output is nice for coherence and
> to give a more professional unified feel.
>
> Do you have any preference between the two? There seems to unfortunately
> be a mix between the two styles.
>
> Perhaps the official development guidelines could be adjusted to steel
> people towards one standard output format on this?
>
> I'd vote for the "SERVICENAME SERVICESTATUS: Informational text" format
> like "DISK OK: / is 50% full" ...
>
> -h
>
> --
> Hari Sekhon
>
>
> -
> 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] web interface on a different machine then Nagios daemon.

2008-02-11 Thread kyle . odonnell
make sure your submissions are being inserted into the cgi.pipe file,
permissions might be an issue.

On 2/11/08, seb <[EMAIL PROTECTED]> wrote:
> Nice idea :)
>
> I have compile cmd.c ok
> place it to the good path
> script file and permissions set.
>
> when i try to submit passive result it not freeze but now i have this error
> :
>
> "An error occurred while attempting to commit your command for processing."
> Return from whence you came
>
> :(
>
>
> On Mon, 11 Feb 2008 08:11:35 -0500, [EMAIL PROTECTED] wrote:
> > woops email cut off..
> >
> >
> > Add a kill -9 of the tail/script in the nagios stop case.
> >
> > If you're concerned about file size, create a logrotate script for the
> > file..
> >
> > --Kyle
> >
> > On 2/11/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> I found a way around this, but its not pretty:
> >>
> >> Modify nagios-src/cgi/cmd.c  to write to a flat file instead of  the
> >> command pipe:
> >>
> >> int write_command_to_file(char *cmd){
> >> FILE *fp;
> >> struct stat statbuf;
> >>
> >> /* bail out if the external command file doesn't exist */
> >> if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){
> >>
> >> if(content_type==WML_CONTENT)
> >> printf("Error: Could not stat() external
> >> command file!\n");
> >> else{
> >> printf("Error:
> >> Could not stat() command file
> >> '%s'!\n","/path/to/var/spool/cgi.pipe");
> >> printf("");
> >> printf("The external command file may be
> >> missing, Nagios may not be running, and/or Nagios may not be checking
> >> external commands.\n");
> >> printf("\n");
> >> }
> >>
> >> return ERROR;
> >> }
> >>
> >> /* open the command for writing (since this is a pipe, it will
> >> really be appended) */
> >> fp=fopen("/path/to/var/spool/cgi.pipe","w");
> >> if(fp==NULL){
> >>
> >> if(content_type==WML_CONTENT)
> >> printf("Error: Could not open command file
> >> for update!\n");
> >> else{
> >> printf("Error:
> >> Could not open command file '%s' for
> >> update!\n","/path/to/var/spool/cgi.pipe");
> >> printf("");
> >> printf("The permissions on the external
> >> command file and/or directory may be incorrect.  Read the FAQs on how
> >> to setup proper permissions.\n");
> >> printf("\n");
> >> }
> >>
> >> return ERROR;
> >> }
> >>
> >>
> >> Create a script like this:
> >>
> >> # cat cmdpipe.sh
> >> #!/bin/sh
> >> /bin/true > /path/to/var/spool/cgi.pipe
> >> chown nagios:nagios /path/to/var/spool/cgi.pipe
> >> /usr/bin/tail -F /path/to/var/spool/cgi.pipe >
> > /path/to/var/spool/nagios.cmd
> >> &
> >>
> >>
> >> Add it to your nagios start script:
> >>
> >> start)
> >> echo -en "\nStarting network monitor: nagios"
> >> $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
> >> if [ $? -eq 0 ]; then
> >> su - $NagiosUser -c "touch $NagiosVarDir/nagios.log
> >> $NagiosRetentionFile"
> >> rm -f $NagiosCommandFile
> >> touch $NagiosRunFile
> >> chown $NagiosUser:$NagiosGroup $NagiosRunFile
> >> $NagiosBin -d $NagiosCfgFile
> >> su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 &
> >>
> >>
> >> On 2/11/08, seb <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> >
> >> > I have installed nagios 3.0rc2 on a machine
> >> > and run the nagios daemon process on a other
> >> > /var/spool/nagios
> >> > and /var/log/nagios are shared over NFS
> >> > and it works pretty fine.
> >> >
> >> > BUT! when I want to add/remove a comment, reschedule or submit passive
> >> > results, cmd.cgi freeze !
> >> >
> >> > The idea is to have only one virtual machine with apache http service
> > and
> >> > one with nagios process without httpd running.
> >> > so if it can works or not please tell me
> >> >
> >> > I think permission is OK I have set 2777 nagios.apache on every
> > directory
> >> > but when I "post" someting to "cmd.cgi" It hangs...
> >> >
> >> > I have try on the command line
> >> >
> >> > export REQUEST_METHOD="post"
> >> > export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21"
> >> > export REMOTE_USER=""
> >> >
> >> > ./cmd.cgi
> >> >
> >> > but it also freeze after reply me this :
> >> >
> >> > Content-type: text/html
> >> >
> >> > 
> >> > 
> >> >  >> > type="image/ico">
> >> > 
> >> > External Command Interface
> >> > 
> >> >  >> > HREF='skins/default/nagios/stylesheets/common.css'>
> >> >  > HREF='skins/default/nagios/stylesheets/cmd.css'>
> >> > 
> >> > 
> >> >
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > External Command Interface
> >> > Last Updated: Mon Feb 11 13:32:27 CET 2008
> >> > Nagios(R) 3.0rc2 -  >> > CLASS='hom

Re: [Nagios-users] PluginSource Code

2008-02-11 Thread kyle . odonnell
http://nagiosplugins.org/

nagiosexchange.org too

On 2/11/08, Tatyaso Babar <[EMAIL PROTECTED]> wrote:
> Hi All,
>
>
>
> Is there any way to get the source code/script of the nagios plugins
> (like check_ping,Check_by_ssh etc) which are getting installed in binary
> file mode?
>
> I just wanted to know more about the tests these tools do and modify
> them as per my environment if required.
>
>
>
> I tried searching for the plugin sources but could not find any. If
> someone can point me to right way, it would be helpful.
>
>
>
> Regards,
>
> Tatyaso
>
>
>
>

-
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] web interface on a different machine then Nagios daemon.

2008-02-11 Thread kyle . odonnell
woops email cut off..


Add a kill -9 of the tail/script in the nagios stop case.

If you're concerned about file size, create a logrotate script for the file..

--Kyle

On 2/11/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I found a way around this, but its not pretty:
>
> Modify nagios-src/cgi/cmd.c  to write to a flat file instead of  the
> command pipe:
>
> int write_command_to_file(char *cmd){
> FILE *fp;
> struct stat statbuf;
>
> /* bail out if the external command file doesn't exist */
> if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){
>
> if(content_type==WML_CONTENT)
> printf("Error: Could not stat() external
> command file!\n");
> else{
> printf("Error:
> Could not stat() command file
> '%s'!\n","/path/to/var/spool/cgi.pipe");
> printf("");
> printf("The external command file may be
> missing, Nagios may not be running, and/or Nagios may not be checking
> external commands.\n");
> printf("\n");
> }
>
> return ERROR;
> }
>
> /* open the command for writing (since this is a pipe, it will
> really be appended) */
> fp=fopen("/path/to/var/spool/cgi.pipe","w");
> if(fp==NULL){
>
> if(content_type==WML_CONTENT)
> printf("Error: Could not open command file
> for update!\n");
> else{
> printf("Error:
> Could not open command file '%s' for
> update!\n","/path/to/var/spool/cgi.pipe");
> printf("");
> printf("The permissions on the external
> command file and/or directory may be incorrect.  Read the FAQs on how
> to setup proper permissions.\n");
> printf("\n");
> }
>
> return ERROR;
> }
>
>
> Create a script like this:
>
> # cat cmdpipe.sh
> #!/bin/sh
> /bin/true > /path/to/var/spool/cgi.pipe
> chown nagios:nagios /path/to/var/spool/cgi.pipe
> /usr/bin/tail -F /path/to/var/spool/cgi.pipe > /path/to/var/spool/nagios.cmd
> &
>
>
> Add it to your nagios start script:
>
> start)
> echo -en "\nStarting network monitor: nagios"
> $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
> if [ $? -eq 0 ]; then
> su - $NagiosUser -c "touch $NagiosVarDir/nagios.log
> $NagiosRetentionFile"
> rm -f $NagiosCommandFile
> touch $NagiosRunFile
> chown $NagiosUser:$NagiosGroup $NagiosRunFile
> $NagiosBin -d $NagiosCfgFile
> su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 &
>
>
> On 2/11/08, seb <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have installed nagios 3.0rc2 on a machine
> > and run the nagios daemon process on a other
> > /var/spool/nagios
> > and /var/log/nagios are shared over NFS
> > and it works pretty fine.
> >
> > BUT! when I want to add/remove a comment, reschedule or submit passive
> > results, cmd.cgi freeze !
> >
> > The idea is to have only one virtual machine with apache http service and
> > one with nagios process without httpd running.
> > so if it can works or not please tell me
> >
> > I think permission is OK I have set 2777 nagios.apache on every directory
> > but when I "post" someting to "cmd.cgi" It hangs...
> >
> > I have try on the command line
> >
> > export REQUEST_METHOD="post"
> > export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21"
> > export REMOTE_USER=""
> >
> > ./cmd.cgi
> >
> > but it also freeze after reply me this :
> >
> > Content-type: text/html
> >
> > 
> > 
> >  > type="image/ico">
> > 
> > External Command Interface
> > 
> >  > HREF='/nagios/stylesheets/common.css'>
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > External Command Interface
> > Last Updated: Mon Feb 11 13:32:27 CET 2008
> > Nagios® 3.0rc2 -  > CLASS='homepageURL'>www.nagios.org
> > Logged in as 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > Any idea ?
> >
> > Thanks
> >
> > Sebastien CAPS
> >
> >
> >
> > -
> > 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/
___

Re: [Nagios-users] web interface on a different machine then Nagios daemon.

2008-02-11 Thread kyle . odonnell
I found a way around this, but its not pretty:

Modify nagios-src/cgi/cmd.c  to write to a flat file instead of  the
command pipe:

int write_command_to_file(char *cmd){
FILE *fp;
struct stat statbuf;

/* bail out if the external command file doesn't exist */
if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){

if(content_type==WML_CONTENT)
printf("Error: Could not stat() external
command file!\n");
else{
printf("Error:
Could not stat() command file
'%s'!\n","/path/to/var/spool/cgi.pipe");
printf("");
printf("The external command file may be
missing, Nagios may not be running, and/or Nagios may not be checking
external commands.\n");
printf("\n");
}

return ERROR;
}

/* open the command for writing (since this is a pipe, it will
really be appended) */
fp=fopen("/path/to/var/spool/cgi.pipe","w");
if(fp==NULL){

if(content_type==WML_CONTENT)
printf("Error: Could not open command file
for update!\n");
else{
printf("Error:
Could not open command file '%s' for
update!\n","/path/to/var/spool/cgi.pipe");
printf("");
printf("The permissions on the external
command file and/or directory may be incorrect.  Read the FAQs on how
to setup proper permissions.\n");
printf("\n");
}

return ERROR;
}


Create a script like this:

# cat cmdpipe.sh
#!/bin/sh
/bin/true > /path/to/var/spool/cgi.pipe
chown nagios:nagios /path/to/var/spool/cgi.pipe
/usr/bin/tail -F /path/to/var/spool/cgi.pipe > /path/to/var/spool/nagios.cmd &


Add it to your nagios start script:

start)
echo -en "\nStarting network monitor: nagios"
$NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
if [ $? -eq 0 ]; then
su - $NagiosUser -c "touch $NagiosVarDir/nagios.log
$NagiosRetentionFile"
rm -f $NagiosCommandFile
touch $NagiosRunFile
chown $NagiosUser:$NagiosGroup $NagiosRunFile
$NagiosBin -d $NagiosCfgFile
su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 &


On 2/11/08, seb <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have installed nagios 3.0rc2 on a machine
> and run the nagios daemon process on a other
> /var/spool/nagios
> and /var/log/nagios are shared over NFS
> and it works pretty fine.
>
> BUT! when I want to add/remove a comment, reschedule or submit passive
> results, cmd.cgi freeze !
>
> The idea is to have only one virtual machine with apache http service and
> one with nagios process without httpd running.
> so if it can works or not please tell me
>
> I think permission is OK I have set 2777 nagios.apache on every directory
> but when I "post" someting to "cmd.cgi" It hangs...
>
> I have try on the command line
>
> export REQUEST_METHOD="post"
> export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21"
> export REMOTE_USER=""
>
> ./cmd.cgi
>
> but it also freeze after reply me this :
>
> Content-type: text/html
>
> 
> 
>  type="image/ico">
> 
> External Command Interface
> 
>  HREF='/nagios/stylesheets/common.css'>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> External Command Interface
> Last Updated: Mon Feb 11 13:32:27 CET 2008
> Nagios® 3.0rc2 -  CLASS='homepageURL'>www.nagios.org
> Logged in as 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Any idea ?
>
> Thanks
>
> Sebastien CAPS
>
>
>
> -
> 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] Determining the success or failure of external commands

2008-01-23 Thread kyle . odonnell
Hi Scott,

I'm in the process of doing something similar.  I've come up with
something that may help you.

Read my thread entitle "nagios.cmd over nfs"

http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[mode]=1&tx_maillisttofaq_pi1[showUid]=8571


If nfs isn't an option, Thomas mentioned the use of netcat and or a
Perl daemon which would offer more control.

Good luck!
On 1/23/08, Scott Sanders <[EMAIL PROTECTED]> wrote:
> In my case, a backup job might take down a MySQL database for anywhere from
> 1 minute to 1 hour, depending on the size of the database. Because the time
> needed to perform the backup is flexible and the time when the backup might
> occur is not always known, I cannot simply set the affected services to only
> notify in a timeperiod that excludes certain hours of the days. This is just
> an example of why I need to allow scripts and applications not on the nagios
> host(s) to be able to use the external command pipe.
>
> Currently I have a very simple API over https that uses the same auth
> mechanism as the Nagios frontend, and PHP classes that I can use in my
> client side scripts to manipulate this API. I am able to query Nagios about
> object data and status data, as well as submit commands to the
> nagios.cmdpipe. In order for the external command functionality to
> work the way I
> intend, I need to obtain a response from nagios so my server can respond
> back to the client with the results of processing the external command. I am
> really hoping there is an easy way to do this, as replacing the
> nagios.cmdfile with something besides a FIFO pipe requires
> modification to the nagios
> source and is something I was trying to avoid.
>
> Thanks for the response. I hope this makes sense.
>
> -Scott
>
> On 1/23/08, Andreas Ericsson <[EMAIL PROTECTED]> wrote:
> >
> > Scott Sanders wrote:
> > > Hi,
> > >
> > > I am working on implementing some functionality that will allow me to
> > safely
> > > expose nagios.cmd to external hosts. In my environment there are
> > maintenance
> > > tasks that run periodically which disrupt certain services, causing
> > nagios
> > > to start generating alerts. Needless to say, I am tired of having my
> > cell
> > > phone go crazy when this happens.
> >
> > In that case, why not ask "How do I keep my cellphone from waking me up?"?
> > Instead, you've thought up a solution to your problem, which generates
> > other problems, and now you want help solving those other problems.
> >
> > Assuming you know when these disruptive tasks are run, you should simply
> > create a notification_period that doesn't include the sensitive hours
> > and use that notification_period for the services being disrupted.
> >
> > There are other solutions too, but this one is normally the recommended,
> > so I suggest you try that out first.
> >
> > --
> > Andreas Ericsson   [EMAIL PROTECTED]
> > OP5 AB www.op5.se
> > Tel: +46 8-230225  Fax: +46 8-230231
> >
>

-
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] nagios.cmd over nfs

2008-01-23 Thread kyle . odonnell
Thanks for the pointers.

On 1/23/08, Thomas Guyot-Sionnest <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 23/01/08 08:12 AM, [EMAIL PROTECTED] wrote:
> > Success!
> >
> > Web Server-
> > cmd.c
> >
> > change:
> > fopen(command_file,"w")
> > to:
> > fopen("/path/to/cgi.pipe","a")
> >
> > Nagios Server-
> >
> > edit nagios startup script to:
> >
> > start)
> > touch /path/to/cgi.pipe
> > tail -f /path/to/cgi.pipe > /path/to/nagios.cmd
>
> Truncate it first to avoid replaying old commands:
>
> start)
> true >/path/to/cgi.pipe
> tail -f /path/to/cgi.pipe > /path/to/nagios.cmd
>
> > stop)
> > rm /path/to/cgi.pipe
>
> Useless as the file can be created by the cgi anyways...
>
> You should also monitor the size and make sure it doesn't grows up too much.
>
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHl0At6dZ+Kt5BchYRAnTlAKDj9zBA9EFgOLoNrg1ZGylthdUsuQCggux+
> ZyzkpkjWOMsQjdsuQp3arNE=
> =NAKF
> -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


Re: [Nagios-users] nagios.cmd over nfs

2008-01-23 Thread kyle . odonnell
Success!

Web Server-
cmd.c

change:
fopen(command_file,"w")
to:
fopen("/path/to/cgi.pipe","a")

Nagios Server-

edit nagios startup script to:

start)
touch /path/to/cgi.pipe
tail -f /path/to/cgi.pipe > /path/to/nagios.cmd

stop)
rm /path/to/cgi.pipe



On 1/23/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I was thinking of changing the cgi.cgi source to write to an actual
> file on the nfs mount, and then have tail -f nfswrittenfile.cmd-pipe >
> /path/to/nagios.cmd
>
> On 1/22/08, Thomas Guyot-Sionnest <[EMAIL PROTECTED]> wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On 22/01/08 03:38 PM, [EMAIL PROTECTED] wrote:
> > > ... not so much
> > >
> > > It solves the web page spinning, but since nagios never picks up the
> > > data nothing happens.
> >
> > Yep. As it was already said on the thread fifos only works locally. It
> > implemented in the kernel, not in the FS code. The FS is only involved
> > in giving it a name and permissions (and this trivial task is properly
> > implemented by NFS: each server can use the pipe ... locally).
> >
> > A trivial (hacky) workaround could be using Netcat (nc):
> >
> > On the webserver:
> >
> > cat /path/to/nagios.cmd | nc  
> >
> > On the Nagios server:
> >
> > nc -lp  >/path/to/nagios.cmd
> >
> > Since NC can die you should ideally run in with Daniel J Bernstein's
> > Daemontools:
> >
> > http://cr.yp.to/daemontools.html
> >
> > Also try in UDP mode (nc -u host post / nc -lup port) if you have
> problems.
> >
> >
> > The solution I'd go for though would be using Perl daemons for relaying
> > the commands using code similar to these daemons:
> >
> > http://www.nagioscommunity.org/wiki/index.php/OCP_Daemon#OCP_daemon_code
> > http://nagiosexchange.altinity.org/nagiosexchange/NPDaemon/
> >
> > It requires good Perl knowledge, especially since these daemons doesn't
> > include any non-blocking sending function. Since the command pipe isn't
> > much solicited you can just go blocking too (while ()/blocking
> > send on the web server, blocking listen/blocking write to the nagios
> > server), but make sure you implement timeouts with alarm() in the
> > network code to avoid jamming there.
> >
> > Thomas
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iD8DBQFHlroF6dZ+Kt5BchYRAuhlAJ0SZ5RXPnXkRZGMHTaklNw8znQIVwCdHrah
> > EqhmEozdq4qLNeM8W0Ip3l0=
> > =BRMo
> > -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


Re: [Nagios-users] nagios.cmd over nfs

2008-01-23 Thread kyle . odonnell
I was thinking of changing the cgi.cgi source to write to an actual
file on the nfs mount, and then have tail -f nfswrittenfile.cmd-pipe >
/path/to/nagios.cmd

On 1/22/08, Thomas Guyot-Sionnest <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 22/01/08 03:38 PM, [EMAIL PROTECTED] wrote:
> > ... not so much
> >
> > It solves the web page spinning, but since nagios never picks up the
> > data nothing happens.
>
> Yep. As it was already said on the thread fifos only works locally. It
> implemented in the kernel, not in the FS code. The FS is only involved
> in giving it a name and permissions (and this trivial task is properly
> implemented by NFS: each server can use the pipe ... locally).
>
> A trivial (hacky) workaround could be using Netcat (nc):
>
> On the webserver:
>
> cat /path/to/nagios.cmd | nc  
>
> On the Nagios server:
>
> nc -lp  >/path/to/nagios.cmd
>
> Since NC can die you should ideally run in with Daniel J Bernstein's
> Daemontools:
>
> http://cr.yp.to/daemontools.html
>
> Also try in UDP mode (nc -u host post / nc -lup port) if you have problems.
>
>
> The solution I'd go for though would be using Perl daemons for relaying
> the commands using code similar to these daemons:
>
> http://www.nagioscommunity.org/wiki/index.php/OCP_Daemon#OCP_daemon_code
> http://nagiosexchange.altinity.org/nagiosexchange/NPDaemon/
>
> It requires good Perl knowledge, especially since these daemons doesn't
> include any non-blocking sending function. Since the command pipe isn't
> much solicited you can just go blocking too (while ()/blocking
> send on the web server, blocking listen/blocking write to the nagios
> server), but make sure you implement timeouts with alarm() in the
> network code to avoid jamming there.
>
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHlroF6dZ+Kt5BchYRAuhlAJ0SZ5RXPnXkRZGMHTaklNw8znQIVwCdHrah
> EqhmEozdq4qLNeM8W0Ip3l0=
> =BRMo
> -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


Re: [Nagios-users] nagios.cmd over nfs

2008-01-22 Thread kyle . odonnell
... not so much

It solves the web page spinning, but since nagios never picks up the
data nothing happens.

Back to the drawing board.

On 1/22/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I found a neat but ugly work-around.  After doing some reading, it
> appears as though the fifo/pipe  needs to be opened for reading and
> writing at the same time.
>
> If I leave 'tail -f nagios.cmd' running on the remote site nfs
> mounting the pipe, data is processed!
>
>
> On 1/22/08, Sean McAvoy <[EMAIL PROTECTED]> wrote:
> > AFAIK,
> > You cannot use a FIFO (pipe) over NFS. The pipe refers to not a file
> > but a kernel IPC method. So a FIFO created on the NFS server is known
> > to the nfs server and not the client system.
> >
> >
> > On 22-Jan-08, at 1:11 PM, Brian A. Seklecki wrote:
> >
> > > On Tue, 2008-01-22 at 13:09 -0500, Kyle O'Donnell wrote:
> > >> Hi,
> > >>
> > >> I've migrated the nagios web interface onto a different physical
> > >> server, nfs mounting the nagios directory from the actual nagios
> > >> server.
> > >>
> > >> Only snag I'm running into right now is trying to access the
> > >> nagios.cmd pipe over nfs.  When trying to schedule downtime, disable
> > >> notifications etc... the web interface just spins. I see cmd.cgi is
> > >> being executed, but nothing happens.
> > >
> > > Is NFS rpc.lockd running?  Try mount_nfs(8) with '-L'
> > >
> > >  -L  Do not forward fcntl(2) locks over the wire.  All
> > > locks will be
> > >  local and not seen by the server and likewise not seen
> > > by other
> > >  NFS clients.  This removes the need to run the rpcbind
> > > (8) service
> > >  and the rpc.statd(8) and rpc.lockd(8) servers on the
> > > client.
> > >  Note that this option will only be honored when
> > > performing the
> > >  initial mount, it will be silently ignored if used
> > > while updating
> > >  the mount options.
> > >
> > > ~BAS
> > >
> > >> Both servers have the same uid/gids for nagios, webserver is even
> > >> running as nagios user.
> > >>
> > >> I know a 'work-around' is to ssh+keys>nagios.cmd pipe, but this
> > >> isn't an option.
> > >>
> > >> Any ideas?
> > >>
> > >> Kyle
> > >>
> > >> -
> > >> 
> > >> 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
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > > --
> > > Brian A. Seklecki <[EMAIL PROTECTED]>
> > > Collaborative Fusion, Inc.
> > >
> > >
> > > --
> > > ---
> > > 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
> >
> > Sean McAvoy
> > NOC Team Lead
> > Afilias Canada
> >
> > P. 416.673.4194
> >
> >
> >
> >
> >
>

-
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] nagios.cmd over nfs

2008-01-22 Thread kyle . odonnell
I found a neat but ugly work-around.  After doing some reading, it
appears as though the fifo/pipe  needs to be opened for reading and
writing at the same time.

If I leave 'tail -f nagios.cmd' running on the remote site nfs
mounting the pipe, data is processed!


On 1/22/08, Sean McAvoy <[EMAIL PROTECTED]> wrote:
> AFAIK,
> You cannot use a FIFO (pipe) over NFS. The pipe refers to not a file
> but a kernel IPC method. So a FIFO created on the NFS server is known
> to the nfs server and not the client system.
>
>
> On 22-Jan-08, at 1:11 PM, Brian A. Seklecki wrote:
>
> > On Tue, 2008-01-22 at 13:09 -0500, Kyle O'Donnell wrote:
> >> Hi,
> >>
> >> I've migrated the nagios web interface onto a different physical
> >> server, nfs mounting the nagios directory from the actual nagios
> >> server.
> >>
> >> Only snag I'm running into right now is trying to access the
> >> nagios.cmd pipe over nfs.  When trying to schedule downtime, disable
> >> notifications etc... the web interface just spins. I see cmd.cgi is
> >> being executed, but nothing happens.
> >
> > Is NFS rpc.lockd running?  Try mount_nfs(8) with '-L'
> >
> >  -L  Do not forward fcntl(2) locks over the wire.  All
> > locks will be
> >  local and not seen by the server and likewise not seen
> > by other
> >  NFS clients.  This removes the need to run the rpcbind
> > (8) service
> >  and the rpc.statd(8) and rpc.lockd(8) servers on the
> > client.
> >  Note that this option will only be honored when
> > performing the
> >  initial mount, it will be silently ignored if used
> > while updating
> >  the mount options.
> >
> > ~BAS
> >
> >> Both servers have the same uid/gids for nagios, webserver is even
> >> running as nagios user.
> >>
> >> I know a 'work-around' is to ssh+keys>nagios.cmd pipe, but this
> >> isn't an option.
> >>
> >> Any ideas?
> >>
> >> Kyle
> >>
> >> -
> >> 
> >> 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
> >>
> >>
> >>
> >>
> >>
> >>
> > --
> > Brian A. Seklecki <[EMAIL PROTECTED]>
> > Collaborative Fusion, Inc.
> >
> >
> > --
> > ---
> > 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
>
> Sean McAvoy
> NOC Team Lead
> Afilias Canada
>
> P. 416.673.4194
>
>
>
>
>

-
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] Nagios NRPE til HPUX???

2008-01-15 Thread kyle . odonnell
I used gcc.  I had to modify some of the nrpe/nsca code (changed some
of the operators), and exclude some of the plugins from
nagios-plugins

used:


On 1/15/08, Thanh vovinam <[EMAIL PROTECTED]> wrote:
> Hello Nagios users,
>
> We are using Nagios NRPE to monitor some HPUX 11i  machines.
> Can we use GNU-gcc to compile Nagios NRPE to HPUX11i? or we must use HPUX -C
> compile?
> Is any thing specials (parameters?) when we compile Nagios NRPE?
> Is any Nagios plugin/checks for HPUX 11i?
>
> Thanks,
>
> Best Regards,
>
> Thanh Ngoc Tran
>

-
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] Monitor web server run multiple virtual web site

2008-01-09 Thread kyle . odonnell
try check_http instead

On 1/9/08, trevor obba <[EMAIL PROTECTED]> wrote:
>
>
>
> I am running Nagios 2.5 on a Suse Enterprise 10; I would
> like to monitor web server running IIS with multiple virtual web sites.
>
>
>
>
>
> Each virtual web site has different IP address, Domain name
> and run on different port.
>
>
>
>
>
> Here is Nagios command definition
>
>
>
>
>
>  $USER1$/check_tcp -H
> $HOSTADDRESS$ -p $ARG1$
>
>
>
>
>
> The command definition substitute "host address" of the
> server and then check the port. However in my case I have multiple IP
> address
> serving multiple virtual web sites on different port of the same host.
>
>
>
>
>
> How do I configure Nagios to monitor virtual web sites
> running on multiple IP address on the same web server?
>
>
>
>
>
> Can you help? Please
>
>
>
>
>
>
>   __
> Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
>
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Centralizing NRPE Configuration

2007-11-27 Thread kyle . odonnell
We have NRPE running over NFS.

-Kyle

On 11/26/07, Kevin Scott Sumner <[EMAIL PROTECTED]> wrote:
> Robert,
>
> I second Aaron's CFengine suggestion.
>
> Moving an infrastructure towards using something like CFengine or puppet
> will make you saner in the long run.  Much, much saner.  Setting it up to
> push a single config is a little overboard, but it makes syncing and
> sanitizing all of your machines REALLY easy.
>
> We use CFengine here, so feel free to contact me off-list for more
> specifics about it.
>
> Cheers,
> Kevin
> -
> Kevin Sumner
> [EMAIL PROTECTED]
> (919) 962-6494
> Assistant Systems Administrator
> Physics and Astronomy Networking Infrastructure and Computing
> University of North Carolina at Chapel Hill
>
>
> On Mon, 26 Nov 2007, Aaron M. Segura wrote:
>
> > I use cfengine for that purpose.  I have it copy the config from the
> > central server then restart the nrpe daemon.  Might be a little overkill
> > for just this one thing, but it's useful for all sorts of stuff.
> >
> > http://www.cfengine.org/
> >
> > On Mon, 2007-11-26 at 17:07 -0500, Cipriani, Robert C wrote:
> >> Does anyone have any suggestions on a way to centralize NRPE configs? I
> suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server
> if I need to add any commands.  Is there a better way to manage this? I'd
> like the Nagios server to be a central point of configuration. I am using
> nrpe's --enable-command-args option and passing parameters via check_nrpe,
> so once the monitored host has the nrpe.cfg, there wouldn't be much to do
> there.
> >>
> >>
> >>
> >> Robert C. Cipriani
> >> Senior Network Administrator
> >> Tampa Bay Division IT
> >> Bright House Networks
> >> W: (727) 329-2000 x74264
> >> M: (727) 365-1231
> >>
> >>
> >>
> >>
> >>
> >> CONFIDENTIALITY NOTICE: This e-mail may contain information that is
> privileged, confidential or otherwise protected from disclosure. If you are
> not the intended recipient of this e-mail, please notify the sender
> immediately by return e-mail, purge it and do not disseminate or copy it.
> >>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

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


Re: [Nagios-users] I am getting this response when I start the nagios on my linux machine...

2007-11-01 Thread kyle . odonnell
do a ps and check if the nagios daemon is running.

it sounds like the nagios user doesn't have a home directory, which
shouldn't affect nagios

The answers to many of your questions can be found in documentation.

--kyle
On 11/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Total Warning: 0
> Tatal Errors:0
>
> Things look okay - No serious problems were detected during the pre-flight.
> So then I type:
> etc/init.d/nagios start
> and it says
> starting nagios: no directory, logging in with home=/done.
>
> Does this mean that it is started?
>
>
>
> Very Respectfully,
> Christy M. New
> 1(404)327-6490
> American Cancer Society
> Corporate IT-NHO NOC
> Network Infrastructure Engineer
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NSCA & Nagios

2007-10-03 Thread kyle . odonnell
echo "hostname,servicename,state[0-3],output" | send_nsca -H
nsca.server -c send_nsca.cfg -d ","


nrpe.cfg (remote host)

command[check_something]=/script/to exec -w $ARG1$ -c $ARG2$

commands.cfg (nagios server)
check_command  check_nrpe -H remotehost -c check_something -a $ARG1$ $ARG2$


--kyleo


On 10/3/07, Roger <[EMAIL PROTECTED]> wrote:
> On 10/3/07, Tatyaso Babar <[EMAIL PROTECTED]> wrote:
> >
> >  Hi,
> >
> > Does anyone have the step by step guide for NSCA with Nagios. I have got
> > the document from nagios site for NSCA daemon to be configured on nagios
> > server. But I am unable to find information about configuring the nsca
> > client to send the check results to server.
> >
> > It will be great help if someone can guide on this.
> >
> > Also if some one has how-to about nrpe, please let me know.
> >
> I should have some somewhere that I've made for various clients. I'll try to
> dig them up, throw them up on NagiosWiki.com.
>
> --
> "Nagios, it's what's for breakfast!"
> http://www.NagiosWiki.com
>
> Email me personally:
> mailto:[EMAIL PROTECTED]
>
> http://del.icio.us/RogerRustad/nagios
> http://del.icio.us/rss/RogerRustad/nagios
>

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


Re: [Nagios-users] Network tuning for Nagios with slave servers

2007-09-07 Thread kyle . odonnell
Could always try:

net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 0

On 9/7/07, Andreas Ericsson <[EMAIL PROTECTED]> wrote:
> Wheeler, JF (Jonathan) wrote:
> > Our configuration is quite large (830 hosts, 160700+ services),
>
> You run more than 193 checks against each host? Good gods, you must
> be *really* curious about the state of those hosts :)
>
> > so have
> > implemented a master/slave configuration for Nagios (the Nagios servers
> > are running Linux).  The master server only runs checks if a check
> > becomes stale; i.e. it should have been checked by a slave but no result
> > has been received, but I find that (for example), in the last days log
> > there are 80,000 + warning messages saying the master has run a check
> > because it has become "stale".  On further investigation I find that on
> > all of our 5 slaves the command netstat shows that there are a large
> > number of TCP sockets in CLOSE_WAIT state (more .  My question is, has
> > anyone done any network tuning to improve Nagios network performance ?
> >
>
> Nope, but you could try doing
>
>   sysconf net.ipv4.tcp_fin_timeout=30
>
> to halve the default tcp timeout in the kernel, which should reduce
> the number of half-open connections you have.
>
> --
> Andreas Ericsson   [EMAIL PROTECTED]
> OP5 AB www.op5.se
> Tel: +46 8-230225  Fax: +46 8-230231
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios performance and delayed checks

2007-09-06 Thread kyle . odonnell
Hi Kyle,

I used the nagios tuning guide:

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

I've also had some success with lowering the 'service_reaper_frequency'

I've also found that lowering the host and service timeouts to be useful.


--kyleo

On 9/6/07, kyle <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
>
> I'm having some performance issues with a rather big Nagios 2.4 deployment
> (430
> servers, 3000 service checks) .
>
> I'm having now a 600-900 secs avg latency for checks - checks distribution
> is more or less like this :
>
>  450 check_icmp   (scheduled every minute)
>  500 check_ifoperstatus (scheduled very 5 minutes)
>  800 check_nt (scheduled every 5-10 minutes)
>  200 check_http   (scheduled every 5 minutes)
> 1000 check_by_ssh (scheduled every 5-10 minutes)
>
> 1730 Performance graphs generated by PNP
>
> I've already applied some performance tips specified in the nagios faq
> (aggregated status updates, max_concurrent_checks=0, checked hardware
> config, etc)
>
> Since load average for this server is always below 1, is there any way to
> force more concurrent checks per second? (btw, I've replicated the same
> config in a similar server with a Nagios 2.9 setup and ended with similar
> results as well)
>
> Thanks in advance :-)
>
>
> ---
>
> Output of nagiostat:
>
> Active Service Latency:   590.886 / 671.695 / 635.054 %
> Active Service Execution Time:0.124 / 19.130 / 0.483 sec
> Active Service State Change:  0.000 / 49.930 / 0.238 %
> Active Services Last 1/5/15/60 min:   61 / 673 / 2150 / 2929
>
>
>
> Output of nagios -s nagios.cfg :
>
> HOST SCHEDULING INFORMATION
> ---
> Total hosts: 424
> Total scheduled hosts:   0
> Host inter-check delay method:   SMART
> Average host check interval: 0.00 sec
> Host inter-check delay:  0.00 sec
> Max host check spread:   30 min
> First scheduled check:   N/A
> Last scheduled check:N/A
>
>
> SERVICE SCHEDULING INFORMATION
> ---
> Total services: 2929
> Total scheduled services:   2929
> Service inter-check delay method:   SMART
> Average service check interval: 433.36 sec
> Inter-check delay:  0.15 sec
> Interleave factor method:   SMART
> Average services per host:  6.91
> Service interleave factor:  7
> Max service check spread:   30 min
> First scheduled check:  Thu Sep  6 11:18:31 2007
> Last scheduled check:   Thu Sep  6 11:25:45 2007
>
>
>
>
>
> --
> Windows macht frei!
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_snmp_storage.pl doubt

2007-07-26 Thread kyle . odonnell
try

check_snmp_storage.pl -H host -C community -q FixedDisk -m / -r -w 80 -c 90


since storage can monitor ram,swap,disk,flash memory, cd, floppys, etc
you must specify which type of media, and if you only want '/' you
need -r


check_snmp_storage -H host -C community -q FixedDisk

On 7/26/07, sujith h <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> My name is Sujith. Am using nagios for our network monitoring.
> I am using Ubuntu(dapper) in our PC. And I had tested the
> check_smtp_storage.pl to monitor the diskspace in the PC.
> It works fine. But when I copied the exact file to other PC
> which runs Ubuntu in it and i had installed a package called
> lbsnmp-perl, snmp and snmpd. When I execute the script:
>
> ./check_snmp_storage -H 127.0.0.1 -C public -m / -w 80 -c 90 -v
>
> am getting error as:
>
> ERROR: Description/Type table : Requested table is empty or does not exist.
>
> Can anyone help me why is it so?
>
> Cheers,
>
> Sujith Haridaasan
>
>
> --
> സുജിത് ഹരിദാസ൯
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_procs timeout - Solaris 10

2007-07-25 Thread kyle . odonnell
It has been fixed with 1.4.9

The previous workaround was to reformat the ps-format config option.

--kyleo

On 7/25/07, Esben Bach <[EMAIL PROTECTED]> wrote:
> Hi Sapon
> This issue has been address a multitude of times (with differenet
> solution suggestions).
>
> Someone has claimed that the check_procs plugin was fixed in the latest
> plugin version, however i have not found the time to try them out. You
> should search the mailinglist archives - your problem is likely related
> to the ps command carrying a different syntax than expected.
>
> --
> Esben
>
> Sapon, Dimitry wrote:
> > Hi guys,
> >
> > I've run into a strange issue (which seems some have encountered
> > before, yet I haven't found a fix) on a Solaris 10 box (SunOS 5.10).
> > My check_procs just times out, no matter how long I let it run.
> >
> > Ex:
> >
> > *command run:* check_procs -w 2:3 -c 1000 -a SERVICE_NAME -t60
> > *returned result: *CRITICAL - Plugin timed out after 60 seconds
> >
> > Version is: check_procs (nagios-plugins 1.4.4) 1.53
> >
> > Other plugins like check_disk seem to work fine.
> >
> > I'm a bit confused and really would appreciate some help. Has anyone
> > been able to pin point where the problem is in this case?
> >
> > Regards,
> > Dimitry
> > ___
> >
> > This email is intended only for the use of the individual(s) to whom it is
> addressed and may be privileged and confidential.
> > Unauthorised use or disclosure is prohibited. If you receive This e-mail
> in error, please advise immediately and delete the original message.
> > This message may have been altered without your or our knowledge and the
> sender does not accept any liability for any errors or omissions in the
> message.
> >
> > Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux
> droits et obligations qui s'y rapportent.
> > Toute diffusion, utilisation ou copie de ce message ou des renseignements
> qu'il contient par une personne autre que le (les) destinataire(s)
> désigné(s) est interdite.
> > Si vous recevez ce courriel par erreur, veuillez m'en aviser
> immédiatement, par retour de courriel ou par un autre moyen.
> > 
> >
> > -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > 
> >
> > ___
> > Nagios-users mailing list
> > Nagios-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> > ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios scaling and server spec

2007-06-29 Thread kyle . odonnell
Hi Patrick,

Ive currently got one server doing everything (and more) hosting 600
hosts and ~6000 services.  The main server itself won't be doing any
actual execution, it will just be receiving passive alerts.  I would
still like to keep one master, but just use multiple slaves that feed
into it.

Out of curiosity, are you using a correlation system at the top of
your multi-master setup?

--kyleo

On 6/29/07, Morris, Patrick <[EMAIL PROTECTED]> wrote:
> > I am trying to spec some hardware for a nagios environment capable of
> > ~5000 hosts, and ~50,000 services.
> >
> > I am wondering if anyone has any hardware recommendations for the
> > active-service-check machines (or polling), and the (hopefully) 1
> > centralized passive-service-check recipient.  And, if anyone believes
> > the central server can handle that many events.
> >
> > I currently have an all in one machine monitoring ~600 hosts and ~5000
> > services.
>
> There are a lot of variables there I don't know, but it may be difficult
> having one box keep up with that many check submissions, depending on
> how much overhead you've worked into the system.
>
> It's probably doable, but I've had to hack a lot of checks and restart
> scripts onto an installation I've got here with about 1,500 hosts and
> 10,000 services, and it still can get hairy if a lot goes wrong at once.
> We're replacing it with a setup with multiple masters, and that's
> working a lot better.
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] OK prompt in Solaris

2007-06-20 Thread kyle . odonnell
I use nrpe and snmp to monitor various services on our sun servers.
Each service using either is dependent on the 'nrpe' or 'snmp'
service.  If either of these services go down our ops team
investigates.  If a box drops to the 'ok' prompt, these services will
not be running.

This isn't directly monitoring for a machine at the 'ok' prompt, but
if you send your syslog messages to a centralized host, and monitor
for strings, the combination should make debugging the problem easier.

Alternatively, if you have some kind of portmaster or lantronix device
used to remotly connect to serial console, you could write a plugin to
check through serial.



On 6/20/07, Masopust, Christian <[EMAIL PROTECTED]> wrote:
> Hello Lalita,
>
> i think you should be able to use check_tcp with any available port (e.g.
> 21, 23, ...)
>
> Christian
>
>
> --
> "I sense much NT in you, NT leads to Blue Screen.
> Blue Screen leads to downtime, downtime leads to suffering. NT is the path
> to the darkside."
>
> - Unknown Unix Jedi
>
>
>
>
> 
>
>   From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Lalita
> Drolia
>   Sent: Wednesday, June 20, 2007 12:13 PM
>   To: nagios-users@lists.sourceforge.net;
> [EMAIL PROTECTED]
>   Subject: [Nagios-users] OK prompt in Solaris
>   
>   
>
>   Hi,
>
>   I have come to know that there is a situation in Solaris machines called
> "Ok Prompt" where the machine can be pinged but not accessed as it is hung.
>
>   Can you tell me the best check to deploy in such a situation? I decided 
> to
> use check_ssh but unfortunately solaris 8 servers do not have ssh installed
> by default.
>
>   What could be another alternative in such a scenario?
>
>   Kindly help.
>
>   Thanks in advance :-)
>
>   
>
>   With Regards,
>
>   Lalita
>
>
>   Notice: This email message, together with any attachments, may contain
> information of BEA Systems, Inc., its subsidiaries and affiliated entities,
> that may be confidential, proprietary, copyrighted and/or legally
> privileged, and is intended solely for the use of the individual or entity
> named in this message. If you are not the intended recipient, and have
> received this message in error, please immediately return this by email and
> then delete it.
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Help optimizing nagios for when things go wrong

2007-06-15 Thread kyle . odonnell
http://nagios.sourceforge.net/docs/2_0/tuning.html

I also just started playing with nagios.cfg:

service_reaper_frequency

reduced my service check latency from ~250 to ~30 seconds by changing
the value from 15 to 5

On 6/15/07, Jim Avery <[EMAIL PROTECTED]> wrote:
> On 15/06/07, George Bryan <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm having a big problem with nagios service check latencies.
>
> What do you use for your host check command?  You want to use
> something which runs as quickly as possible.  I use check_icmp with
> only one ping.  I believe check_fping is also good.  This should be
> less of a problem in Nagios 3.
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] why are my notifications disabled when I add new hosts.

2007-06-06 Thread kyle . odonnell
are you using a host template that has the notifications disabled?

On 6/6/07, abid dar <[EMAIL PROTECTED]> wrote:
> why are my notifications disabled when I add new hosts?
>
> I have to manually enable notifications for each host.
>
> Nagios 3.0a3
>
> TIA..
>
>
>
>
>
>
> 
> Looking for earth-friendly autos?
> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> http://autos.yahoo.com/green_center/
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] AIX NRPE questions

2007-06-05 Thread kyle . odonnell
now try

check_nrpe -H 127.0.0.1 -p 5666 (-n for no ssl)

Should see the version number:

NRPE v2.8.1

If you see this, nrpe is working as expected.

On 6/5/07, Sandor W. Sklar <[EMAIL PROTECTED]> wrote:
>
> On Jun 5, 2007, at 11:26 AM, Berg,David wrote:
>
> > Hmm... 127.0.0.1 is in the allowed_hosts, but "telnet localhost 5666"
> > isn't connecting:
> >> telnet localhost 5666
> > Trying...
> > Connected to loopback.
> > Escape character is '^]'.
> > Connection closed.
>
> the fact that you got that response tells you that at least something
> is bound and listening to that port number.  Contrast with the output
> when there is nothing bound on a port ...
>
> $ telnet localhost 12345
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused
>
>
> --
> Sandor W. Sklar
> Unix Systems Administrator
> Stanford University Libraries & Academic Information Resources
> Digital Libraries Systems & Services
>
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] AIX NRPE questions

2007-06-05 Thread kyle . odonnell
Are you running from inetd AND trying to start in daemon mode?

If so, that's your problem.  It's one or the other.

--kyleo
On 6/5/07, Berg,David <[EMAIL PROTECTED]> wrote:
> Hi, I was hoping someone might have some advice for me regarding
> monitoring AIX nodes.
>
> I am attempting to get NRPE 2.8.1 running on AIX 5.3, so far without any
> luck.
>
> Following the NRPE.pdf documentation
> (http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf), I was able to
> configure without ssl and install using the GCC compiler. I then added a
> line to the /etc/inetd.conf file as follows:
>
> nrpestream  tcp nowait  nagios  /usr/local/nagios/bin/nrpe -c
> /usr/local/nagios/etc/nrpe.cfg -I
>
> Added this to /etc/services:
> nrpe 5666/tcp   # NRPE for Nagios
>
> Netstat looks good:
> netstat -at | grep nrpe
> tcp4   0  0  *.nrpe *.*
> LISTEN
>
> I also added the ip address of the local node to the nrpe.cfg file and
> have confirmed that the nagios user and group own the related
> directories and files.
>
> However, when I try to start nrpe, via the command line or by refreshing
> inetd, it doesn't start and doesn't give me any errors. For example:
>
> /etc> /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i
> /etc> ps -ef | grep nrpe
> root 2072804 2019568   0 15:47:11  pts/1  0:00 grep nrpe
> /etc> /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
> /etc> ps -ef | grep nrpe
> root 2478206 2019568   0 15:47:24  pts/1  0:00 grep nrpe
>
> Does anyone have any idea what I'm missing here? Also, does anyone know
> of any Nagios documentation for AIX? I have not had a lot of luck with
> http://www.nagioscommunity.org/wiki.
>
> Thanks for any help,
> David Berg
>
> --
> CONFIDENTIALITY NOTICE This message and any included attachments are from
> Cerner Corporation and are intended only for the addressee. The information
> contained in this message is confidential and may constitute inside or
> non-public information under international, federal, or state securities
> laws. Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you are not
> the addressee, please promptly delete this message and notify the sender of
> the delivery error by e-mail or you may call Cerner's corporate offices in
> Kansas City, Missouri, U.S.A at (+1) (816)221-1024.  Cerner Limited,
> Registered in England no 2519305, Registered Office 37 North Wharf Road,
> London W2 1AF.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] --enable-neb does what exactly?

2007-03-13 Thread kyle . odonnell
I usually just modify the ports Makefile and re-compile.

On 3/13/07, Jim Avery <[EMAIL PROTECTED]> wrote:
> On 13/03/07, Steve Barnes <[EMAIL PROTECTED]> wrote:
>
> > How feasible is it to just replace the current nagios binary with the
> > new one? Or will this fail horribly?
>
> That's what I did with my Fedora .rpm installed Nagios here.  It worked
> fine.
>
> Cheers,
>
> Jim
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios Konference 2007

2007-03-12 Thread kyle . odonnell
Do you have more details on the conf?  I'd love to attend!

On 3/12/07, Jay Radcliffe <[EMAIL PROTECTED]> wrote:
> Has anyone from the United States gone to the Nagios Konference held
> in germany? I am thinking of asking my management to send me as I am
> in charge of our nagios architecture which is quite large (6000+
> hosts, 90,000 service checks in total). Specifically, how much of the
> conference is in english and how worthwhile was it ? I have 3
> semesters of German, but it has gone unused for quite some time.
>
> TIA,
> Jay Radcliffe
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios drops service checks when executing a hostevent handler?

2007-03-08 Thread kyle . odonnell
Hi,

In the nagios performance tuning doc they recommend changing the
check_interval on host checks to 0.  Running a host check isn't really
required as the system will automagically run one when required.

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

--kyleo

On 3/8/07, Morris, Patrick <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of [EMAIL PROTECTED]
> > Sent: Wednesday, March 07, 2007 11:36 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Nagios drops service checks when
> > executing a hostevent handler?
> >
> > Hi,
> >
> > i have a strange problem i quite don't understand to handle.
> >
> > Question:
> > Is Nagios dropping service checks when executing a host event
> > handler?
>
> Probably.  All service checks stop when a host check is being executed.
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null