Re: [Nagios-users] DNS check - please help

2011-07-18 Thread Nibin V M
Hello,

Thanks to all. After a tcpdump, I can confirm that it query the name servers
in resolv.conf after the -s server.

@Mathew, hope you will share it with us soon :)

On Mon, Jul 18, 2011 at 11:27 PM, Matthew Pounsett wrote:

>
> On 2011/07/18, at 13:45, Joerg Linge wrote:
>
> >> The behaviour of nslookup is pretty terrible... it's not really
> advisable to use it for any DNS diagnostics.  I'm working on a replacement
> for check_dns which does its own DNS work rather than relying on shelling
> out to something else... unfortunately, I'm not much of a C coder, so it's
> in Perl.  If I can get permission from my boss I'll share it back to the
> community as a replacement for what's there now.
> >
> > i use check_dig for years now.
>
> Yep, check_dig is much, MUCH better, but having to fork() out again to call
> dig bugs me on a philosophical level, and is death to a nagios server that's
> mostly monitoring DNS services.  Plus, there are some additional things I'd
> like to do in my checks that don't seem possible using check_dig.
>
>
>
>
> --
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> ___
> 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
>



-- 
Regards,
Nibin.
-
Nibin.V.M
Systems Integrator
PiServe.com
--
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/___
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] compiling for solaris 10

2011-07-18 Thread DA VILA, LUCAS (LUCAS)
Thanks!
Gonna try.

Regards

Lucas
-Mensaje original-
De: Yueh-Hung Liu [mailto:yuehung@gmail.com] 
Enviado el: Viernes, 08 de Julio de 2011 21:46
Para: Nagios Users List
Asunto: Re: [Nagios-users] compiling for solaris 10

solaris 10 has some utilities from www.sunfreeware.com, include gnu cc
(gcc) and gnu make (gmake).
check the /usr/sfw/bin folder and try with these gnu stuff again.


On Sat, Jul 9, 2011 at 5:45 AM, DA VILA, LUCAS (LUCAS)
 wrote:
> Hi users,
>
> I'm trying to compile NPRE and de nagios plugins on a Sun/SPARC Solaris 10 
> server.
>
> I've managed to compile and install NPRE modifying a little de source, and 
> disabling SSL.
> But when I want to compile de nagios plugins an error occurs with the linker.
>
> I'm compiling nrpe-2.12.tar.gz nagios-plugins-1.4.11.tar.gz with cc the 
> default compiler on our system (no GCC)
>
> This is the output running a make in 'plugins' folder
>
> root@ALUSPARC02$ make
> /bin/bash ../libtool --tag=CC --mode=link cc  -g   -L. -o check_apt  
> check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl 
> -lsocket
> cc -g -o check_apt check_apt.o utils.o runcmd.o  
> -L/users/adsl/nagios-plugins-1.4.11/plugins ../lib/libnagiosplug.a 
> ../gl/libgnu.a -lnsl -lsocket
> Undefined                       first referenced
>  symbol                             in file
> floor                               check_apt.o
> ld: fatal: Symbol referencing errors. No output written to check_apt
> *** Error code 1
> make: Fatal error: Command failed for target `check_apt'
>
> I've tried to remove check_apt from the make file, but the error repeats with 
> another check_* (check_cluster, check_disk)
>
> Also run the isolated command
> root@ALUSPARC02$ cc -g -o check_apt check_apt.o utils.o runcmd.o
> Undefined                       first referenced
>  symbol                             in file
> die                                 check_apt.o
> floor                               check_apt.o
> rpl_getopt_long                     check_apt.o
> rpl_optarg                          check_apt.o
> rpl_regfree                         check_apt.o
> rpl_regexec                         check_apt.o
> rpl_regcomp                         check_apt.o
> asprintf                            utils.o
> rpl_regerror                        check_apt.o
> ld: fatal: Symbol referencing errors. No output written to check_apt
>
> I've search on google about this and found some pages, but didn't get errors 
> with the compilation of the plugins.
> Anyone have an idea with this error?
>
> Thanks in advance,
> Best regards
>
> Lucas
>
>
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> 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
>

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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

--
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
___
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] DNS check - please help

2011-07-18 Thread Matthew Pounsett

On 2011/07/18, at 13:45, Joerg Linge wrote:

>> The behaviour of nslookup is pretty terrible... it's not really advisable to 
>> use it for any DNS diagnostics.  I'm working on a replacement for check_dns 
>> which does its own DNS work rather than relying on shelling out to something 
>> else... unfortunately, I'm not much of a C coder, so it's in Perl.  If I can 
>> get permission from my boss I'll share it back to the community as a 
>> replacement for what's there now.
> 
> i use check_dig for years now.

Yep, check_dig is much, MUCH better, but having to fork() out again to call dig 
bugs me on a philosophical level, and is death to a nagios server that's mostly 
monitoring DNS services.  Plus, there are some additional things I'd like to do 
in my checks that don't seem possible using check_dig.



--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] different escalation intervals possible?

2011-07-18 Thread Paul M. Dubuc
Michael Barrett wrote:
> Hi - I am trying to get alerts for my services to work like this:
>
> - all alerts (warning, critical, unknown, and recovery) go to the
> 'email-ops' contact every 2 hours - on some services (the ones deemed
> critical) in addition I want them to send an email to the 'primary-pager'
> contact every 15 minutes
>
> I thought I had the configuration setup appropriately for this, but now I'm
> not sure it's possible without a better understanding of how escalations
> work (and it may not even be possible then) since I read this about
> overlapping escalations:
>
> "Since it is possible to have overlapping escalation definitions for a
> particular hostgroup or service, and the fact that a host can be a member
> of multiple hostgroups, Nagios has to make a decision on what to do as far
> as the notification interval is concerned when escalation definitions
> overlap. In any case where there are multiple valid escalation definitions
> for a particular notification, Nagios will choose the smallest notification
> interval."
>
> Anyway, is there anyway to make that work?  The way its working now is that
> it seems to email the email-ops list every 15 minutes on critical services,
> and for email we'd like to get less alerts.
>
> Thanks in advance!
>

I don't think this can be done with escalations.  If Assaf has a way to do it, 
I'd be very interested.  Like the documentation says, any notification that 
matches multiple escalations can only have one notification interval and it 
chooses the smallest.  The way we get around the problem is to put a wrapper 
around the email notification command so that it only sends the first 
notification of a state change.  This is what it looks like:

define command{
 command_namenotify-host-by-email
 command_line\
 if [ $HOSTNOTIFICATIONNUMBER$ -le 1 -o $HOSTSTATEID$ -ne 
$LASTHOSTSTATEID$ ]$USER9$ then \
 /usr/bin/printf "%b\n\n--" \
 "* Nagios *\n\n\
Notification Type: $NOTIFICATIONTYPE$  Number: $HOSTNOTIFICATIONNUMBER$\n\n\
host=$HOSTNAME$\n\n\
Host: $HOSTNAME$\n\
Address: $HOSTADDRESS$\n\
State: $HOSTSTATE$\n\
Last State: $LASTHOSTSTATE$\n\
Info: $HOSTOUTPUT$\n\n\
$LONGHOSTOUTPUT$\n\n\
Date/Time: $LONGDATETIME$\n\n\
Comment: $NOTIFICATIONCOMMENT$" \
 | /usr/bin/mail -r nagios -s \
 "** Nagios $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is 
$HOSTSTATE$ **" $CONTACTEMAIL$ \
 $USER9$\
 fi
 }

The $USER9$ macro is defined as a semicolon ';' to keep it from being 
interpreted as the start of a comment. The command for service e-mail 
notifications looks similar.  So, for e-mail notifications, it doesn't matter 
what the interval is.  Only one e-mail will actually be sent per state change.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] DNS check - please help

2011-07-18 Thread Joerg Linge
Matthew Pounsett schrieb:
> On 2011/07/18, at 11:37, James Pratt wrote:
>
>> This plugin uses the nslookup program to obtain the IP address for the given 
>> host/domain query.
>> An optional DNS server to use may be specified.
>> If no DNS server is specified, the default server(s) specified in 
>> /etc/resolv.conf will be used.
>
> The behaviour of nslookup is pretty terrible... it's not really advisable to 
> use it for any DNS diagnostics.  I'm working on a replacement for check_dns 
> which does its own DNS work rather than relying on shelling out to something 
> else... unfortunately, I'm not much of a C coder, so it's in Perl.  If I can 
> get permission from my boss I'll share it back to the community as a 
> replacement for what's there now.

i use check_dig for years now.

Joerg

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] AUTO: Chan, Brian is out of the office. (returning 19/07/2011)

2011-07-18 Thread Brian Chan

I am out of the office until 19/07/2011.

I will respond to your message when I return.


Note: This is an automated response to your message  "Nagios-users Digest,
Vol 62, Issue 13" sent on 7/18/2011 12:14:29.

This is the only notification you will receive while this person is away.


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] DNS check - please help

2011-07-18 Thread Matthew Pounsett

On 2011/07/18, at 11:37, James Pratt wrote:

> This plugin uses the nslookup program to obtain the IP address for the given 
> host/domain query.
> An optional DNS server to use may be specified.
> If no DNS server is specified, the default server(s) specified in 
> /etc/resolv.conf will be used.

The behaviour of nslookup is pretty terrible... it's not really advisable to 
use it for any DNS diagnostics.  I'm working on a replacement for check_dns 
which does its own DNS work rather than relying on shelling out to something 
else... unfortunately, I'm not much of a C coder, so it's in Perl.  If I can 
get permission from my boss I'll share it back to the community as a 
replacement for what's there now.




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] different escalation intervals possible?

2011-07-18 Thread Michael Barrett
Thanks Assaf.  It's a little complicated, but here's my config for a 'critical 
service':

### First my escalation definitions:

define serviceescalation {
namepage-primary
first_notification  1
last_notification   0
notification_interval   15
contact_groups  primarypager
servicegroup_name   critical-services
}

define serviceescalation {
namepage-secondary
first_notification  3
last_notification   0
notification_interval   15
contact_groups  secondarypager
servicegroup_name   critical-services
}

define serviceescalation {
nameemail-ops
first_notification  1
last_notification   0
notification_interval   120
contact_groups  ops-group
servicegroup_name   critical-services
}

 Now my contact groups

define contactgroup {
contactgroup_name   ops-group
alias   Operations People
}

define contactgroup {
contactgroup_name   primarypager
alias   Primary Pager
}

define contactgroup {
contactgroup_name   secondarypager
alias   Secondary Pager
}

 Now a pair of example contacts (and templates) that tie into those groups
define contact {
namegeneric-contact
host_notification_period24x7
service_notification_period 24x7
host_notifications_enabled  0
host_notification_options   d,u,r
service_notification_optionsu,c,w,r
host_notification_commands  host-notify-by-email
service_notification_commands   service-notify-by-email
register0
can_submit_commands 1
}

# pager template
define contact {
namepager-template
use generic-contact
host_notification_options   d,u
service_notification_optionsu,c
host_notification_commands  host-notify-by-epager
service_notification_commands   service-notify-by-epager
register0
}

define contact {
nameops-contact
contactgroups   ops-group
use generic-contact
register0
}

define contact {
contact_namemb
alias   Michael Barrett
use ops-contact
email   lok...@gmail.com
}

define contact {
contact_namemb-phone
alias   Mike Phone
contactgroups   primarypager
use pager-template
email   @mms.att.net
}

  Now the servicegroup for critical-services
define servicegroup {
servicegroup_name   critical-services
alias   Services that should page
}

 And finally a service that is in critical services (and its template)
define service {
namegeneric-service
is_volatile 0
check_period24x7
max_check_attempts  3
normal_check_interval   5
retry_check_interval1
active_checks_enabled   1
passive_checks_enabled  1
parallelize_check   0
obsess_over_service 1
check_freshness 0
notifications_enabled   1
notification_interval   120
notification_period 24x7
notification_optionsu,c,w,r
event_handler_enabled   1
flap_detection_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
contact_groups  ops-group
register0
}


define service {
use generic-service
service_description puppet last run
check_command   check_puppet
hostgroup_name  all_hosts,!virtual-hosts
servicegroups   critical-services
}


##

Let me know if you have any questions, and thanks again!

On Jul 18, 2011, at 2:56 AM, Assaf Flatto wrote:

> Michael Barrett wrote:
>> Hi - I am trying to get alerts for my services to work like this:
>> 
>> - all alerts (warning, critical, unknown, and recovery) go to the 
>> 'email-ops' contact every 2 hours 
>> - on some services (the ones deemed critical) in addition I want them to 
>> send an email to the 'primary-pager' contact every 15 minutes
>> 
>> I thought I had the configuration setup appropriately for this, but now I'm 
>> not sure it's possible without a better understanding of how escalations 
>> work (and it may not even be possible then) since I read this about 
>> overlapping escalations:
>> 
>> "Since it is possible to have overlapping escalation definitions for a 
>> particular hostgroup or service, and the fact that a host can be a member of 
>> multiple hostgroups, Nagios has to make a decisi

Re: [Nagios-users] DNS check - please help

2011-07-18 Thread James Pratt
The help for the plugin says -

./check_dns --help

check_dns v1.4.15 (nagios-plugins 1.4.15)
Copyright (c) 1999 Ethan Galstad 
Copyright (c) 2000-2008 Nagios Plugin Development Team


This plugin uses the nslookup program to obtain the IP address for the given 
host/domain query.
An optional DNS server to use may be specified.
If no DNS server is specified, the default server(s) specified in 
/etc/resolv.conf will be used.


(Based on your stated result(s), I must assume that if the "specified server" 
fails, it probably defaults to /etc/resolv.conf, but I'd probably have to fire 
up wireshark/tshark to find out for sure)...

Cheers,
James

From: Nibin V M [mailto:nibin...@piserve.com]
Sent: Monday, July 18, 2011 10:55 AM
To: Nagios Users List
Subject: [Nagios-users] DNS check - please help

Hello,

I am a bit lost to find how the check_dns works. Please see the results below.

# ./check_dns -H google.com --server=myserver.
DNS OK: 0.011 seconds response time. google.com returns 
74.125.93.103,74.125.93.104,74.125.93.105,74.125.93.106,74.125.93.147,74.125.93.99|time=0.011378s;;;0.00

# dig +short google.com @myserver
#

I am sure that recursion isn't enabled on "myserver". Do the plugin try to 
resolve google.com using the name servers specified 
resolv.conf, if the -s server doesn't provide any answer?

Thanks in advance.

Regards,
Nibin.
-
Nibin.V.M
Systems Integrator
PiServe.com

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
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] DNS check - please help

2011-07-18 Thread Nibin V M
Hello,

I am a bit lost to find how the check_dns works. Please see the results
below.

# ./check_dns -H google.com --server=myserver.
DNS OK: 0.011 seconds response time. google.com returns
74.125.93.103,74.125.93.104,74.125.93.105,74.125.93.106,74.125.93.147,74.125.93.99|time=0.011378s;;;0.00

# dig +short google.com @myserver
#

I am sure that recursion isn't enabled on "myserver". Do the plugin try to
resolve google.com using the name servers specified resolv.conf, if the -s
server doesn't provide any answer?

Thanks in advance.

Regards,
Nibin.
-
Nibin.V.M
Systems Integrator
PiServe.com
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
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] Fwd: parameter starting with dollar sign

2011-07-18 Thread Jim Avery
On 18 July 2011 14:37, Frank Van Damme  wrote:
> I was hoping for some generic escaping rules :)



If only!  I usually end up using a generous portion of trial-and-error
to find something that works.  Sometimes you have to escape the escape
characters that will be used further down the chain.


The most egregious example of multiple escapgin in my configs at the
moment looks like this:

  check_nrpe!-c CheckFile -a MinWarn=0 filter-written=\\<8d
file=D:directorysubdirectory\\*.\\*


In another example, I set the $USER10$ macro in resource.cfg to
contain a single semi-colon like so:

  #  Set this macro to contain a semi-colon so we can use it as a
command separator.
  $USER10$=;

And that's just so that it can then be used in an action_url directive
pointing to a DRRAW graph like so:

  action_url
http://nagios/drraw-pnp/index.cgi?Mode=view;$USER10$Graph=1281540323.16309

Of course the ; also translates to a semi-colon.  I can't remember
why I have both in there, but it works!

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] Fwd: parameter starting with dollar sign

2011-07-18 Thread Frank Van Damme
2011/7/18 Michael Friedrich :
> you didn't mention that in the first place. w/o any examples it will be
> hard to guess.

true. I was hoping for some generic escaping rules :)
dollars at the start have a meaning.

-- 
Frank Van Damme
No part of this copyright message may be reproduced, read or seen,
dead or alive or by any means, including but not limited to telepathy
without the benevolence of the author.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] Fwd: parameter starting with dollar sign

2011-07-18 Thread Michael Friedrich
Frank Van Damme wrote:
> Op 18-07-11 10:16, Michael Friedrich schreef:
>> Frank Van Damme wrote:
>>> (Sorry for possible reposts. I'll stop reposting the day Gmane actually
>>> works).
>>>
>>> Does anybody know how to use a parameter to a check command that starts
>>> with a dollar sign? Nagios interprets the dollar as if I want to
>>> substitute the variable with a macro. I tried escaping, but then I get a
>>> literal \ backslash.
>> try $$ for an escaped dollar char, like described in the docs.
> It gets difficult when your value is from a macro and starts with a
> couple dollar signs though.

you didn't mention that in the first place. w/o any examples it will be 
hard to guess.

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core&  IDOUtils Developer
http://www.icinga.org


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] Fwd: parameter starting with dollar sign

2011-07-18 Thread Frank Van Damme
Op 18-07-11 10:16, Michael Friedrich schreef:
> Frank Van Damme wrote:
>> (Sorry for possible reposts. I'll stop reposting the day Gmane actually
>> works).
>>
>> Does anybody know how to use a parameter to a check command that starts
>> with a dollar sign? Nagios interprets the dollar as if I want to
>> substitute the variable with a macro. I tried escaping, but then I get a
>> literal \ backslash.
> 
> try $$ for an escaped dollar char, like described in the docs.

It gets difficult when your value is from a macro and starts with a
couple dollar signs though.


-- 
No part of this copyright message may be reproduced, read or seen,
dead or alive or by any means, including but not limited to telepathy
without the benevolence of the author.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] different escalation intervals possible?

2011-07-18 Thread Assaf Flatto
Michael Barrett wrote:
> Hi - I am trying to get alerts for my services to work like this:
>
> - all alerts (warning, critical, unknown, and recovery) go to the 'email-ops' 
> contact every 2 hours 
> - on some services (the ones deemed critical) in addition I want them to send 
> an email to the 'primary-pager' contact every 15 minutes
>
> I thought I had the configuration setup appropriately for this, but now I'm 
> not sure it's possible without a better understanding of how escalations work 
> (and it may not even be possible then) since I read this about overlapping 
> escalations:
>
> "Since it is possible to have overlapping escalation definitions for a 
> particular hostgroup or service, and the fact that a host can be a member of 
> multiple hostgroups, Nagios has to make a decision on what to do as far as 
> the notification interval is concerned when escalation definitions overlap. 
> In any case where there are multiple valid escalation definitions for a 
> particular notification, Nagios will choose the smallest notification 
> interval."
>
> Anyway, is there anyway to make that work?  The way its working now is that 
> it seems to email the email-ops list every 15 minutes on critical services, 
> and for email we'd like to get less alerts.
>
> Thanks in advance!
>
> --
> Michael Barrett
> lok...@gmail.com
>   
The short answer is , Yes .

if you share your configuration we might also be able to give tips and 
pointers on what needs to be modified.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] Fwd: parameter starting with dollar sign

2011-07-18 Thread Michael Friedrich
Frank Van Damme wrote:
> (Sorry for possible reposts. I'll stop reposting the day Gmane actually
> works).
>
> Does anybody know how to use a parameter to a check command that starts
> with a dollar sign? Nagios interprets the dollar as if I want to
> substitute the variable with a macro. I tried escaping, but then I get a
> literal \ backslash.

try $$ for an escaped dollar char, like described in the docs.


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core&  IDOUtils Developer
http://www.icinga.org


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] Invitation to connect on LinkedIn

2011-07-18 Thread Hui Li via LinkedIn
LinkedIn





Hui Li requested to add you as a connection on LinkedIn:
  
--

Lei,

I'd like to add you to my professional network on LinkedIn.

- Hui

Accept invitation from Hui Li
http://www.linkedin.com/e/y49s6u-gq95p75e-6x/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1526333492_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnP8Vd3cPcPoOdj59bSJguBhRtkYSbPAScj8TdjoSdjcLrCBxbOYWrSlI/EML_comm_afe/

View invitation from Hui Li
http://www.linkedin.com/e/y49s6u-gq95p75e-6x/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1526333492_3/3dvczAQcPcPdz8RckALqnpPbOYWrSlI/svi/
 
--

DID YOU KNOW that LinkedIn can find the answers to your most difficult 
questions? Post those vexing questions on LinkedIn Answers to tap into the 
knowledge of the world's foremost business experts: 
http://www.linkedin.com/e/y49s6u-gq95p75e-6x/ask/inv-23/

 
-- 
(c) 2011, LinkedIn Corporation--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
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] Fwd: parameter starting with dollar sign

2011-07-18 Thread Frank Van Damme
(Sorry for possible reposts. I'll stop reposting the day Gmane actually
works).

Does anybody know how to use a parameter to a check command that starts
with a dollar sign? Nagios interprets the dollar as if I want to
substitute the variable with a macro. I tried escaping, but then I get a
literal \ backslash.

-- 
No part of this copyright message may be reproduced, read or seen,
dead or alive or by any means, including but not limited to telepathy
without the benevolence of the author.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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