[Nagios-users] ESXi/vCenter Monitoring

2013-08-12 Thread Daniel Ceola
Hello all,

I have a lot of host servers as VM's on our ESXi infrastructure, managed with 
vCenter.  We also use vSphere DRS to help keep the load on host systems 
balanced.  Due to the DRS, our VM's can sometimes move around from being on one 
host to being on another w/o my knowledge beforehand.  Does anyone know if 
there is any sort of plugin available for Nagios Core that would basically talk 
to my vCenter system and find out what VM's are on which hosts, and 
automatically update that VM's Parent directive in the host definition?


Daniel Ceola
System Administrator
daniel.ce...@occfiber.commailto:daniel.ce...@occfiber.com
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
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] ESXi/vCenter Monitoring

2013-08-12 Thread Randal, Phil
check_mk 1.2.3 should do that for you.

There's a bit of pain migrating your config into check_mk's WATO, but IMHO it's 
worth it in the long run.

http://mathias-kettner.com/check_mk.html

It might be prudent to wait for the check_mk 1.2.3i2 before playing with it, 
though.

Cheers,

Phil

--
Phil Randal
Infrastructure Engineer
Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT
Tel: 01432 260415 | Email: 
phil.ran...@hoopleltd.co.ukmailto:phil.ran...@hoopleltd.co.uk

From: Daniel Ceola [mailto:daniel.ce...@occfiber.com]
Sent: 12 August 2013 16:09
To: Nagios Users (nagios-users@lists.sourceforge.net)
Subject: [Nagios-users] ESXi/vCenter Monitoring

Hello all,

I have a lot of host servers as VM's on our ESXi infrastructure, managed with 
vCenter.  We also use vSphere DRS to help keep the load on host systems 
balanced.  Due to the DRS, our VM's can sometimes move around from being on one 
host to being on another w/o my knowledge beforehand.  Does anyone know if 
there is any sort of plugin available for Nagios Core that would basically talk 
to my vCenter system and find out what VM's are on which hosts, and 
automatically update that VM's Parent directive in the host definition?


Daniel Ceola
System Administrator
daniel.ce...@occfiber.commailto:daniel.ce...@occfiber.com
Hoople Ltd, Registered in England and Wales No. 7556595
Registered office: Plough Lane, Hereford, HR4 0LE

Any opinion expressed in this e-mail or any attached files are those of the 
individual and not necessarily those of Hoople Ltd. You should be aware that 
Hoople Ltd. monitors its email service. This e-mail and any attached files are 
confidential and intended solely for the use of the addressee. This 
communication may contain material protected by law from being passed on. If 
you are not the intended recipient and have received this e-mail in error, you 
are advised that any use, dissemination, forwarding, printing or copying of 
this e-mail is strictly prohibited. If you have received this e-mail in error 
please contact the sender immediately and destroy all copies of it.
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
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] ESXi/vCenter Monitoring

2013-08-12 Thread Martin Hugo
Hi Daniel,

We monitor our VM servers with Nagios but point to their IP addresses in the 
hosts.cfg.  Since these don't change and Nagios doesn't care what VM host the 
server is running it is not a problem.  We make the network switch the parent, 
not the VMware host.

--
Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-921-7243 (Fax)



From: Daniel Ceola [mailto:daniel.ce...@occfiber.com]
Sent: Monday, August 12, 2013 11:09 AM
To: Nagios Users (nagios-users@lists.sourceforge.net)
Subject: [Nagios-users] ESXi/vCenter Monitoring

Hello all,

I have a lot of host servers as VM's on our ESXi infrastructure, managed with 
vCenter.  We also use vSphere DRS to help keep the load on host systems 
balanced.  Due to the DRS, our VM's can sometimes move around from being on one 
host to being on another w/o my knowledge beforehand.  Does anyone know if 
there is any sort of plugin available for Nagios Core that would basically talk 
to my vCenter system and find out what VM's are on which hosts, and 
automatically update that VM's Parent directive in the host definition?


Daniel Ceola
System Administrator
daniel.ce...@occfiber.commailto:daniel.ce...@occfiber.com
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
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] ESXi/vCenter Monitoring

2013-08-12 Thread Jim Avery
On 12 Aug 2013 16:50, Daniel Ceola daniel.ce...@occfiber.com wrote:

 Hello all,



 I have a lot of host servers as VM’s on our ESXi infrastructure, managed
with vCenter.  We also use vSphere DRS to help keep the load on host
systems balanced.  Due to the DRS, our VM’s can sometimes move around from
being on one host to being on another w/o my knowledge beforehand.  Does
anyone know if there is any sort of plugin available for Nagios Core that
would basically talk to my vCenter system and find out what VM’s are on
which hosts, and automatically update that VM’s Parent directive in the
host definition?

