Re: [Nagios-users] Can I monitor a host without defining any services for it?

2008-08-07 Thread Ian Masters
Thomas

Thanks for the reply.

>>> You can use check_dummy for the service... In Nagios 3 with regularly
>>> scheduled hosts checks it should work.
>> Well, at the moment I only have about 20 hosts being tested, and even
>> though I have check_interval set to 1 in the host definition, looking at
>> the scheduling queue, I can see that host checks are only occurring
>> every 80 seconds. When I've added about 200 more hosts I'm wondering if
>> this time lag will increase.
>>
>> If that is the case, then I guess I will have to use check_ping after all.
> 
> I'm not sure what would cause that... AFAIK in Nagios 3 host checks end
> up in the same queue as service checks

Looking at the scheduling queue, it certainly looks like it ...

>, so the only explaination I could
> find would be:
> 
> 1. Your interval_length is larger than the default of 60

It is set to 60. I tried setting it to 30, but that also produced
unreliable results in the scheduling queue.

> 2. check_result_reaper_frequency is too large (will delay the results,
> and therefore delay the time at which nagios will re-schedule the checks)

Again, I haven't changed the defult value of 10.

> 3. Various commands (notifications, event handlers, performance data)
> slowing down nagios (those are serialized just like host checks in
> Nagios 2 - see below)

Not sure about that one ... at the moment my setup is pretty small (18
hosts and 26 service checks) and all notifications are turned off (we
only require sound alerts)

> The logic in Nagios 2 is to check host only when a service fail, and it
> does not support assync host checks (only service checks are assync).
> The problem with it is that the host checks are serialized, so it adds
> an artificial limit at which they can be performed (the time it takes to
> detect a host down). This was an annoying bottleneck on huge setups.

OK, if host checks are serial, then I guess it would make sense for an
unknown amount of time to be added.

>> According to check_dummy -h:
>> This plugin will simply return the state corresponding to the numeric
>> value of the  argument with optional text
>>
>> Am I right in thinking that this does not actually perform a test? It
>> just returns a state (OK, Warning etc) depending on the argument you
>> give to check_dummy. Is that correct?
> 
> Right. I mainly use it to make passive check with freshness checking
> send an alert when the check becomes stale, and to reset volatile
> services automatically.

That explanation is a little advanced for me right now. Still at a very
early testing stage.

>> If that is the case, is there really any point in using it for my
>> purposes. Obviously it prevents the Nagios warnings, but other than that
>> is it really serving any purpose?
> 
> If it's only to avoid a warning, then you should just live with it. I
> never tested myself so I assumed it wasn't working at all.

But if the only way I can be sure that Nagios will check the hosts that
only require a ping every minute is to add ping as a service, I guess
that's what I'll have to do. Slightly frustrating but I'm sure we'll
learn to live with it.

Thanks a lot.

Ian

-
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


[Nagios-users] problem running ndoutils

2008-08-07 Thread Seth Simmons
I'm trying this for the first time and have gone through the manual to
configure it.  So far everything looks good.

However, when I try to start ndo2db, it fails saying the specified
database server is either not yet supported or not found.

 

-
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] Can I monitor a host without defining any services for it?

2008-08-07 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/08/08 09:40 PM, Ian Masters wrote:
> Thomas
> 
> Thanks for your reply.
> 
>> You can use check_dummy for the service... In Nagios 3 with regularly
>> scheduled hosts checks it should work.
> 
> Well, at the moment I only have about 20 hosts being tested, and even
> though I have check_interval set to 1 in the host definition, looking at
> the scheduling queue, I can see that host checks are only occurring
> every 80 seconds. When I've added about 200 more hosts I'm wondering if
> this time lag will increase.
> 
> If that is the case, then I guess I will have to use check_ping after all.

I'm not sure what would cause that... AFAIK in Nagios 3 host checks end
up in the same queue as service checks, so the only explaination I could
fins would be:

1. Your interval_length is larger than the default of 60
2. check_result_reaper_frequency is too large (will delay the results,
and therefore delay the time at which nagios will re-schedule the checks)
3. Various commands (notifications, event handlers, performance data)
slowing down nagios (those are serialized just like host checks in
Nagios 2 - see below)

