Re: [Nagios-users] passive service and notification email

2010-10-27 Thread diego . roccia
"Freshness threshold" is the word :)
Sent from my BlackBerry® wireless device

-Original Message-
From: Andrea Imparato 
Date: Tue, 26 Oct 2010 11:09:26 
To: 
Reply-To: Nagios Users List 
Subject: [Nagios-users] passive service and notification email

Hello to all ml,


I have a simple request for you. I have a passive service check
scheduled on my nagios server and a cron script on my clients (they are
all natted) that send me the informations. The question is: which is the
parameter for nagios that say "after some period send me an email if you
see nothing happens?". Sorry but I found the documentation a bit
chaotic :\

Thank you


--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Scheduled checks falling far behind

2010-10-27 Thread C. Bensend

> OK, well, I hope I'm not embarrassing myself with this.  It's a perl
> script and uses Ton Voon's nifty Nagios::Plugins module.  I run checks
> against things I want to know about.  Thinking about it, I guess it would
> be nice to have the failed hosts/services check alert on percentage of
> failures.  Maybe someday.

Fantastic...  Thanks, Mark!  I'll take a look at this when I have
a bit of time.

Benny


-- 
"No matter how many shorts we have in the system, my guards will
be instructed to treat every surveillance camera malfunction as a
full-scale emergency."
   -- Peter Anspach's Evil Overlord List, #67



--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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_Multipple_port

2010-10-27 Thread diego . roccia
As far as I remember there are no options for this in the standard check_http 
plugin. You can create 2 checks (and maybe a third one that aggregates them and 
trigger the notifications), or use a wrapper plugin running the 2 checks and 
"merging" the results. Or you can use check_multi, but maybe it's too much for 
your needs.

Diego
Sent from my BlackBerry® wireless device

-Original Message-
From: Rajesh Kumar 
Date: Wed, 27 Oct 2010 22:33:08 
To: 
Reply-To: Nagios Users List 
Subject: [Nagios-users] Check_http_Multipple_port

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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_Multipple_port

2010-10-27 Thread Rutger Blom
I think you need to set up 2 checks. One for each port.

Rutger

On Wednesday, October 27, 2010, Rajesh Kumar  wrote:
> Hi Sir
>
>    I need to define multiple port in check_http. I defined the command.cfg as 
> follows, in my environment different port tomcat are running how can i find 
> the tomcat status
>
> define command{
>  command_name    check_http_args
>  command_line    $USER1$/check_http -H $ARG1$ -p $ARG2$
>  }
>
> for example
>
> http://testingserver:8082 
> http://tomcatserver:8084 
>
> Please help me.
>
>
> Thanks & Regards
>
> B.Rajeshkumar
>

-- 
Rutger Blom
Luzernvägen 14
227 38 LUND
Sweden
Tel. +46 763 46 99 44
www.rutgerblom.com
about.me/rutgerblom

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Difference between check_multi output on host and output received by chech_by_ssh

2010-10-27 Thread Tim Edwards
On 27/10/10 13:39, Marc Powell wrote:
> 
> On Oct 27, 2010, at 4:04 AM, Tim Edwards wrote:
> 
> snip...
> 
>> However when I run it from the nagios server I don't see the output from
>> our sendmail mailqueue check, which is the last check listed in our
>> /usr/local/nagios/checks/systemhealth.cmd file:
>>
>> system_mailqueue|check_multi::check_multi::plugins=11
>> time=0.309348 system_load::check_load::load1=0.000;10.000;20.000;0;
>> load5=0.000;8.000;16.000;0; load15=0.000;6.000;12.000;0;
>> system_rootdisk::check_disk::/=1786MB;9420;9717;0;9916
>> system_allpartitions::default::/=1786MB;9420;9717;0;9916
>> /diska=150MB;9575;9877;0;10079 system_swap::check_swap::swap=0MB;0;0;0;0
>> system_users::check_users::users=2;15;25;0
>> system_time::check_ntp_time::offset=-0.002565s;60.00;120.00;
>>
>> Full commands and output at http://pastebin.com/vEWBa033
>>
>> Anyone have any ideas what could be causing the difference?
> 
> For your local test, you're running check_multi as 'root', which has 
> permission to access sendmail's queue, whereas when nagios does it, it's 
> being run as the 'nagios' user, which does not have access?
> 
> Your likely best course of action is change check_mailq to use sudo when 
> calling /usr/bin/mailq and configure sudo to permit it. Google has quite a 
> bit of info on 'nagios check_mailq permissions' but this page looks useful to 
> you --
> 
> http://www.rickwargo.com/category/nagios/
> 
> Note also that you'll need to set '!requiretty' in sudoers as well.

