[Nagios-users] over writing services from templates

2011-05-09 Thread mail
Hi all,


I seem to have a working solution but an confused as to why it works,
could some one please explain or suggest a better way to do this.


I apply service to hosts via, host-templates and wanted to change a
value for a service but just for one hosts.
I didnt want to add a new service / service template hoping i could
just over ride the value for just that one host:
I am running Nagios 3.2.3 and the simplified config looks like this:



service {
 name  service-check
 command   run-some-check.sh
 max_check_attempts  1
 hostgroup_name  host_group1
}

host {
name   host-template1
use  generic
hostgroups  +host_group1
register0
}


host {
name   host1
use  host-template1
}

host {
name   host2
use  host-template1
}

Now I wanted to change the value for max_check_attempts  used by the
service for host2.

What I did was

service {
 name  service-check
 command   run-some-check.sh
 max_check_attempts  3
host  host2
}

This created duplicate a warning when doing a verbose config check,
but no warning on the normal config check and it allowed Nagios to
reload and used the values from the host defined service!

My questions are,
   why does this work?
   Is Nagios actually running both services but only showing one of
them in the gui and ill probably have some race condition between
them.
   Is there a better way to do this?

Thanks for your help,
Ritchie
--
Fnord...
-- http://23.me.uk -- -- http://wiki.s23.org -- --
http://twitter.com/23me --
- -Only the lavender prairie dogs know the key to unlock the secret
of the tumble-weeds. --

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_http encrypted link

2011-05-09 Thread Tristan Drinkwater
Hey guys,

I'm struggling to check a http link that's encrypted.

The full url works ok in a browser but I get 'unable to open a TCP socket' 
error when I run 'check_http -H domain/encrypted link' from the command line.

I've also tried 'check_http -H domain -u /encrypted link but that's not 
working either.

Is check_http even able to check such a thing?

Thanks in advance :)




Micro Peripherals Limited.
Registered Office: Shorten Brook Way, Altham Business Park, Altham,
Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790
Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 
4387 91

DISCLAIMER:
This e-mail and attachments are confidential and are intended solely for the 
use of the individual to
whom it is addressed. Any views or opinions presented are solely those of the 
author and do not
necessarily represent those of Micro Peripherals Limited.
If you are not the intended recipient, be advised that you have received this 
Email in error and that
any use, dissemination, forwarding, printing, or copying of this Email is 
strictly prohibited. If this
transmission is received in error please notify the sender immediately and 
delete this message from
your E-mail system.
All electronic transmissions to and from Micro Peripherals Ltd are recorded and 
may be monitored.
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Check_Openmanage configuration question

2011-05-09 Thread Daniel Ceola
Hello all!

I have a question regarding the initial configuration of check_openmanage.   I 
downloaded the version of the script dated Feb 9 (I don't see a version number 
in the script) and am attempting to use the script through SNMP.

I'm attempting to begin using check_openmanage with our Dell servers.  I have 
installed the Dell OMSA software on one server and it seems to be working just 
fine.  I configured my command definition in a simple fashion, according to the 
installation guide:

#  Dell Check openmanage
define command{
command_namecheck_openmanage
command_line$USER1$/check_openmanage -H $HOSTADDRESS$
}

I also configured my service definition in a simple fashion, according to the 
installation guide:

define service{
use generic-service
host_name   Server_Name
service_description Dell OMSA
check_command   check_openmanage
}


However - my Nagios console is reporting the status as (null).  Also, when I 
attempt to run the script from the command line (note the file is saved as 
check_openmanage with no file extension, I also tried check_openmanage.pl and 
receive the same results), I receive a few errors

nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_openmanage 192.168.1.5
./check_openmanage: line 27: require: command not found
./check_openmanage: line 28: use: command not found
./check_openmanage: line 29: use: command not found
./check_openmanage: line 30: syntax error near unexpected token `('
./check_openmanage: line 30: `use POSIX qw(isatty ceil);'

I have searched online for a while now and come up mostly emptyhanded. If 
someone could point me in the correct direction to get this working, I would be 
most greatful!  I'm almost certain it is something stupid or simple that I have 
overlooked with setting this up.



Thanks,

Daniel Ceola
Systems  DB Admin

The Wills Group
6355 Crain Hwy
La Plata, MD 20646
301-932-3600
301-932-3643 (direct line)

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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] over writing services from templates

2011-05-09 Thread Yueh-Hung Liu
exclude host2 from the first service definition, such as:

service {
     name                              service-check
     command                       run-some-check.sh
     max_check_attempts      1
     hostgroup_name              host_group1
 host _name !host2
 }



