Re: [Nagios-users] combining more than one status.dat file...

2010-11-19 Thread Rutger Blom
Hi,

I would really suggest you have a look at check_mk and multisite. This
Nagios addon supports having multiple Nagios servers in one management
interface.
http://mathias-kettner.de/checkmk_multisite.html

/Rutger

On Saturday, November 20, 2010, Ray Kiddy  wrote:
>
> I have an idea on how to get a sort of distributed nagios to work. It 
> actually seems simple. MaybeI am not seeing something. Maybe someone here 
> knows a reason this will not work.
>
> I have a nagios server here. It is watching some things in about a dozen data 
> centers around the world. There is a nagios running in China and another one 
> running in Ankara, as well.
>
> I want to see, in one interface, how all three of these nagios servers see 
> things. I think I should be able to take the status.dat here, take the 
> status.dat from Ankara (with a "_tr" added to the service names), take the 
> status.dat from China (with a "_cn" added to the names of the services), and 
> put these all three together into the one status.dat file here. I figure I 
> have to do it in such a way that I do not get into a race condition with the 
> nagios server itself, but other than that, what is the problem with this?
>
> I had asked for this kind of thing before. With our nagios server, we can see 
> if the cn servers are up, but we care a lot more about whether the cn servers 
> are up for the cn customers. It does not matter how the CN-US link is 
> behaving. So, if the cn servers look to be down, but Ankara can see them, we 
> know there is no problem.
>
> This just seems to be a really simple way to get this. But, given the 
> complexities of some of discussions about this stuff, I am dubious. If it was 
> this simple, it would be documented, and even talked about, no? I am sure I 
> am not the only one who wants this. Any thoughts?
>
> thanx - ray
>
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> ___
> 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
>

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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] Change "Procs Critical" threshold

2010-11-19 Thread C. Bensend

> I had another question regarding adjusting these thresholds, this time on
> localhost. It regards the Current Load parameter, which is giving me a
> Critical Load average of -- 2.47, 3.43, and 4.06
>
> in localhost.cfg, /usr/local/nagios/etc/objects/localhost.cfg, I have this
>
> define service{
> use local-service ; Name of
> service template to use
> host_name   localhost
>   service_description Current Load
> check_command
> check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
>   }
>
> which I actually went and adjusted to :
>
> check_command check_local_load!7.0,4.0,3.0!10.0,6.0,4.0
>
> I restarted the Nagios service..but this didn't have any effect -- the
> status information still reads the same -- Critical Load Average - 2.47,
> 3.43, 4.06

>From the help for check_load (which I'm assuming you're using
in the command definition):

Usage:check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15

So, in your service definition, you're telling check_load that you
want to trigger a critical condition if the 15 minute average is 4.0.

Yours is 4.06.  So, yes, it's critical.  :)

WLOAD1  = 1 minute average warning threshold
WLOAD5  = 5 minute average warning threshold
WLOAD15 = 15 minute average warning threshold

CLOAD1  = 1 minute average critical threshold
CLOAD5  = 5 minute average critical threshold
CLOAD15 = 15 minute average critical threshold

If you want your 15 minute average to *not* trigger a critical, you
need to adjust that last value (4.0) to something higher.

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



--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] combining more than one status.dat file...

2010-11-19 Thread Ray Kiddy

I have an idea on how to get a sort of distributed nagios to work. It actually 
seems simple. MaybeI am not seeing something. Maybe someone here knows a reason 
this will not work.

I have a nagios server here. It is watching some things in about a dozen data 
centers around the world. There is a nagios running in China and another one 
running in Ankara, as well.

I want to see, in one interface, how all three of these nagios servers see 
things. I think I should be able to take the status.dat here, take the 
status.dat from Ankara (with a "_tr" added to the service names), take the 
status.dat from China (with a "_cn" added to the names of the services), and 
put these all three together into the one status.dat file here. I figure I have 
to do it in such a way that I do not get into a race condition with the nagios 
server itself, but other than that, what is the problem with this?

I had asked for this kind of thing before. With our nagios server, we can see 
if the cn servers are up, but we care a lot more about whether the cn servers 
are up for the cn customers. It does not matter how the CN-US link is behaving. 
So, if the cn servers look to be down, but Ankara can see them, we know there 
is no problem.

This just seems to be a really simple way to get this. But, given the 
complexities of some of discussions about this stuff, I am dubious. If it was 
this simple, it would be documented, and even talked about, no? I am sure I am 
not the only one who wants this. Any thoughts?