Thanks, I had actually been running the test as nagios as well but
probably copied and pasted whatever was last in my terminal.

Anyway it looks like it's the requiretty thing, although I can't get the
configuration option right in /etc/sudoers to stop sudo insisting on
having a TTY:
Defaults !requiretty
Doesn't seem to work.

Tim Edwards

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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 and OpenVMS servers

2010-10-27 Thread Andreas Ericsson
On 10/27/2010 04:38 PM, Chris Hudson wrote:
> Anyone here ever configure an OpenVMS server for snmp / Nagios?   Any info
> at all would be greatly appreciated, I'm not having any luck at all.
> 

I once hacked NRPE to work on OpenVMS. It's not quite NRPE anymore
though, but it worked (and still works) for the customer that ordered
the job.

I'll send it to you off-list, as the tarball ended up being quite
large.

If you want support for or help with it, you'll have to contact our
sales people and get a contract. I simply don't have time to delve
into it again, and to be perfectly honest DCL isn't so much fun that
I want to spend my days writing it ;)

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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 and OpenVMS servers

2010-10-27 Thread Chris Hudson
Anyone here ever configure an OpenVMS server for snmp / Nagios?   Any info
at all would be greatly appreciated, I'm not having any luck at all.

Thanks,
Chris Hudson
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
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] Scheduled checks falling far behind

2010-10-27 Thread Frost, Mark {PBC}
Benny,

OK, well, I hope I'm not embarrassing myself with this.  It's a perl script and 
uses Ton Voon's nifty Nagios::Plugins module.  I run checks against things I 
want to know about.  Thinking about it, I guess it would be nice to have the 
failed hosts/services check alert on percentage of failures.  Maybe someday.

Mark

-Original Message-
From: C. Bensend [mailto:be...@bennyvision.com] 
Sent: Saturday, October 23, 2010 8:44 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Scheduled checks falling far behind


> You can also run, if memory serves, the "nagiostats" command located in
> your Nagios "bin" directory to see this information as well.  I actually
> use that nagiostats data in a custom check and graph a lot of those
> latencies and other Nagios performance related info.

Boy, would I *love* to see your method for that!

I personally hacked the source of nagiostats to create a custom
plugin, but it's a horrible, horrible hack and I'd like to see
a cleaner, more scalable method.

Can you share?

Benny


-- 
"No matter how many shorts we have in the system, my guards will
be instructed to treat every surveillance camera malfunction as a
full-scale emergency."
   -- Peter Anspach's Evil Overlord List, #67



--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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
#!/usr/bin/perl -w

# Nagios Plugin script to check several Nagios statistics

use strict;
use warnings;
use Nagios::Plugin;

use vars qw( $VERSION $PROGNAME $NAGIOS_BASE $NAGIOSSTATS
$warning $critical
%nagios_stats_data );
$VERSION = '0.32';

# the location of the Nagios installation root
$NAGIOS_BASE = '/usr/local/nagios';

# the command to run to get 'nagiostats'
$NAGIOSSTATS = $NAGIOS_BASE . '/bin/nagiostats';

# get the base name of this script for use in the examples
use File::Basename;
$PROGNAME = basename($0);

sub load_nagiostats;