On Mon, May 9, 2011 at 6:57 PM,  m...@catsnest.co.uk wrote:
 Hi all,


 I seem to have a working solution but an confused as to why it works,
 could some one please explain or suggest a better way to do this.


 I apply service to hosts via, host-templates and wanted to change a
 value for a service but just for one hosts.
 I didnt want to add a new service / service template hoping i could
 just over ride the value for just that one host:
 I am running Nagios 3.2.3 and the simplified config looks like this:



 service {
     name                              service-check
     command                       run-some-check.sh
     max_check_attempts      1
     hostgroup_name              host_group1
 }

 host {
        name                           host-template1
        use                              generic
        hostgroups                  +host_group1
        register                        0
 }


 host {
        name                           host1
        use                              host-template1
        }

 host {
        name                           host2
        use                              host-template1
        }

 Now I wanted to change the value for max_check_attempts  used by the
 service for host2.

 What I did was

 service {
     name                              service-check
     command                       run-some-check.sh
     max_check_attempts      3
    host                                  host2
 }

 This created duplicate a warning when doing a verbose config check,
 but no warning on the normal config check and it allowed Nagios to
 reload and used the values from the host defined service!

 My questions are,
   why does this work?
   Is Nagios actually running both services but only showing one of
 them in the gui and ill probably have some race condition between
 them.
   Is there a better way to do this?

 Thanks for your help,
 Ritchie
 --
 Fnord...
 -- http://23.me.uk -- -- http://wiki.s23.org -- --
 http://twitter.com/23me --
 - -Only the lavender prairie dogs know the key to unlock the secret
 of the tumble-weeds. --

 --
 WhatsUp Gold - Download Free Network Management Software
 The most intuitive, comprehensive, and cost-effective network
 management toolset available today.  Delivers lowest initial
 acquisition cost and overall TCO of any competing solution.
 http://p.sf.net/sfu/whatsupgold-sd
 ___
 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


--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http encrypted link

2011-05-09 Thread Mike Chesnut
On 05/09/2011 07:20 AM, Tristan Drinkwater wrote:
 I’m struggling to check a http link that’s encrypted.

 The full url works ok in a browser but I get ‘unable to open a TCP
 socket’ error when I run ‘check_http –H domain/encrypted link’ from the
 command line.

 I’ve also tried ‘check_http –H domain –u /encrypted link” but that’s not
 working either.

 Is check_http even able to check such a thing?

If by encrypted you mean served over SSL (i.e., https), then all you 
should have to do is include the -S parameter to check_http.

You probably would want to do -p 443 also.

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Question about check_disk -L option

2011-05-09 Thread Dave Wallis
On Red Hat 6 clients, I need to monitor some NFS mount points for 
conditions like stale NFS file handles. The check_disk plugin 
describes the -L (--stat-remote-fs) option as providing this 
functionality. However, either I'm not understanding how the option 
works, or it's not working properly. Here is an example of what I'm seeing:


   # df -h /usr/local
   Filesystem Size  Used   Avail  Use%  Mounted on
   oxygennfs48:/usr/local 250G  214G   37G86%   /usr/local
   #
   # ./check_disk -w 20% -c 10% -p /usr/local
   DISK WARNING - free space: /usr/local 37846 MB (14% inode=98%);|
   /usr/local=218154MB;204800;230400;0;256000
   #
   # ./check_disk -w 20% -c 10% -p /usr/local -L
   DISK UNKNOWN - free space:|
   #

Does anyone have any experience using this option, or have any guesses 
why it's generating an error?


--
David Wallis

Principal Computer Engineer
Information Technology Group
Advanced Photon Source
Argonne National Laboratory

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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] Question about check_disk -L option

2011-05-09 Thread Yueh-Hung Liu
it's not an error, you specify to check /usr/local only and it's a
remote fs, so no local fs will be checked and the -L option just
test the access to nfs.


On Tue, May 10, 2011 at 1:08 AM, Dave Wallis wal...@aps.anl.gov wrote:
 On Red Hat 6 clients, I need to monitor some NFS mount points for conditions
 like stale NFS file handles. The check_disk plugin describes the -L
 (--stat-remote-fs) option as providing this functionality. However, either
 I'm not understanding how the option works, or it's not working properly.
 Here is an example of what I'm seeing:

 # df -h /usr/local
 Filesystem Size  Used   Avail  Use%  Mounted on
 oxygennfs48:/usr/local 250G  214G   37G    86%   /usr/local
 #
 # ./check_disk -w 20% -c 10% -p /usr/local
 DISK WARNING - free space: /usr/local 37846 MB (14% inode=98%);|
 /usr/local=218154MB;204800;230400;0;256000
 #
 # ./check_disk -w 20% -c 10% -p /usr/local -L
 DISK UNKNOWN - free space:|
 #

 Does anyone have any experience using this option, or have any guesses why
 it's generating an error?

 --
 David Wallis

 Principal Computer Engineer
 Information Technology Group
 Advanced Photon Source
 Argonne National Laboratory

 --
 WhatsUp Gold - Download Free Network Management Software
 The most intuitive, comprehensive, and cost-effective network
 management toolset available today.  Delivers lowest initial
 acquisition cost and overall TCO of any competing solution.
 http://p.sf.net/sfu/whatsupgold-sd
 ___
 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


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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