I specify all of the host servers as parents of the VM.  I reckon that
makes perfect sense, and it's dead easy to implement.
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
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] ESXi/vCenter Monitoring

2013-08-12 Thread Daniel Ceola
I did that, but it made the map a complete mess of lines that I couldn't make 
out.

Daniel Ceola
System Administrator
daniel.ce...@occfiber.commailto:daniel.ce...@occfiber.com

From: Jim Avery [mailto:j...@jimavery.me.uk]
Sent: Monday, August 12, 2013 3:26 PM
To: nagios List
Subject: Re: [Nagios-users] ESXi/vCenter Monitoring


On 12 Aug 2013 16:50, Daniel Ceola 
daniel.ce...@occfiber.commailto:daniel.ce...@occfiber.com wrote:

 Hello all,



 I have a lot of host servers as VM's on our ESXi infrastructure, managed with 
 vCenter.  We also use vSphere DRS to help keep the load on host systems 
 balanced.  Due to the DRS, our VM's can sometimes move around from being on 
 one host to being on another w/o my knowledge beforehand.  Does anyone know 
 if there is any sort of plugin available for Nagios Core that would basically 
 talk to my vCenter system and find out what VM's are on which hosts, and 
 automatically update that VM's Parent directive in the host definition?

I specify all of the host servers as parents of the VM.  I reckon that makes 
perfect sense, and it's dead easy to implement.
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
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] ESXi/vCenter Monitoring

2013-08-12 Thread Jim Avery
On 12 Aug 2013 21:49, Daniel Ceola daniel.ce...@occfiber.com wrote:

 I did that, but it made the map a complete mess of lines that I couldn’t
make out.

Yes.  The map doesn't scale well.  I haven't used it for some years now.
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
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] ESXi/vCenter Monitoring

2013-08-12 Thread Chris Beattie
On 8/12/2013 4:04 PM, Daniel Ceola wrote: I did that, but it made the map a 
complete mess of lines that I couldn't
 make out.

Try check_cluster.  Check_cluster aggregates the status of individual ESX 
hosts.  The clusters here have three or four ESX hosts each.  If one ESX host 
in the cluster is offline, my check_cluster returns a warning.  If all but one 
are offline, I have it return a critical.  At that point, the engineers have 
more important things to worry about than individual guests.

I have a fake host for each cluster whose check_host_alive is the 
check_cluster command.  The guest VMs on each cluster have the fake host set as 
their parent.  The guests can move around all they want and I don't have to 
change anything.

When the engineers change the clusters by adding or removing ESX hosts, all I 
have to do is add or remove one ESX host check and update the check_cluster 
command.  I don't have to edit the list of parents for all the guest VMs, which 
is important, because we have more than a thousand of them.

--
-Chris
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Help With Nagios WMI

2013-08-12 Thread Nathan
I've got my install of Nagios setup with the check_wmi_plus.pl script.  I can 
successfully call the script with manually entered parameters just fine and 
query whatever I need to via WMI but I am having trouble getting that to 
translate into anything in Nagios.

For example, I have the following defined as a command:

define command{
command_name check_win_disk
command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m checkdrivesize -u 
$USER8$ -p $USER9$ -a $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ $ARG5$
}

and the following as a service:

define service{
use windows_service
service_description Disk Space
host_name   host-name-here
check_command check_win_disk!.!75%
}

And that works as I expect.  It reports the used/free space of all the local 
disks with a warning at 75%.  However anything I do try to add a critical 
wanting at 85% results in Nagios throwing an error the next time the service 
tries to query the disk space (NOT an error when Nagios tries to read the 
config file).

Any ideas?  Thanks!

Nathan
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Help With Nagios WMI

2013-08-12 Thread Nathan Mace
I've got my install of Nagios setup with the check_wmi_plus.pl script.  I
can successfully call the script with manually entered parameters just fine
and query whatever I need to via WMI but I am having trouble getting that
to translate into anything in Nagios.

For example, I have the following defined as a command:

define command{
command_name check_win_disk
command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m checkdrivesize
-u $USER8$ -p $USER9$ -a $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ $ARG5$
}

and the following as a service:

define service{
   use windows_service
   service_description Disk Space
   host_name   host-name-here
   check_command check_win_disk!.!75%
}

And that works as I expect.  It reports the used/free space of all the
local disks with a warning at 75%.  However anything I do try to add a
critical wanting at 85% results in Nagios throwing an error the next time
the service tries to query the disk space (NOT an error when Nagios tries
to read the config file).