sub do_cached_host_checks;
sub do_cached_service_checks;
sub do_command_buffers;
sub do_execution_time;
sub do_failed_hosts;
sub do_failed_services;
sub do_host_latency;
sub do_hosts_checked;
sub do_service_latency;
sub do_services_checked;

# Instantiate Nagios::Plugin object (the 'usage' parameter is mandatory)
my $p = Nagios::Plugin -> new (
usage => "Usage: %s [ --verbose | -v ] [ --debug | -d ]
[ --cached-host-checks] |
[ --cached-service-checks ] |
[ --command-buffers   ] |
[ --execution-time] |
[ --failed-hosts  ] |
[ --failed-services   ] |
[ --hosts-checked ] |
[ --host-latency  ] |
[ --service-checked   ] |
[ --services-latency  ]",
version => $VERSION,
blurb => 'Nagios plugin to check various Nagios statistics.',
extra =>  "

THRESHOLDs are specified 'min:max' or 'min:' or ':max'
(or 'max'). If specified '\...@min:max', a warning status will be generated
if the count *is* inside the specified range."

);

# Define and document the valid command line options
# usage, help, version, timeout and verbose are defined by default.


$p -> add_arg(
spec => 'cached-host-checks',
help => 'Check that number of cached host checks matches the threshold.'
);

$p -> add_arg(
spec => 'cached-service-checks',
help => 'Check that number of cached service checks matches the threshold.'
);

$p -> add_arg(
spec => 'command-buffers',
help => 'Check that number of used command buffers matches the threshold.'
);

$p -> add_arg(
spec => 'execution-time',
help => 'Check the host and service execution times.'
);

$p -> add_arg(
spec => 'failed-hosts',
help => 'Check that number of failed hosts matches the threshold.'
);

$p -> add_arg(
spec => 'failed-services',
help => 'Check that number of failed services matches the threshold.'
);

$p -> add_arg(
spec => 'host-latency',
help => 'Check that average host latency is within the threshold.'
);

$p -> add_arg(
spec => 'hosts-checked',
help => 'Check that number of hosts checked matches the threshold.'
);

$p->add_arg(
spec => 'services-checked',
help => 'Check that number of servi

Re: [Nagios-users] Difference between check_multi output on host and output received by chech_by_ssh

2010-10-27 Thread Matthias . Flacke

Hi Tim,

> However when I run it from the nagios server I don't see the output from
> our sendmail mailqueue check, which is the last check listed in our
> /usr/local/nagios/checks/systemhealth.cmd file:

The report option -r 11 (1+2+8) is not a good idea, because you left out -r 4 
to show errors. 
So I would recommend -r 15 (1+2+4+8) in your case.

What is the result if you run check_mailq directly without check_multi:
$ ./checks/check_by_ssh -H 134.171.46.232 -C "/path/to/check_mailq -w 2 -c 4"

Cheers,
-Matthias

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Time scheduling bug

2010-10-27 Thread Ton Voon
Hi!

Just a reminder for people that are running older versions of Nagios  
that since DST will be ending soon, the DST time scheduling bug may  
affect you.

The bug affects Nagios 3.2.0 and is fixed in Nagios 3.2.1.

More details at: http://bit.ly/cnhf5S

Ton


--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Oracle DB Server

2010-10-27 Thread Jason W.
On Tue, Oct 26, 2010 at 2:03 PM, Jim Avery  wrote:
> On 26 October 2010 14:44, Chris Hudson  wrote:

>> you to cd to /etc/ld.so.conf and edit/create a file called oracle.conf and
>> insert the following path in the file:  /opt/oracle/lib
>>  Is this referring to a path on the Oracle server I will be checking,
>> because this path (/opt/oracle/lib) does not exist on my Nagios server.
>
> The oracle.conf file under /etc/ld.so.conf needs to point to whichever
> directory contains the library files (*.so).

For the Instant Client (at least the RPM version), the correct path is
something like:

 /usr/lib/oracle/x.y.z.a/client/lib

e.g.

 /usr/lib/oracle/10.2.0.4/client/lib

Don't forget to (re-)run ldconfig for it to see your changes. I use

 ldconfig -v | grep clnt

to verify that ld.so can find the Oracle libs. If you see libclntsh.so
listed and pointing to a file, you should be good to go :)