thanx - ray


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] Change "Procs Critical" threshold

2010-11-19 Thread Jonathan Wiggins


> 
>> I have a couple of systems that are reporting critical notifications, that
>> when you drill into them, the Service : Total Processes has been
>> triggered. Its showing critical process level of 231, 453, for example.
>> Which on a production server is nothing really --- my question is, how do
>> I change that threshold level to something like 750, or 1500?
>> 
>> Perhaps I'm not searching online for the correct term or using the right
>> parlance. Any ideas where this can be modified?
> 
> If you have a look at the options for the plugin (hint:  ./plugin
> --help), they will reveal their secrets to you.  :)
> 
> Then, using that knowledge, you can adjust your service check to
> use the appropriate values for your environment.
> 
> Benny
> 

Hey Benny.

I had another question regarding adjusting these thresholds, this time on 
localhost. It regards the Current Load parameter, which is giving me a Critical 
Load average of -- 2.47, 3.43, and 4.06

in localhost.cfg, /usr/local/nagios/etc/objects/localhost.cfg, I have this 

define service{
use local-service ; Name of service 
template to use
host_name   localhost
service_description Current Load
check_command   
check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}

which I actually went and adjusted to :

check_command   check_local_load!7.0,4.0,3.0!10.0,6.0,4.0  

I restarted the Nagios service..but this didn't have any effect -- the status 
information still reads the same -- Critical Load Average - 2.47, 3.43, 4.06

Is there something else I'm missing?


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
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] hostgroup with no members - Enhancement

2010-11-19 Thread Max Schubert
Will try to get this done this weekend - sorry all, it is an irony to
be working for a company that allows us to release code from work to
open source and be so busy at the job that I rarely have time to do so
:).

My apologies for the delay - and thanks for your input, help, and
feedback on the patch, Dan.  Glad you find it useful.

- Max

On Fri, Nov 19, 2010 at 10:40 AM, Daniel Wittenberg
 wrote:
> I'll check with the original author of the patch...I re-rolled it
> already against head and tested great, been a lifesaver.  I sent the
> updates to him so he could post and move forward with so if he's not had
> time I'll see about submitting directly.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] (no subject)

2010-11-19 Thread Paul Paul
http://www.studiobombardieri.it/upload.php
  --
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
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] Notifications and Escalations and Notification_intervals, oh my!

2010-11-19 Thread Martin Melin
On Fri, Nov 19, 2010 at 8:34 PM, Mike Neimoyer  wrote:
> Hello, all!
>
> I'm trying to understand how notification intervals work when it comes
> to basic service definitions and serviceescalation definitions. Does
> Nagios disregard the initial notification_interval of a service
> definition, once it reaches an escalation, in favor of the escalation's
> notification_interval?
>
> Example:
> I have a service's notification_interval set to 15, so that once a state
> change occurs, a notification is sent out, then another after 15
> minutes, and another after 15 minutes, etc... With Nagios counting the
> notifications as they get sent.
>
> Now, I want to define an escalation for that service so that on
> notification number 2 Nagios notifies a different contact_group.  I have
> the notification_interval for the escalation set to 10 minutes.
>
> How does the notification_interval work in this instance, where the
> period is different?

Hey Mike,

If there is a matching escalation definition that will take precedence
over the service definition. In cases where you have conflicting
notification_interval values that are all valid, Nagios will use the
smallest interval.

http://nagios.sourceforge.net/docs/3_0/escalations.html

Regards
Martin Melin

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] Notifications and Escalations and Notification_intervals, oh my!

2010-11-19 Thread Mike Neimoyer
Hello, all!

I'm trying to understand how notification intervals work when it comes 
to basic service definitions and serviceescalation definitions. Does 
Nagios disregard the initial notification_interval of a service 
definition, once it reaches an escalation, in favor of the escalation's 
notification_interval?

Example:
I have a service's notification_interval set to 15, so that once a state 
change occurs, a notification is sent out, then another after 15 
minutes, and another after 15 minutes, etc... With Nagios counting the 
notifications as they get sent.

Now, I want to define an escalation for that service so that on 
notification number 2 Nagios notifies a different contact_group.  I have 
the notification_interval for the escalation set to 10 minutes.

How does the notification_interval work in this instance, where the 
period is different?

Thanks!
~~Mike






--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] server profiling options