>> In Nagios 2 hosts check were normally on-demand so it wouldn't work if
>> your service always returns OK.
> 
> Interesting. I never used Nagios 2.

The logic in Nagios 2 is to check host only when a service fail, and it
does not support assync host checks (only service checks are assync).
The problem with it is that the host checks are serialized, so it adds
an artificial limit at which they can be performed (the time it takes to
detect a host down). This was an annoying bottleneck on huge setups.

> According to check_dummy -h:
> This plugin will simply return the state corresponding to the numeric
> value of the  argument with optional text
> 
> Am I right in thinking that this does not actually perform a test? It
> just returns a state (OK, Warning etc) depending on the argument you
> give to check_dummy. Is that correct?

Right. I mainly use it to make passive check with freshness checking
send an alert when the check becomes stale, and to reset volatile
services automatically.

> If that is the case, is there really any point in using it for my
> purposes. Obviously it prevents the Nagios warnings, but other than that
> is it really serving any purpose?

If it's only to avoid a warning, then you should just live with it. I
never tested myself so I assumed it wasn't working at all.

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIm7vD6dZ+Kt5BchYRApVhAKCHW4VIy0tBEe69zwo/wjzEl1da4gCfS6Ic
ci0aZEwMh5ZxTqytdFQbAxM=
=Z7jo
-END PGP SIGNATURE-

-
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] Can I monitor a host without defining any services for it?

2008-08-07 Thread Seth Simmons
So...if you click on a specific host, you see a 70 second difference
between last check time and next scheduled active check?

-Original Message-
From: Ian Masters [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 7, 2008 10:44 PM
To: Seth Simmons
Cc: Thomas Guyot-Sionnest; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Can I monitor a host without defining any
services for it?

Seth

Thanks for your reply.

> It probably does serve a purpose, just not for what you are trying to
> accomplish.
> Though warnings are given about not having services associated, you
> should be fine with just host checks if that is what you want.

OK ...

> As far as the checks go, I have 101 servers and over 1200 service
checks
> and have never noticed a time lag with any of them.
> Would be best to use check_ping with your check_command directive for
> your hosts.

The default check_command, check-host-alive is a ping check is it not? I
presume that is sufficient.

> "If you leave this argument blank, the host will not be actively
> checked."

As long as check_command is defined in one of the host definition
templates I'm using, I presume that will be OK.

I still don't quite know why my host checks are being scheduled every 70
seconds. In my host definition, I've set check_interval to 1... any
ideas?

Thanks

Ian


-
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] Can I monitor a host without defining any services for it?

2008-08-07 Thread Ian Masters
Seth

Thanks for your reply.

> It probably does serve a purpose, just not for what you are trying to
> accomplish.
> Though warnings are given about not having services associated, you
> should be fine with just host checks if that is what you want.

OK ...

> As far as the checks go, I have 101 servers and over 1200 service checks
> and have never noticed a time lag with any of them.
> Would be best to use check_ping with your check_command directive for
> your hosts.

The default check_command, check-host-alive is a ping check is it not? I
presume that is sufficient.

> "If you leave this argument blank, the host will not be actively
> checked."

As long as check_command is defined in one of the host definition
templates I'm using, I presume that will be OK.

I still don't quite know why my host checks are being scheduled every 70
seconds. In my host definition, I've set check_interval to 1... any ideas?

Thanks

Ian


-
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] Can I monitor a host without defining any services for it?

2008-08-07 Thread Seth Simmons
It probably does serve a purpose, just not for what you are trying to
accomplish.
Though warnings are given about not having services associated, you
should be fine with just host checks if that is what you want.

As far as the checks go, I have 101 servers and over 1200 service checks
and have never noticed a time lag with any of them.
Would be best to use check_ping with your check_command directive for
your hosts.

"If you leave this argument blank, the host will not be actively
checked."



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Masters
Sent: Thursday, August 7, 2008 9:40 PM
To: Thomas Guyot-Sionnest
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Can I monitor a host without defining any
services for it?

Thomas

Thanks for your reply.

> You can use check_dummy for the service... In Nagios 3 with regularly
> scheduled hosts checks it should work.

Well, at the moment I only have about 20 hosts being tested, and even
though I have check_interval set to 1 in the host definition, looking at
the scheduling queue, I can see that host checks are only occurring
every 80 seconds. When I've added about 200 more hosts I'm wondering if
this time lag will increase.