-- 
HTH, YMMV, HANW :)

Jason

The path to enlightenment is /usr/bin/enlightenment.

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Difference between check_multi output on host and output received by chech_by_ssh

2010-10-27 Thread Marc Powell

On Oct 27, 2010, at 4:04 AM, Tim Edwards wrote:

snip...

> However when I run it from the nagios server I don't see the output from
> our sendmail mailqueue check, which is the last check listed in our
> /usr/local/nagios/checks/systemhealth.cmd file:
> 
> system_mailqueue|check_multi::check_multi::plugins=11
> time=0.309348 system_load::check_load::load1=0.000;10.000;20.000;0;
> load5=0.000;8.000;16.000;0; load15=0.000;6.000;12.000;0;
> system_rootdisk::check_disk::/=1786MB;9420;9717;0;9916
> system_allpartitions::default::/=1786MB;9420;9717;0;9916
> /diska=150MB;9575;9877;0;10079 system_swap::check_swap::swap=0MB;0;0;0;0
> system_users::check_users::users=2;15;25;0
> system_time::check_ntp_time::offset=-0.002565s;60.00;120.00;
> 
> Full commands and output at http://pastebin.com/vEWBa033
> 
> Anyone have any ideas what could be causing the difference?

For your local test, you're running check_multi as 'root', which has permission 
to access sendmail's queue, whereas when nagios does it, it's being run as the 
'nagios' user, which does not have access?

Your likely best course of action is change check_mailq to use sudo when 
calling /usr/bin/mailq and configure sudo to permit it. Google has quite a bit 
of info on 'nagios check_mailq permissions' but this page looks useful to you --

http://www.rickwargo.com/category/nagios/

Note also that you'll need to set '!requiretty' in sudoers as well.

--
Marc


--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] RECOVERY in advanced notifications configuration questions.

2010-10-27 Thread Javier Domingo
Hi everybody:
 I'm working hardly with nagios 3.0.X over Debian Lenny.
 I have any questions. I don't find information about these issues
 about notification issues.
 I have any hosts with a first_notification_delay of 60 minutes.
 Question 1: If a host goes in hard critical state I know that
 nagios waits 60 minutes to send the notification CRITICAL, but , What
 happens if host RECOVERS before the first_notification_delay? It send
 the RECOVERY notification or not?

 I have 7x24 monitoring Nagios about the same hosts. It's useful
 because I can know if they are turned on during the night. But for me
 is very important that those hosts must be turned on from 10 to 22
 during the day. I have configured a Notification Period to
 10:00-22:00.
 Question2: if a host goes to CRITICAL STATE at 21:59 Nagios will wait 60
 minutes to send me a notification but, will Nagios wait until the to 10
 of the day after to send the notification? If host Recovers at 9:00 in
 the morning of the day after, nagios will cancel the CRITICAL/RECOVERY
 notifications messages?

 Thanks a lot in advance. Sorry about my English.

 --
> Xavier Domingo Navarro

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Difference between check_multi output on host and output received by chech_by_ssh

2010-10-27 Thread Tim Edwards
If I run the following command on a particular nagios client machine it
produces a whole lot of output, including that from our sendmail
mailqueue check:
/usr/local/nagios/checks/check_multi -f
/usr/local/nagios/checks//systemhealth.cmd -r 11 -l
/usr/local/nagios/checks/
..snip a whole lot of output
system_mailqueueOK: mailq is
empty|check_multi::check_multi::plugins=11
time=0.423339 system_load::check_load::load1=0.000;10.000;20.000;0;
load5=0.000;8.000;16.000;0; load15=0.000;6.000;12.000;0;
system_rootdisk::check_disk::/=1786MB;9420;9717;0;9916
system_allpartitions::default::/=1786MB;9420;9717;0;9916
/diska=150MB;9575;9877;0;10079 system_swap::check_swap::swap=0MB;0;0;0;0
system_users::check_users::users=2;15;25;0
system_time::check_ntp_time::offset=-0.002085s;60.00;120.00;
system_mailqueue::check_mailq::unsent=0;1;10;0