2010-11-19 Thread Daniel Wittenberg
I'm a bit suspicious about the external_command_check_interval
directive ( see http://nagios.sourceforge.net/docs/3_0/configmain.html
)

If it's set to "-1" (as mine was until recently) then  Nagios will
check external commands as often as possible.  I suspect it helps if
you set it to a definite interval, for example 15s, but check
nagiostats to make sure your command buffers don't fill up.


-- This is something I was going to try as well


IME Nagios itself is usually quite light on CPU.  It's the plugins and
how frequently they run which affect performance the most.   I always
set check_interval and retry_interval as long as possible in service
definitions to spread the load as much as possible.

Some plugins can be real performance hogs too, especially
check_esx3.pl if you use that (I don't mean to dis' it, as it's a
super plugin - it just eats cpu).  Run 'top' and you will probably see
which plugins are the biggest hogs on your system.

- Right now the plugins aren't causing much of an issues, it's the core
nagios engine
Causing issues...

ndo (the interface with MySQL if you have that installed) can be a
real performance hog.  That's a whole other topic!

- Luckily no not right now...

If you're using pnp4nagios for graphing performance data, consider
setting it up in bulk mode, ideally on a separate server.  It won't
make a huge difference but might help a bit.

- Already done

If it's more important to you to stop Nagios hammering your server
than it is for Nagios to work right, you can use max_concurrent_checks
to limit the number of checks Nagios can run at any time.  Keep an eye
on your service check latency if you do that though - if latency gets
too high (more than a minute or so) you will find Nagios' usefulness
diminish quite rapidly!  Personally I think you should give Nagios a
dedicated server and let it use as much CPU as it needs.

Oh, and v3.1.3 includes a fix which improves performance of the status
cgis.  I'm looking forward to trying that myself next week.

Ah, yes, if you have quite a few users, consider setting
"refresh_rate" in cgi.cfg to a longer time, otherwise everyone who
leaves a status screen open in their browser will hit your Nagios
server every 90 seconds (or whatever value it's set to on your
system).   If I recall I set mine to 180.

- Luckily almost no users with this, we've been using multisite since we
have
A number of servers

I'm not sure if any of this will help you, but hopefully it will give
you an idea or two.

Cheers,

Jim

- Yeah, any other thoughts people have is helpful.  I also tried using
the new:
auto_reschedule_checks=1
auto_rescheduling_interval=30
auto_rescheduling_window=180

Options this morning and with the default it seems to actually be
helping...
One other thing I'll probably do is strip out some macros to reduce
processing overhead for things that
Are static and don't need to be checked every time, like path to
plugins, and such.

Dan

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] server profiling options

2010-11-19 Thread Jim Avery
On 18 November 2010 20:18, Daniel Wittenberg
 wrote:
> I’m looking at minimizing the CPU impact that nagios has on our server, and
> done some of the basic performance tuning stuff, but what I see right now is
> a lot of the nagios worker procs generating a lot of CPU and curious if
> there was a way people have used to watch what those processes and threads
> were doing that might be taknig the most cycles to try and reduce it?


I've just been looking at this myself.

I'm a bit suspicious about the external_command_check_interval
directive ( see http://nagios.sourceforge.net/docs/3_0/configmain.html
)

If it's set to "-1" (as mine was until recently) then  Nagios will
check external commands as often as possible.  I suspect it helps if
you set it to a definite interval, for example 15s, but check
nagiostats to make sure your command buffers don't fill up.


IME Nagios itself is usually quite light on CPU.  It's the plugins and
how frequently they run which affect performance the most.   I always
set check_interval and retry_interval as long as possible in service
definitions to spread the load as much as possible.

Some plugins can be real performance hogs too, especially
check_esx3.pl if you use that (I don't mean to dis' it, as it's a
super plugin - it just eats cpu).  Run 'top' and you will probably see
which plugins are the biggest hogs on your system.

ndo (the interface with MySQL if you have that installed) can be a
real performance hog.  That's a whole other topic!

If you're using pnp4nagios for graphing performance data, consider
setting it up in bulk mode, ideally on a separate server.  It won't
make a huge difference but might help a bit.

If it's more important to you to stop Nagios hammering your server
than it is for Nagios to work right, you can use max_concurrent_checks
to limit the number of checks Nagios can run at any time.  Keep an eye
on your service check latency if you do that though - if latency gets
too high (more than a minute or so) you will find Nagios' usefulness
diminish quite rapidly!  Personally I think you should give Nagios a
dedicated server and let it use as much CPU as it needs.