If that is the case, then I guess I will have to use check_ping after
all.

> In Nagios 2 hosts check were normally on-demand so it wouldn't work if
> your service always returns OK.

Interesting. I never used Nagios 2.

According to check_dummy -h:
This plugin will simply return the state corresponding to the numeric
value of the  argument with optional text

Am I right in thinking that this does not actually perform a test? It
just returns a state (OK, Warning etc) depending on the argument you
give to check_dummy. Is that correct?

If that is the case, is there really any point in using it for my
purposes. Obviously it prevents the Nagios warnings, but other than that
is it really serving any purpose?

Thanks

Ian



-
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] Can I monitor a host without defining any services for it?

2008-08-07 Thread Ian Masters
Thomas

Thanks for your reply.

> You can use check_dummy for the service... In Nagios 3 with regularly
> scheduled hosts checks it should work.

Well, at the moment I only have about 20 hosts being tested, and even
though I have check_interval set to 1 in the host definition, looking at
the scheduling queue, I can see that host checks are only occurring
every 80 seconds. When I've added about 200 more hosts I'm wondering if
this time lag will increase.

If that is the case, then I guess I will have to use check_ping after all.

> In Nagios 2 hosts check were normally on-demand so it wouldn't work if
> your service always returns OK.

Interesting. I never used Nagios 2.

According to check_dummy -h:
This plugin will simply return the state corresponding to the numeric
value of the  argument with optional text

Am I right in thinking that this does not actually perform a test? It
just returns a state (OK, Warning etc) depending on the argument you
give to check_dummy. Is that correct?

If that is the case, is there really any point in using it for my
purposes. Obviously it prevents the Nagios warnings, but other than that
is it really serving any purpose?

Thanks

Ian


-
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] hierarchical nagios

2008-08-07 Thread Folkert van Heusden
> We have a primary nagios install that monitors hosts/services spread
> across multiple
> labs (political domains). In one of the labs, I've build a nagios
> install monitoring all of
> its local hosts and services. It would be interesting to tie the two
> together. Ultimatey
> what I'd like to see is a "30,000 foot" view monitoring just the
> distributed servers
> and some kind of link to drill down into the individual labs. The top
> view would not
> change color if a host/service in a lab went down unless it were
> defined as a server.
> Is this possible? Has anyone done anything like this?

I use my 'check_nagios_summary' tool for that.
http://vanheusden.com/check_nagios_summary/


Folkert van Heusden

-- 
MultiTail è uno flexible tool per seguire di logfiles e effettuazione
di commissioni. Feltrare, provedere da colore, merge, 'diff-view',
etc. http://www.vanheusden.com/multitail/
--
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

-
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 and sudo

2008-08-07 Thread Terry
You get the cookie!   That was it.  Makes perfect sense, I had just
never paid attention to that line before.

On Thu, Aug 7, 2008 at 12:02 PM, Aaron McKinnon <[EMAIL PROTECTED]> wrote:
> I missed the first part of this thread, but check your logs. But I'm
> guessing you have to tweak the sudoers file by removing the line "Defaults
>  requiretty".
>
> -Aaron
>
> Terry wrote:
>>
>> Yes, nrpe works fine.  It checks other things as well.
>>
>> On Thu, Aug 7, 2008 at 11:47 AM, Steve Pribyl <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Terry,
>>>
>>> Does nrpe work at all?
>>> Is it process running/inetd configured?
>>> Is the port open on the destination node?
>>>
>>> Steve Pribyl
>>>
>>>
>>> On 08/07/2008 11:35 AM, Terry wrote:
>>> 
>>>
>>
>> I get this from the other side:
>> CHECK_NRPE: No output returned from daemon.
>>
>>>
>>> 
>>>
>>>
>>
>> -
>> 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 and sudo

2008-08-07 Thread Aaron McKinnon
I missed the first part of this thread, but check your logs. But I'm 
guessing you have to tweak the sudoers file by removing the line 
"Defaultsrequiretty".

-Aaron