However when I run it from the nagios server I don't see the output from
our sendmail mailqueue check, which is the last check listed in our
/usr/local/nagios/checks/systemhealth.cmd file:

system_mailqueue|check_multi::check_multi::plugins=11
time=0.309348 system_load::check_load::load1=0.000;10.000;20.000;0;
load5=0.000;8.000;16.000;0; load15=0.000;6.000;12.000;0;
system_rootdisk::check_disk::/=1786MB;9420;9717;0;9916
system_allpartitions::default::/=1786MB;9420;9717;0;9916
/diska=150MB;9575;9877;0;10079 system_swap::check_swap::swap=0MB;0;0;0;0
system_users::check_users::users=2;15;25;0
system_time::check_ntp_time::offset=-0.002565s;60.00;120.00;

Full commands and output at http://pastebin.com/vEWBa033

Anyone have any ideas what could be causing the difference?

Tim Edwards

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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 Core | VC Monitoring

2010-10-27 Thread Rutger Blom
Activate SNMP on the virtual machines (which is an OS component) and
do your monitoring via check_snmp.

Rutger

On Wednesday, October 27, 2010, Himanshu Arora  wrote:
> So how can i go about it Leif, any ideas... Would really appreciate if you 
> can elaborate a bit... if this can be monitored through VC which i have it 
> installed on windows server..
>
>
> which addon did you use - NSclient any other agent and what are the plugins 
> can be used to get this done.
>
> Thanks,
>

-- 
Rutger Blom
Luzernvägen 14
227 38 LUND
Sweden
Tel. +46 763 46 99 44
www.rutgerblom.com
about.me/rutgerblom

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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 Core | VC Monitoring

2010-10-27 Thread Andreas Ericsson
On 10/27/2010 07:08 AM, Himanshu Arora wrote:
> Wondering if it is possible to setup the monitoring for vmware,
> i have 100s of guest operating systems running on ESX hosts and want to
> monitor all guest os without installing agent on 'em.
> 
> and the requirement is to monitor atleast disk space or memory usage on
> those guests, which plugin i should use.
> 
> My idea is to install the agent on virtual center coz it has all the
> information about all the esx hosts plus info about all the guest operating
> systems that esx is handling.
> Please let me if thr is any other agent i can install to achieve this. or
> suggest what else can be done.
> 

Try out check_esx3 from op5.
http://www.op5.org/community/plugin-inventory/op5-projects

It supports most, if not all, checks that our customers find it sane
and useful to run for their vmware servers.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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 Core | VC Monitoring

2010-10-27 Thread Leif J.

I use a combination of:
NSClient++
SNMP
"Directly Check" (For example HTTP, HTTPS, Certificate Lifetime, POP3 
and IMAP)


I don't have VMWare yet, so I have no idea what you can pull out of the 
Virtual Center, but through NSClient++ you can build you own check line 
on the windows, that is have I for example are checking raid status on 
my HP servers and if a specific service are running in the windows. What 
I have learned is that you will never be finish by configure Nagios due 
to that you will suddenly find something where you find out that it will 
be great to monitor.


So exactly can monitor via VirtualCenter and SNMP or NSClient I have no 
idea, sorry.


/Leif

On 27-10-2010 08:39, Himanshu Arora wrote:

So how can i go about it Leif, any ideas...
Would really appreciate if you can elaborate a bit... if this can be 
monitored through VC which i have it installed on windows server..


which addon did you use - NSclient any other agent and what are the 
plugins can be used to get this done.



Thanks,


--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps&  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev


___
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
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
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