Oh, and v3.1.3 includes a fix which improves performance of the status
cgis.  I'm looking forward to trying that myself next week.

Ah, yes, if you have quite a few users, consider setting
"refresh_rate" in cgi.cfg to a longer time, otherwise everyone who
leaves a status screen open in their browser will hit your Nagios
server every 90 seconds (or whatever value it's set to on your
system).   If I recall I set mine to 180.

I'm not sure if any of this will help you, but hopefully it will give
you an idea or two.

Cheers,

Jim

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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_SVN

2010-11-19 Thread diego . roccia
I think you're right about the problem.
In nagios.cfg file you can find the user you're running these commands as. It's 
usually nagios

Sent from my BlackBerry® wireless device

-Original Message-
From: Luis Gustavo de Andrade Jordão Carneiro

Date: Fri, 19 Nov 2010 16:27:13 
To: 'nagios-users@lists.sourceforge.net'
Reply-To: Nagios Users List 
Subject: [Nagios-users] CHECK_SVN

Hello People!!



Can you help me?

I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using 
prompt, that's work. But not when Nagios running check_svn.



nagiosql:~# su - nagios

nag...@nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U 
lcarneiro -P  --dir /svn/aocsw_config

SVN OK: svn repository online - directory listing successful



But, when Service Nagios run, not work. See:



SVN CRITICAL: Error connecting to svn server - OPTIONS of 
'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: 
issuer is not trusted (https://svnaero)



Commands.cfg:   $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ 
--dir $ARG3$

Service:

$ARG1$ lcarneiro

$ARG2$ x

$ARG2$/svn/aocsw_desenv



check_command   check_svn!lcarneiro!x!/svn/aocsw_desenv





I already accept certificate permanent (p) using svn info .
How can i know which USER run check_svn?
I think this could be the problem, because i need to accept certificate to user 
that run check_svn.


Luis Gustavo de A. J. Carneiro



--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] SNMP checks, using multiple snmpgets

2010-11-19 Thread Jim Avery
On 18 November 2010 19:04,   wrote:

>   Im trying to get my SNMP monitoring a bit more informative. I want
> to monitor port status on ethernet switches (which Ive tested and
> works quite nicely).
> Im using the instructions given here:
>
> http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/
>
> What would be nice is that in the out put of a give port, rather than
> just saying up or down Id like to also include the output from the
> ifDescr along with the port status. Logically this would seem to be
> possible, give the how to above shows in example 7 a config whereby
> you monitor multiple ports in a single command.
> I tried this config:
>
> check_command           check_snmp!-C public -o ifDescr.52 -m RFC1213-MI
> B -o ifOperStatus.52 -r 1 -m RFC1213-MIB
>
> The output of the command is fine, I see the string returned from the
> ifDescr first then the status of the port, but Nagios takes this as
> being an error state and marks the service as faulted permanently.
> If anyone can understand that, do you know if what I want is possible
> to achieve? :P

Have you looked at http://nagios.manubulon.com/snmp_int.html ?

I'm at home so can't check for sure but I think it will retrieve the ifDescr.

hth,

Jim

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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_SVN

2010-11-19 Thread Rick Munn
In your check_command
check_svn!lcarneiro!x!/svn/aocsw_desenv

Try taking out two of the three exclamation marks and putting spaces, like
this:

check_command   check_svn!lcarneiro x /svn/aocsw_desenv

Rick

Rick B. Munn
Operations Team
ScreenScape Networks
T: 902-368-1975 x329
F: 902-368-3706
E: r...@screenscape.net


2010/11/19 Luis Gustavo de Andrade Jordão Carneiro <
luis.carne...@compsisnet.com.br>

> Hello People!!
>
>
>
> Can you help me?
>
> I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using
> prompt, that's work. But not when Nagios running check_svn.
>
>
>
> nagiosql:~# su - nagios
>
> nag...@nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33
> --https -U lcarneiro -P  --dir /svn/aocsw_config
>
> SVN OK: svn repository online - directory listing successful
>
>
>
> But, when Service Nagios run, not work. See:
>
>
>
> SVN CRITICAL: Error connecting to svn server - OPTIONS of '
> https://svnaero/svn/aocsw_desenv': Server certificate verification failed:
> issuer is not trusted (https://svnaero)
>
>
>
> Commands.cfg:   $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P
> $ARG2$ --dir $ARG3$
>
> Service:
>
> $ARG1$ lcarneiro
>
> $ARG2$ x
>
> $ARG2$/svn/aocsw_desenv
>
>
>
> check_command   check_svn!lcarneiro!x!/svn/aocsw_desenv
>
>
>
>
>
> I already accept certificate permanent (p) using svn info .
> How can i know which USER run check_svn?
> I think this could be the problem, because i need to accept certificate to
> user that run check_svn.
>
>
> Luis Gustavo de A. J. Carneiro
>
>
>
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> ___
> 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
>
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] CHECK_SVN