Terry wrote:
> Yes, nrpe works fine.  It checks other things as well.
>
> On Thu, Aug 7, 2008 at 11:47 AM, Steve Pribyl <[EMAIL PROTECTED]> wrote:
>   
>> Terry,
>>
>> Does nrpe work at all?
>> Is it process running/inetd configured?
>> Is the port open on the destination node?
>>
>> Steve Pribyl
>>
>>
>> On 08/07/2008 11:35 AM, Terry wrote:
>> 
>> 
> I get this from the other side:
> CHECK_NRPE: No output returned from daemon.
>   
>> 
>>
>> 
>
> -
> 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 and sudo

2008-08-07 Thread Terry
Yes, nrpe works fine.  It checks other things as well.

On Thu, Aug 7, 2008 at 11:47 AM, Steve Pribyl <[EMAIL PROTECTED]> wrote:
> Terry,
>
> Does nrpe work at all?
> Is it process running/inetd configured?
> Is the port open on the destination node?
>
> Steve Pribyl
>
>
> On 08/07/2008 11:35 AM, Terry wrote:
> 

 I get this from the other side:
 CHECK_NRPE: No output returned from daemon.
>
> 
>

-
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 and sudo

2008-08-07 Thread Steve Pribyl
Terry,

Does nrpe work at all?
Is it process running/inetd configured?
Is the port open on the destination node?

Steve Pribyl


On 08/07/2008 11:35 AM, Terry wrote:

>>> I get this from the other side:
>>> CHECK_NRPE: No output returned from daemon.


-
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 and sudo

2008-08-07 Thread Terry
On Thu, Aug 7, 2008 at 11:11 AM, Sean McAfee
<[EMAIL PROTECTED]> wrote:
>
> Terry wrote:
>>
>> Hello,
>>
>> I am trying to run sudo /usr/sbin/clustat -s $service -l from nrpe.
>> I can run it on the nrpe machine as the nagios user and it works fine.
>>  However, when I call it from my nagios machine via check_nrpe it is
>> not working.   Since sudo works locally, it is something with nrpe in
>> how it is calling the sudo command that is making sudo not match.  my
>> sudoers is pretty open as it sits right now for testing:
>> nagios  ALL=(ALL) NOPASSWD: ALL
>>
>> I even broke it down to a very simple script:
>> #!/usr/bin/perl
>>
>> use lib "/usr/lib64/nagios/plugins";
>> use utils qw(%ERRORS);
>> $command = "sudo /bin/echo shit";
>> $foo = `$command`;
>> print "$foo\n";
>> exit $ERRORS{'OK'};
>>
>> I get this from the other side:
>> CHECK_NRPE: No output returned from daemon.
>>
>> I see that you can prefix all commands with sudo in the nrpe.cfg but I
>> only need it for a few plugins so would rather just call it from the
>> script.
>
> Try specifying the full path to sudo.
>
> Sean McAfee
> System Engineer
>
> Collaborative Fusion, Inc.
> [EMAIL PROTECTED]
> 412-422-3463 x 4025
>
> 5849 Forbes Avenue
> Pittsburgh, PA 15217
>

Good catch but that's not it.  :(

-
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] Config parser?

2008-08-07 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of JB Segal


> >> None exist that I am aware of but if they do, they'd likely be
found
> >> at http://www.nagiosexchange.org.
> >
> > Yeah... haven't found any there, but then perhaps my search terms
and
> > theirs aren't
> > intercepting, hence my questions. 

*mod* It's a default suggestion if an OP doesn't mention they looked
there. 

I don't recall seeing anything like what you're looking for come across
this list in the last 7 years or so...

--
Marc

-
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 and sudo

2008-08-07 Thread Sean McAfee

Terry wrote:
> Hello,
>
> I am trying to run sudo /usr/sbin/clustat -s $service -l from nrpe.
> I can run it on the nrpe machine as the nagios user and it works fine.
>  However, when I call it from my nagios machine via check_nrpe it is
> not working.   Since sudo works locally, it is something with nrpe in
> how it is calling the sudo command that is making sudo not match.  my
> sudoers is pretty open as it sits right now for testing:
> nagios  ALL=(ALL) NOPASSWD: ALL
>
> I even broke it down to a very simple script:
> #!/usr/bin/perl
>
> use lib "/usr/lib64/nagios/plugins";
> use utils qw(%ERRORS);
> $command = "sudo /bin/echo shit";
> $foo = `$command`;
> print "$foo\n";
> exit $ERRORS{'OK'};
>
> I get this from the other side:
> CHECK_NRPE: No output returned from daemon.
>
> I see that you can prefix all commands with sudo in the nrpe.cfg but I
> only need it for a few plugins so would rather just call it from the
> script.
Try specifying the full path to sudo.