Any ideas?  Thanks!

Nathan
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
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] Nagios check latency

2013-08-12 Thread Muhamad Faiz
Hi guys,

My Nagios setup are having high service check latency.

Check nagios latency result is 240 seconds!

./check_nagios_latency.sh -w 30 -c 60
CRITICAL: Latency at 240.183 seconds!

Modification in my Nagios.cfg file is only as below. Other than this, is 
default.

# MODIFIED
admin_email=muhamad.f...@asia.xchanging.com
admin_pager=muhamad.f...@asia.xchanging.com
translate_passive_host_checks=1
log_event_handlers=0
use_large_installation_tweaks=1
enable_environment_macros=0
enable_embedded_perl=0
use_embedded_perl_implicitly=0
max_concurrent_checks=1600
service_perfdata_file_processing_command=process-service-perfdata-file-pnp-bulk
host_perfdata_file_processing_command=process-host-perfdata-file-pnp-bulk
service_perfdata_file_processing_interval=60
host_perfdata_file_processing_interval=60
status_update_interval=40


# /usr/local/nagios/bin/nagios -s /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL

Website: http://www.nagios.org
Timing information on object configuration processing is listed
below.  You can use this information to see if precaching your
object configuration would be useful.

Object Config Source: Config files (uncached)

OBJECT CONFIG PROCESSING TIMES  (* = Potential for precache savings with -u 
option)
--
Read: 0.415803 sec
Resolve:  0.006900 sec  *
Recomb Contactgroups: 0.001862 sec  *
Recomb Hostgroups:3.819786 sec  *
Dup Services: 0.637380 sec  *
Recomb Servicegroups: 3.419804 sec  *
Duplicate:0.000417 sec  *
Inherit:  0.013748 sec  *
Recomb Contacts:  0.00 sec  *
Sort: 0.00 sec  *
Register: 0.616385 sec
Free: 0.029930 sec
  
TOTAL:8.962015 sec  * = 7.899897 sec (88.15%) estimated savings


RETENTION DATA TIMES
--
Read and Process: 0.863815 sec
  
TOTAL:0.863815 sec


Timing information on configuration verification is listed below.

CONFIG VERIFICATION TIMES  (* = Potential for speedup with -x option)
--
Object Relationships: 0.080360 sec
Circular Paths:   0.001152 sec  *
Misc: 0.011244 sec
  
TOTAL:0.092756 sec  * = 0.001152 sec (1.2%) estimated savings


EVENT SCHEDULING TIMES
-
Get service info:0.051265 sec
Get host info info:  0.032301 sec
Get service params:  0.10 sec
Schedule service times:  0.002476 sec
Schedule service events: 0.002514 sec
Get host params: 0.00 sec
Schedule host times: 0.000937 sec
Schedule host events:0.001287 sec
 
TOTAL:   0.090790 sec


Projected scheduling information for host and service checks
is listed below.  This information assumes that you are going
to start running Nagios with your current config files.

HOST SCHEDULING INFORMATION
---
Total hosts: 11753
Total scheduled hosts:   7
Host inter-check delay method:   SMART
Average host check interval: 300.00 sec
Host inter-check delay:  42.86 sec
Max host check spread:   30 min
First scheduled check:   Tue Aug 13 11:43:54 2013
Last scheduled check:Tue Aug 13 11:43:54 2013


SERVICE SCHEDULING INFORMATION
---
Total services: 18662
Total scheduled services:   170
Service inter-check delay method:   SMART
Average service check interval: 535.76 sec
Inter-check delay:  3.15 sec
Interleave factor method:   SMART
Average services per host:  1.59
Service interleave factor:  1
Max service check spread:   30 min
First scheduled check:  Tue Aug 13 11:52:49 2013
Last scheduled check:   Tue Aug 13 11:58:39 2013


CHECK PROCESSING INFORMATION

Check result reaper interval:   10 sec
Max concurrent service checks:  1600


PERFORMANCE SUGGESTIONS
---
I have no suggestions - things look okay.

Any advice will be much appreciated.

Regards,
Faiz
CONFIDENTIALITY NOTICE: This message and any attachment are confidential and 
may also be privileged. If you are not the intended recipient of this e-mail 
you may not copy, forward, disclose or otherwise use it or any part of it in 
any form whatsoever. If you are not the intended recipient please telephone or 
e-mail the sender and delete this message and any attachment from your system.
attachment: Faiz.vcf--
Get 100% visibility into Java/.NET code