2010-11-19 Thread Luis Gustavo de Andrade Jordão Carneiro
Hello People!!



Can you help me?

I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using 
prompt, that's work. But not when Nagios running check_svn.



nagiosql:~# su - nagios

nag...@nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U 
lcarneiro -P  --dir /svn/aocsw_config

SVN OK: svn repository online - directory listing successful



But, when Service Nagios run, not work. See:



SVN CRITICAL: Error connecting to svn server - OPTIONS of 
'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: 
issuer is not trusted (https://svnaero)



Commands.cfg:   $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ 
--dir $ARG3$

Service:

$ARG1$ lcarneiro

$ARG2$ x

$ARG2$/svn/aocsw_desenv



check_command   check_svn!lcarneiro!x!/svn/aocsw_desenv





I already accept certificate permanent (p) using svn info .
How can i know which USER run check_svn?
I think this could be the problem, because i need to accept certificate to user 
that run check_svn.


Luis Gustavo de A. J. Carneiro



--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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 3.2.3 host check retry interval

2010-11-19 Thread Chris Beattie

On Thu, 2010-11-18 at 13:09 -0500, Chris Beattie wrote:
> 
> I'm going to try reverting back to Nagios 3.2.1 to see what happens. 
> It's possible I had the problem then but never noticed.

No luck: even running 3.2.1 I still got the early retries.  Since it's
not a 3.2.3 problem, and I've apparently had it for quite some time
without noticing, I've re-upgraded.

This time I'm trying a nearly-stock nagios.cfg file.  The one I've been
using predates Nagios 3.0.  Though it's been updated some, it doesn't
contain all the more-recent settings.

Nothing in this message is intended to make or accept an offer or to form a 
contract, except that an attachment that is an image of a contract bearing the 
signature of an officer of our company may be or become a contract. This 
message (including any attachments) is intended only for the use of the 
individual or entity to whom it is addressed. It may contain information that 
is non-public, proprietary, privileged, confidential, and exempt from 
disclosure under applicable law or may constitute as attorney work product. If 
you are not the intended recipient, we hereby notify you that any use, 
dissemination, distribution, or copying of this message is strictly prohibited. 
If you have received this message in error, please notify us immediately by 
telephone and delete this message immediately.

Thank you.


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] More than one command defined

2010-11-19 Thread Kaiwang Chen
Not sure about 3.2.2.

In 3.2.3 nagios can be configured to both write to log and run a
defined command on each copy of perfdata.
PNP bulk mode relies on the former, and the following configure
directive are involved:
process_performance_data
host_perfdata_file
service_perfdata_file
host_perfdata_file_mode
service_perfdata_file_mode
host_perfdata_file_processing_interval
service_perfdata_file_processing_interval
host_perfdata_file_processing_command
service_perfdata_file_processing_command
Don't worry about uncommpleted files, Nagios will close the file,
invoke the file processing command, then reopen the file. The
performance data is logged in the file, you can then do what you like
in the defined processing command, which can be simply a /bin/mv to
move it to another place as PNP bulk mode with NPCD, or processing the
whole perfdata log file as PNP bulk mode.

the PNP default mode relies on the latter, and the following configure
directives are involved:
process_performance_data
host_perfdata_command
service_perfdata_command
Nagios simple invokes the comands passing in perfdata and other
infomation in NAGIOS_XXX environment variables (have a look at
parse_env() in process_perfdata.pl).


Let me know if it works.

Thanks,
kc