Sean McAfee
System Engineer

Collaborative Fusion, Inc.
 [EMAIL PROTECTED]
 412-422-3463 x 4025

5849 Forbes Avenue
Pittsburgh, PA 15217


IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.



-
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] Config parser?

2008-08-07 Thread JB Segal
 and this time I'll reply to the list. Not used to gmail's reply defaults...

JB

On Thu, Aug 7, 2008 at 12:03 PM, JB Segal <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 7, 2008 at 10:05 AM, Marc Powell <[EMAIL PROTECTED]> wrote:
>>
>> On Aug 6, 2008, at 2:31 PM, JB Segal wrote:
>>
>>> To bring my convo from freenode:#nagios here:
>>
>> Not exactly the most response-friendly format...
>
> Probably. Thanks for persevering, thought.
>
>>> (15:02) <  Jailbait> Has anyone ever found a good tool for analyzing
>>> _existing_ nagios configs? I'm
>>
>> None exist that I am aware of but if they do, they'd likely be found
>> at http://www.nagiosexchange.org.
>
> Yeah... haven't found any there, but then perhaps my search terms and
> theirs aren't
> intercepting, hence my questions. :)
>
>>> set for things, etc. Perhaps
>>> something that would just generate a
>>> no-inheritence version of a config
>>
>> object_cache_file=/usr/local/nagios/var/objects.cache
>
> Wow. Thanks. I had NO idea...
>
>>>
>>> file... maybe all in a nice spread-sheet format.
>>> If I could export the View
>>> Configs output to something (spreadsheet of
>>> choice) could import, that'd
>>> probably be close.
>>
>> ndoutils stores this information in the database by default as well.
>> Then it's just a matter of using the correct queries to get the
>> information you want.
>
> Hm. I'll go investigate that. Thanks!
>
>> --
>> Marc
>
> JB
>

-
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


[Nagios-users] nrpe and sudo

2008-08-07 Thread Terry
Hello,

I am trying to run sudo /usr/sbin/clustat -s $service -l from nrpe.
I can run it on the nrpe machine as the nagios user and it works fine.
 However, when I call it from my nagios machine via check_nrpe it is
not working.   Since sudo works locally, it is something with nrpe in
how it is calling the sudo command that is making sudo not match.  my
sudoers is pretty open as it sits right now for testing:
nagios  ALL=(ALL) NOPASSWD: ALL

I even broke it down to a very simple script:
#!/usr/bin/perl

use lib "/usr/lib64/nagios/plugins";
use utils qw(%ERRORS);
$command = "sudo /bin/echo shit";
$foo = `$command`;
print "$foo\n";
exit $ERRORS{'OK'};

I get this from the other side:
CHECK_NRPE: No output returned from daemon.

I see that you can prefix all commands with sudo in the nrpe.cfg but I
only need it for a few plugins so would rather just call it from the
script.

Anyone have any thoughts?
Thanks!

-
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] Config parser?

2008-08-07 Thread Marc Powell

On Aug 6, 2008, at 2:31 PM, JB Segal wrote:

> To bring my convo from freenode:#nagios here:

Not exactly the most response-friendly format...

> (15:02) <  Jailbait> Has anyone ever found a good tool for analyzing
> _existing_ nagios configs? I'm

None exist that I am aware of but if they do, they'd likely be found  
at http://www.nagiosexchange.org.

> set for things, etc. Perhaps
> something that would just generate a
> no-inheritence version of a config

object_cache_file=/usr/local/nagios/var/objects.cache

>
> file... maybe all in a nice spread-sheet format.
> If I could export the View
> Configs output to something (spreadsheet of
> choice) could import, that'd
> probably be close.

ndoutils stores this information in the database by default as well.  
Then it's just a matter of using the correct queries to get the  
information you want.

--
Marc


-
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] warning mails not being sent

2008-08-07 Thread Tom Brown

> They can be filtered out at the service and contact levels - check their
> definitions too.
>
>
>   

many thanks - it was a contacts issue


-
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] Comments not allowed in Nagios 3

2008-08-07 Thread Marc Powell

On Aug 7, 2008, at 7:44 AM, Jon Lurås wrote:

> I have searched around and can not find the solution for enabling
> Comments for Nagios 3.
> I get the 'Sorry, but you are not authorized to commit the specified
> command.'
> I just want to put a comment, not run any command. :-(

Any action from the web GUI to tell nagios to do something, even  
adding a comment, is a command to nagios. You do need to enable  
external commands to do so.

--
Marc
-
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


[Nagios-users] Comments not allowed in Nagios 3

2008-08-07 Thread Jon Lurås
Hello

I have been running Nagios 1, 2 and now 3 for some years. Mostly in very 
small environments. Now I have a little more requirements and wants to 
enable 'Comments'.

I have searched around and can not find the solution for enabling 
Comments for Nagios 3.
I get the 'Sorry, but you are not authorized to commit the specified 
command.'
I just want to put a comment, not run any command. :-(

Thanks in advance.

Jon

-
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] [Nagvis-devel] nagvis giving me hell

2008-08-07 Thread Assaf Flatto

I've upgraded to 1.3 for the reason that this issue should have been fixed in 
the newer version .

I preformed the deletion and the same error appears .
and now i can not recover my NagVis at all ,

Ideas anyone ?

Assaf

PS - i also sent this to the nagvis list - but there is very little activity 
there .


On Thursday 07 August 2008 08:15:28 Assaf Flatto wrote:
> Hello
>
> I am trying to remove an old map in Nagvis .
> I've entered the interface and found the map management options , and
> selected Delete map , first there is a typo in the code
> /usr/local/nagios/share/nagvis/wui/form_handler.php line 325 function
> isste() - needs to be isset().
>
> after fixing that i run the delete procedure again, and it reports that the
> delete is done successful .
>
> when i try to see the relevant remaining maps i get the following error :
> mapCfgNotExists: Map configuration file does not exists
> The map configuration file
> "/usr/local/nagios/share/nagvis/etc/maps/MHL2-6.cfg" does not exists.
>
> (of course map MHL2-6 Does not exist - i just told Nagvi to delete it ).
>
> Anyone have any idea how to solve this issue ?
>
> Assaf
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential,
> legally privileged and/or protected by law. It is intended solely for the
> use of the person to whom it is addressed. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Please also delete all copies of this email and
> any attachments from your system.
>
> We cannot guarantee the security or confidentiality of email
> communications. We do not accept any liability for losses or damages that
> you may suffer as a result of your receipt of this email including but not
> limited to computer service or system failure, access delays or
> interruption, data non-delivery or mis-delivery, computer viruses or other
> harmful components.
>
> Copyright in this email and any attachments belong to Select Service
> Partner UK Limited. Should you communicate with anyone at Select Service
> Partner UK Limited by email, you consent to us monitoring and reading any
> such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and
> Wales (company number 05687183) whose registered office is at 1 The
> Heights, Brooklands, Weybridge. Surrey. KT13 0NY
>
>
>
> -
> 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=/
> ___
> Nagvis-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nagvis-devel






IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

-
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-cont

Re: [Nagios-users] Can I monitor a host without defining any services for it?

2008-08-07 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/08/08 04:09 AM, Ian Masters wrote:
> Hello
> 
> I was wondering about the necessity to define a service for hosts that I
> just want to ping. As far as I understand, the default Host Check
> Command, check-host-alive, is a ping check and looking at my scheduling
> queue, these checks are being done regularly but when I verify my config
> files Nagios always warns me about the hosts which have no services defined.
> 
> So I looked in the documentation and found this:
> http://www.nagios.org/faqs/viewfaq.php?faq_id=39
> 
> On that page Ethan Galstad says:
> You really need to define at least one server per host that you plan on
> monitoring. Although you can define a host and not assign any services
> to it, you will not get the results you are expecting. Nagios is
> primarily geared towards monitoring services - hosts are only checked
> when there are problems or recoveries with services, so things will go
> awry if you define a host without any services.
> 
> The above FAQ was written in 2002. Is this still true?
> 
> Since the host is already being checked by the Host Check Command, it
> seems redundant to specify a ping check as a service.
> 
> Do all you Nagios admins define a ping service, if you only want to
> check if a host is up or down?

You can use check_dummy for the service... In Nagios 3 with regularly
scheduled hosts checks it should work.

In Nagios 2 hosts check were normally on-demand so it wouldn't work if
your service always returns OK.

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImuHT6dZ+Kt5BchYRAmifAKCMPDrEFe7eAh4nxOksLuMGGLfI5wCg2sOY
d9KUNyafcsCGygv+X/DuUiI=
=p0pC
-END PGP SIGNATURE-

-
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] warning mails not being sent