2010/11/19 Daniel Wittenberg :
> I’m looking at the same issue and our thoughts are to use NDO utils or
> possibly custom NEB to grab perf data that way, but then still let
> pnp4nagios run the ‘normal’ way.
>
> Dan
>
>
>
>
>
> From: Deborah Martin [mailto:deborah.mar...@kognitio.com]
> Sent: Thursday, November 18, 2010 10:26 AM
> To: 'Nagios Users List'
> Subject: [Nagios-users] More than one command defined
> Importance: High
>
>
>
> Hi,
>
> I have a need to run two different commands when processing the performance
> data from Nagios (3.2.2)
>
> I want the first  command to run the process-perfdata.pl script from
> pnp4nagios and the second command to log various things to a different log
> file.
>
> The reason is that we've only just had a requirement to process performance
> data for pnp4nagios graphing. But historically we've created our own
> "performance data" log
>
> which is then used within a database to produce SLA reports developed
> in-house (no graphing just numbers produced for the SLA reports)
>
> If I do the following I don't get an errors when I run nagios -v nagios.cfg
> ... :-
>
> define command {
>     command_name process-service-perfdata-file
>     command_line  - process performance data for
> pnp4nagios
>     command_line  - log different data to a different
> file
>     }
>
> I'd like to avoid creating a script with both commands in if I can help it
> as it's extremely useful to keep it simple and visible in the
> misccommands.cfg file.
>
> Perhaps there is some other way I can do this or is a script with both
> commands really the only way ?
>
> Any help / pointers would be really appreciated. If I'm being dense about
> this and the answer is staring right at me feel free to say so!
>
> Thanks,
> Deborah
>
> ***
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
>
> Any unauthorised distribution or copying is strictly prohibited.
> Whilst Kognitio Limited takes steps to prevent the transmission of viruses
> via e-mail, we can not guarantee that any email or attachment is free from
> computer viruses and you are strongly advised to undertake your own
> anti-virus precautions.
>
> Kognitio grants no warranties regarding performance, use or quality of any
> e-mail or attachment and undertakes no liability for loss or damage,
> howsoever caused.
>
> Kognitio Limited, a company registered in England and Wales. Registered
> number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road,
> Bracknell, Berks, RG12 1RB. VAT number 864 4378 92.
>
> Kognitio Inc, a company incorporated in Delaware, principal office 180 North
> Stetson, Suite 3500, Chicago, IL 60601, USA
> ***
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> ___
> 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
>

--
Beautiful is writing same markup. Inte

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-19 Thread Daniel Wittenberg
I'll check with the original author of the patch...I re-rolled it
already against head and tested great, been a lifesaver.  I sent the
updates to him so he could post and move forward with so if he's not had
time I'll see about submitting directly.

Dan

-Original Message-
From: Andreas Ericsson [mailto:a...@op5.se] 
Sent: Friday, November 19, 2010 3:17 AM
To: Nagios Users List
Cc: Daniel Wittenberg
Subject: Re: [Nagios-users] hostgroup with no members - Enhancement

On 11/18/2010 09:19 PM, Daniel Wittenberg wrote:
> I was curious if we were able to make any progress on getting this
patch
> included?
> 

That depends on you, more or less. I'm just waiting for a rerolled one
that's tested with latest CVS head and has the necessary documentation
amendments.

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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] server profiling options and pre-caching macros

2010-11-19 Thread Daniel Wittenberg
I'll see what I can do...with holiday coming up not sure how much will
get done but I'll see...

Dan


-Original Message-
From: Andreas Ericsson [mailto:a...@op5.se] 
Sent: Friday, November 19, 2010 3:20 AM
To: Nagios Users List
Cc: Daniel Wittenberg
Subject: Re: [Nagios-users] server profiling options and pre-caching
macros

On 11/18/2010 11:30 PM, Daniel Wittenberg wrote:
> Watching nagios in debug mode for awhile, made me think about the
> processing of macros and the performance impact.  It seems that for
most
> macro's, like user defined ones, they don't change.  So does it really
> make sense to keep processing them over and over and over...could that
> be something that maybe you could do in the pre-cache stage when
nagios
> starts.  Would that cause more problems?
> 

That would be an excellent idea. Any chance you could whip up a patch?