2008-08-07 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/08/08 05:49 AM, Tom Brown wrote:
> Hi
> 
> I monitor a bunch of stuff with nagios 3 and everything seems fine apart 
> from warnings are not being sent. I get critical alerts and warnings are 
> logged into the dashboard however warning mails never get sent.
> 
> A service description that this applies to is below
> 
> define  service {
> hostgroup_namewindows-hosts
> service_descriptionwindows-disk-c
> is_volatile0
> check_commandcheck_nt!USEDDISKSPACE!c!80!90!12489
> max_check_attempts3
> normal_check_interval5
> retry_check_interval1
> active_checks_enabled1
> passive_checks_enabled1
> check_period24x7
> parallelize_check1
> obsess_over_service1
> check_freshness0
> event_handler_enabled1
> flap_detection_enabled1
> failure_prediction_enabled1
> process_perf_data0
> retain_status_information1
> retain_nonstatus_information1
> contact_groupswindows-admins
> notification_interval60
> notification_period24x7
> notification_optionsw,u,c,r,f
> notifications_enabled1
> register1
> }
> 
> Does anyone know why this may happen or what i can check?

They can be filtered out at the service and contact levels - check their
definitions too.

Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImuBa6dZ+Kt5BchYRAknsAJ0dGbT1kDK2d66bFdKpFdCtCE7B3QCeI95E
T4mvg12VqO+iA59PfMYcpVE=
=mnVS
-END PGP SIGNATURE-

-
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


[Nagios-users] warning mails not being sent

2008-08-07 Thread Tom Brown
Hi

I monitor a bunch of stuff with nagios 3 and everything seems fine apart 
from warnings are not being sent. I get critical alerts and warnings are 
logged into the dashboard however warning mails never get sent.

A service description that this applies to is below

define  service {
hostgroup_namewindows-hosts
service_descriptionwindows-disk-c
is_volatile0
check_commandcheck_nt!USEDDISKSPACE!c!80!90!12489
max_check_attempts3
normal_check_interval5
retry_check_interval1
active_checks_enabled1
passive_checks_enabled1
check_period24x7
parallelize_check1
obsess_over_service1
check_freshness0
event_handler_enabled1
flap_detection_enabled1
failure_prediction_enabled1
process_perf_data0
retain_status_information1
retain_nonstatus_information1
contact_groupswindows-admins
notification_interval60
notification_period24x7
notification_optionsw,u,c,r,f
notifications_enabled1
register1
}

Does anyone know why this may happen or what i can check?

thanks


-
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


[Nagios-users] Can I monitor a host without defining any services for it?

2008-08-07 Thread Ian Masters
Hello

I was wondering about the necessity to define a service for hosts that I
just want to ping. As far as I understand, the default Host Check
Command, check-host-alive, is a ping check and looking at my scheduling
queue, these checks are being done regularly but when I verify my config
files Nagios always warns me about the hosts which have no services defined.

So I looked in the documentation and found this:
http://www.nagios.org/faqs/viewfaq.php?faq_id=39

On that page Ethan Galstad says:
You really need to define at least one server per host that you plan on
monitoring. Although you can define a host and not assign any services
to it, you will not get the results you are expecting. Nagios is
primarily geared towards monitoring services - hosts are only checked
when there are problems or recoveries with services, so things will go
awry if you define a host without any services.

The above FAQ was written in 2002. Is this still true?

Since the host is already being checked by the Host Check Command, it
seems redundant to specify a ping check as a service.

Do all you Nagios admins define a ping service, if you only want to
check if a host is up or down?

Thanks

Ian Masters

-
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