If you run
  grep -i -e xxx -e todo */*.c

on latest cvs or git sources, you'll find a few more places where there
are obvious and simple performance improvements to be made.

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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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 log show actual command executed?

2010-11-19 Thread Kaiwang Chen
enable debug log in nagios.cfg:

# DEBUG LEVEL
# This option determines how much (if any) debugging information will
# be written to the debug file.  OR values together to log multiple
# types of information.
# Values:
#  -1 = Everything
#  0 = Nothing
#  1 = Functions
#  2 = Configuration
#  4 = Process information
#  8 = Scheduled events
#  16 = Host/service checks
#  32 = Notifications
#  64 = Event broker
#  128 = External commands
#  256 = Commands
#  512 = Scheduled downtime
#  1024 = Comments
#  2048 = Macros

debug_level=-1



# DEBUG VERBOSITY
# This option determines how verbose the debug log out will be.
# Values: 0 = Brief output
# 1 = More detailed
# 2 = Very detailed

debug_verbosity=2



# DEBUG FILE
# This option determines where Nagios should write debugging information.

debug_file=/var/nagios.debug


Then you will get the most verbose internal states. I experienced a
typo of 172 to 127, and found it with the help of debug log. If you
are lucky, do serveral search of check_http will locate the problem.

Thanks,
kc

2010/11/18 Ray Kiddy :
>
> I am having a problem figuring out see what is actually being executed from a 
> service. Is there a way to get the nagios log to contain the actual command 
> being executed?
>
> This is what I am seeing in the Nagios.log file:
>
>        [1290013792] SERVICE ALERT: myhost.com;Special 
> App;CRITICAL;SOFT;1;(Service Check Timed Out)
>
> This is what I see in the nagios.dat file:
>
>        check_command=check_http!/myURL!alive
>
> So, this shows me what the command string is in the service.cfg. I cannot 
> see, though, what the actual command line is at this moment in time. It turns 
> out that this check_command corresponds (I think) to:
>
>        check_http -u /myURL -s alive
>
> How would I know this, though, if the command definition had been changed or 
> if it is using, because of a mis-spelling, a command I do not think it is 
> using? If I go into the command.cfg and switch the order of parameters, for 
> example, I see nothing in these logs that tells me what is doing what.
>
> I know the simplest answer is "You should not do that." But my point is that 
> the log file does not have enough information to tell me what happened at a 
> past moment of time. I would need the log information _and_ the state of the 
> command definitions at that time. If a log does not show you what happened in 
> the past, what is its purpose?
>
> I am having a problem with a particular web application. For some reason I 
> put in the check and it fails. I execute the check_http that I _think_ this 
> service is doing, and it gives me an OK. I ended up creating a custom 
> executable that calls curl and fetches against the same URL and this now 
> works fine. Kind of lame, though. I use check_http in about 100 other 
> services. So, why is this one single service not working? An obvious answer 
> is that I am not calling the command in the way I think I am. But if I look 
> in the log to see what the service did, I can see what I _think_ it did based 
> on what I can see in what I _think_ is the correct command definition. But I 
> really do not know. I do not see a line like "check_http -u /myURL -s alive" 
> in the log, so, I cannot see if I am mis-reading things.
>
> Any suggestions?
>
> - ray
>
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> ___
> 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
>

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] MSSQL CRITICAL - Error: Provider cannot be found. It may not be properly installed

2010-11-19 Thread Leif J.
On a brand new Windows 2008R2 and MSSQL 2008R2 I have installed 
NSClient++ and put check_mssql_nt but when I try to connect to the 
localhost I'm getting: /MSSQL CRITICAL - Error: Provider cannot be 
found. It may not be properly installed

/
What can it be ? I have looked several sites and have not yet figured it 
out why.


/Leif
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
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] certain timeperiods for some services on some hosts

2010-11-19 Thread Love Grönvall
Yes, that's the solution I described below that I don't want to use. Is 
duplicate service definitions the only way to go?

Best Regards,
Love Gronvall
.SE


-Ursprungligt meddelande-
Från: Assaf Flatto [mailto:nag...@flatto.net] 
Skickat: den 19 november 2010 12:01
Till: nagios-users@lists.sourceforge.net
Ämne: Re: [Nagios-users] certain timeperiods for some services on some hosts

  you can use a template to make it easier.

Build the template to encompass all the definitions you need and then 
define the service for the host group/service group  you want to 
associate it to , and in the service  definition  you "override " the 
timeperiod  definition with the local definition .

that way you still have a duplicate , but it will be an easier and 
neater solution .

Assaf


On 19/11/10 09:48, Love Grönvall wrote:
> I have two hosts; host_a and host_b, both running web servers which are being 
> checked by Nagios.
>
> I want workhours notification_period on all services on host_a and host_b 
> apart from:
> - 24x7 notification_period for http on host_a
> - workhours notification_period for http on host_b
>
> Do I need to set up different services for the two different time periods?
>
>
> The perfect solution for me would be to set up a servicegroup, 
> "24x7-services", where I place important services on certain servers. But 
> obviously I can't define notification_period for a service group.
>
> How is the best solution to solve this? (It's a setup with hundreds of 
> servers, and doing duplicate definitions of services wouldn't be the 
> prettiest solution.)
>
>
> Best Regards,
>
> Love Gronvall
> .SE

-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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


PGP.sig
Description: PGP signature
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
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] certain timeperiods for some services on some hosts

2010-11-19 Thread Assaf Flatto
  you can use a template to make it easier.

Build the template to encompass all the definitions you need and then 
define the service for the host group/service group  you want to 
associate it to , and in the service  definition  you "override " the 
timeperiod  definition with the local definition .

that way you still have a duplicate , but it will be an easier and 
neater solution .

Assaf


On 19/11/10 09:48, Love Grönvall wrote:
> I have two hosts; host_a and host_b, both running web servers which are being 
> checked by Nagios.
>
> I want workhours notification_period on all services on host_a and host_b 
> apart from:
> - 24x7 notification_period for http on host_a
> - workhours notification_period for http on host_b
>
> Do I need to set up different services for the two different time periods?
>
>
> The perfect solution for me would be to set up a servicegroup, 
> "24x7-services", where I place important services on certain servers. But 
> obviously I can't define notification_period for a service group.
>
> How is the best solution to solve this? (It's a setup with hundreds of 
> servers, and doing duplicate definitions of services wouldn't be the 
> prettiest solution.)
>
>
> Best Regards,
>
> Love Gronvall
> .SE

-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] More than one command defined

2010-11-19 Thread Max Schubert
We went through a couple of rounds of changes with this:
* We first hacked our copy of process_perfdata.pl and added logging to
it, then built a relay to our long term trending data warehouse for
relaying Nagios perfdata to it after allowing PNP to process it for
short term views of the data

Nagios -> PNP NEB -> network -> performance data server -> NPCD queue
-> process_perfdata.pl  -> log -> relay -> network -> data warehouse

* Now we have a POE-based solution in place that processes the
perfdata for PNP and our relay as two data driven events

Nagios -> PNP NEB -> network -> performance data server -> POE server
POE server -> RRD files (replaces npcd and process_perfdata.pl)
POE server -> network -> data warehouse network listener

For both methods we built off of the (at the time very young)
modpnpsender.c NEB module source included with PNP. ; we then migrated
to a NEB modules who's code was based on some NEB code Andreas wrote
that showed how to write to the input of a second external program
over a pipe + an external perl script that relayed the data to the
destination servers over the network (or queued if the network was
down).

Code will be available open source this year for people who are interested.

- Max

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] certain timeperiods for some services on some hosts

2010-11-19 Thread Love Grönvall
I have two hosts; host_a and host_b, both running web servers which are being 
checked by Nagios.

I want workhours notification_period on all services on host_a and host_b apart 
from:
- 24x7 notification_period for http on host_a
- workhours notification_period for http on host_b

Do I need to set up different services for the two different time periods?


The perfect solution for me would be to set up a servicegroup, "24x7-services", 
where I place important services on certain servers. But obviously I can't 
define notification_period for a service group.

How is the best solution to solve this? (It's a setup with hundreds of servers, 
and doing duplicate definitions of services wouldn't be the prettiest solution.)


Best Regards,

Love Gronvall
.SE



PGP.sig
Description: PGP signature
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
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] server profiling options and pre-caching macros

2010-11-19 Thread Andreas Ericsson
On 11/18/2010 11:30 PM, Daniel Wittenberg wrote:
> Watching nagios in debug mode for awhile, made me think about the
> processing of macros and the performance impact.  It seems that for most
> macro's, like user defined ones, they don't change.  So does it really
> make sense to keep processing them over and over and over...could that
> be something that maybe you could do in the pre-cache stage when nagios
> starts.  Would that cause more problems?
> 

That would be an excellent idea. Any chance you could whip up a patch?

If you run
  grep -i -e xxx -e todo */*.c

on latest cvs or git sources, you'll find a few more places where there
are obvious and simple performance improvements to be made.

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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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] hostgroup with no members - Enhancement

2010-11-19 Thread Andreas Ericsson
On 11/18/2010 09:19 PM, Daniel Wittenberg wrote:
> I was curious if we were able to make any progress on getting this patch
> included?
> 

That depends on you, more or less. I'm just waiting for a rerolled one
that's tested with latest CVS head and has the necessary documentation
amendments.

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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
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