Re: [Nagios-users] changing the email message notification content

2013-09-24 Thread Justin Pryzby
On Tue, Sep 24, 2013 at 04:06:28PM -0400, Jonathan Murray wrote:
> I have a user that's asked that when the check_proc notification emails
> get sent, that they include the output of ps (or something)
> 
> Can someone give me an example of how they've solved this, or an idea on
> how you might solve it?

I have a wrapper around check_procs on some machines, which uses
multi-line output (actually, mine is currently using peformance
output, which is probably wrong).

Something like:
ret=0
check_procs || ret=$?;
ps -eo comm |sort |uniq -c |sort -nr
exit $ret

You can put that in nrpe directly or with a wrapper script.

That shows up in the cgi and in logs, which is nice on its own.

I think you'll likely have to modify your notify command to use
$LONGSERVICEOUTPUT$, and perhaps upgrade NRPE to support long output.

I wouldn't recommend using long output in any command that also sends
text messages.

Another way to implement it is with event handlers; that would send a
separate email (in addition to the notification).

Justin

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Distributed monitoring: central collector doesn't seem to be able to run active checks

2013-08-28 Thread Justin Pryzby
Do you get many of those error messages in the logs at once, or just
one at a time?

Only one thought: what are the permissions on your $USER$ variables?
Nagios on my systems setuid() to nonroot after startup, and if it gets
SIGHUP to reload config, but can't read the file defining $USER*$,
will act strangely.

Justin

On Wed, Aug 28, 2013 at 06:48:09AM -0500, C. Bensend wrote:
> 
> >I'm continuing to iron out the wrinkles with 3.5.1 and distributed
> > monitoring.  I'm using mod_gearman to submit and receive events from
> > two distributed pollers.
> >
> >Every now and again, I'll get something similar in the log on the
> > centralized collecting machine:
> >
> > CRITICAL: Return code of 127 is out of bounds. Make sure the plugin
> > youre trying to run actually exists. (worker: collector.domain.org)
> >
> >To me, that suggests that the collector system didn't get a result
> > for a host or service in a timely manner from one of the polling
> > systems, and so it attempted to run an active check itself.  However,
> > it doesn't seem to be able to, and I don't know why.
> >
> >The collector has the same value for $USER1$, and it has the same
> > set of plugins installed on it:
> >
> > On the collector:
> >
> > grep USER1 etc/resource.cfg
> > $USER1$=/usr/local/nagios/libexec
> >
> > On the two pollers:
> >
> > $USER1$=/usr/local/nagios/libexec
> > $USER1$=/usr/local/nagios/libexec
> >
> >The plugins are installed in identical locations on all three systems,
> > that's enforced via Puppet.  The 'nagios' user can find and run them on
> > the collector:
> >
> > /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
> > NRPE v2.13
> >
> >Now, because this is a distributed setup, the collector system is
> > not configured to run active checks:
> >
> > grep ^execute etc/nagios.cfg
> > execute_service_checks=0
> > execute_host_checks=0
> >
> >... but *obviously* it's trying to.  Is it failing because it's
> > configured to not run them?  If that's the case, the error message is
> > not accurate and should be corrected.  If that's *not* the case, why
> > can't my collector server run an active check when it believes it needs
> > to?
> >
> >I use NConf to generate my configurations, if that matters.  There are
> > a *lot* of hosts/services and quite a few configuration files, so I'm not
> > going to paste a slew of information here.  If I'm missing pertinent
> > information, please let me know exactly what you want to see and I'll
> > get it.
> 
> No one has an idea about this?  And no, Andreas, I can't move to
> 4.0 yet.  ;)
> 
> Thanks!
> 
> Benny
> 
> 
> -- 
> "No matter how tempted I am with the prospect of unlimited power, I
> will not consume any energy field bigger than my head."
>   -- #22 on Peter Anspach's Evil
>  Overlord list
> 
> 
> --
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios check latency

2013-08-20 Thread Justin Pryzby
I would have written: ps -fC nagios3 (but I guess your daemon is
called "nagios").  Note that all the "2ndary" lines are commands being
run (checks, notifications).  This will show only the parent
"scheduler" processes: ps -O ppid -C nagios3 |awk '$2==1'

Justin

On Wed, Aug 21, 2013 at 02:49:27AM +, Muhamad Faiz wrote:
> Hi Justin,
> 
> Is this the right way to check this? I have stop and start back only one line 
> exist now. I'm watching the latency now.
> 
> [root@nagios ~]# ps faux | grep nagios.cfg
> root 21594  0.0  0.0 103244   832 pts/0S+   10:42   0:00  
> \_ grep nagios.cfg
> nagios   29669 52.4 13.6 1677324 1095904 ? Rsl  Aug13 6014:30 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21086  0.3 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21291  0.5 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21293  0.5 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21295  0.5 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21296  0.5 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21338  0.6 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21346  0.4 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21453  1.0 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21519  1.5 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21521  2.0 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21530  2.5 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21538  2.5 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21547  2.0 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21555  1.0 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21579  4.0 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21586  4.0 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21589  4.0 13.6 1677328 1094340 ? S10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios   21591  2.0 13.6 1677324 1094328 ?     R    10:42   0:00  \_ 
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> 
> Regards,
> 
> Faiz
> Monitoring
> 
> 
> -Original Message-
> From: Justin Pryzby [mailto:just...@norchemlab.com] 
> Sent: Tuesday, August 13, 2013 9:51 PM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios check latency
> 
> Could you check that you're not accidentally running 2 nagios daemons?
> 
> On Tue, Aug 13, 2013 at 03:49:19AM +, Muhamad Faiz wrote:
> > Hi guys,
> > 
> > My Nagios setup are having high service check latency.
> > 
> > Check nagios latency result is 240 seconds!
> > 
> > ./check_nagios_latency.sh -w 30 -c 60
> > CRITICAL: Latency at 240.183 seconds!
> > 
> > Modification in my Nagios.cfg file is only as below. Other than this, is 
> > default.
> > 
> > # MODIFIED
> > admin_email=muhamad.f...@asia.xchanging.com
> > admin_pager=muhamad.f...@asia.xchanging.com
> > translate_passive_host_checks=1
> > log_event_handlers=0
> > use_large_installation_tweaks=1
> > enable_environment_macros=0
> > enable_embedded_perl=0
> > use_embedded_perl_implicitly=0
> > max_concurrent_checks=1600
> > service_perfdata_file_processing_command=process-service-perfdata-file
> > -pnp-bulk 
> > host_perfdata_file_processing_command=process-host-perfdata-file-pnp-b
> > ulk
> > service_perfdata_file_processing_interval=60
> > host_perfdata_file_processing_interva

Re: [Nagios-users] Nagios check latency

2013-08-13 Thread Justin Pryzby
Could you check that you're not accidentally running 2 nagios daemons?

On Tue, Aug 13, 2013 at 03:49:19AM +, Muhamad Faiz wrote:
> Hi guys,
> 
> My Nagios setup are having high service check latency.
> 
> Check nagios latency result is 240 seconds!
> 
> ./check_nagios_latency.sh -w 30 -c 60
> CRITICAL: Latency at 240.183 seconds!
> 
> Modification in my Nagios.cfg file is only as below. Other than this, is 
> default.
> 
> # MODIFIED
> admin_email=muhamad.f...@asia.xchanging.com
> admin_pager=muhamad.f...@asia.xchanging.com
> translate_passive_host_checks=1
> log_event_handlers=0
> use_large_installation_tweaks=1
> enable_environment_macros=0
> enable_embedded_perl=0
> use_embedded_perl_implicitly=0
> max_concurrent_checks=1600
> service_perfdata_file_processing_command=process-service-perfdata-file-pnp-bulk
> host_perfdata_file_processing_command=process-host-perfdata-file-pnp-bulk
> service_perfdata_file_processing_interval=60
> host_perfdata_file_processing_interval=60
> status_update_interval=40
> 
> 
> # /usr/local/nagios/bin/nagios -s /usr/local/nagios/etc/nagios.cfg
> 
> Nagios Core 3.5.0
> Copyright (c) 2009-2011 Nagios Core Development Team and Community 
> Contributors
> Copyright (c) 1999-2009 Ethan Galstad
> Last Modified: 03-15-2013
> License: GPL
> 
> Website: http://www.nagios.org
> Timing information on object configuration processing is listed
> below.  You can use this information to see if precaching your
> object configuration would be useful.
> 
> Object Config Source: Config files (uncached)
> 
> OBJECT CONFIG PROCESSING TIMES  (* = Potential for precache savings with 
> -u option)
> --
> Read: 0.415803 sec
> Resolve:  0.006900 sec  *
> Recomb Contactgroups: 0.001862 sec  *
> Recomb Hostgroups:3.819786 sec  *
> Dup Services: 0.637380 sec  *
> Recomb Servicegroups: 3.419804 sec  *
> Duplicate:0.000417 sec  *
> Inherit:  0.013748 sec  *
> Recomb Contacts:  0.00 sec  *
> Sort: 0.00 sec  *
> Register: 0.616385 sec
> Free: 0.029930 sec
>   
> TOTAL:8.962015 sec  * = 7.899897 sec (88.15%) estimated 
> savings
> 
> 
> RETENTION DATA TIMES
> --
> Read and Process: 0.863815 sec
>   
> TOTAL:0.863815 sec
> 
> 
> Timing information on configuration verification is listed below.
> 
> CONFIG VERIFICATION TIMES  (* = Potential for speedup with -x option)
> --
> Object Relationships: 0.080360 sec
> Circular Paths:   0.001152 sec  *
> Misc: 0.011244 sec
>   
> TOTAL:0.092756 sec  * = 0.001152 sec (1.2%) estimated savings
> 
> 
> EVENT SCHEDULING TIMES
> -
> Get service info:0.051265 sec
> Get host info info:  0.032301 sec
> Get service params:  0.10 sec
> Schedule service times:  0.002476 sec
> Schedule service events: 0.002514 sec
> Get host params: 0.00 sec
> Schedule host times: 0.000937 sec
> Schedule host events:0.001287 sec
>  
> TOTAL:   0.090790 sec
> 
> 
> Projected scheduling information for host and service checks
> is listed below.  This information assumes that you are going
> to start running Nagios with your current config files.
> 
> HOST SCHEDULING INFORMATION
> ---
> Total hosts: 11753
> Total scheduled hosts:   7
> Host inter-check delay method:   SMART
> Average host check interval: 300.00 sec
> Host inter-check delay:  42.86 sec
> Max host check spread:   30 min
> First scheduled check:   Tue Aug 13 11:43:54 2013
> Last scheduled check:Tue Aug 13 11:43:54 2013
> 
> 
> SERVICE SCHEDULING INFORMATION
> ---
> Total services: 18662
> Total scheduled services:   170
> Service inter-check delay method:   SMART
> Average service check interval: 535.76 sec
> Inter-check delay:  3.15 sec
> Interleave factor method:   SMART
> Average services per host:  1.59
> Service interleave factor:  1
> Max service check spread:   30 min
> First scheduled check:  Tue Aug 13 11:52:49 2013
> Last scheduled check:   Tue Aug 13 11:58:39 2013
> 
> 
> CHECK PROCESSING INFORMATION
> 
> Check result reaper interval:   10 sec
> Max concurrent service checks:  1600
> 
> 
> PERFORMANCE SUGGESTIONS
> ---
> I have no suggestions - things look okay.
> 
> Any advice will be much appreciated.
> 
> Regards,
> Faiz
> "CONFIDENTIALITY NOTICE: This message and any attachment are confidential and 
> may also be privileged. If yo

Re: [Nagios-users] Public page

2011-08-09 Thread Justin Pryzby
Can you use cgi.cfg:authorized_for_read_only for that?

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

Justin

On Sat, Aug 06, 2011 at 06:22:20PM -0300, Diogo Melo wrote:
> I would like to use nagios to monitor a few sites I have. But I want to have
> a public page where I can show the high service availability I'm getting.
> Is there something ready to use that matches with what I want? A way to show
> a few results without give any manage control.

--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] event handler command not executing

2010-03-08 Thread Justin Pryzby
4th guess: is it executable?

Justin

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] FW: Nagios 3.0.5 problem

2010-02-01 Thread Justin Pryzby
> > One additional data point:  I found on Saturday night, as I logged in to 
> > restart Nagios and
> > prevent the machine dying, that the one file in 
> > /ramdisk_nagios/checkresults/ was over
> > 1MB.  Every other time I have checked, the files in there are sub-4kB.  If 
> > that tells
> > anyone here anything, please share with the peanut gallery (me!).  :)
> 
> 1MB sounds very large; if you see it again, try finding out which
> check generated this file (core or debug dump from check code ?).
I can't resist the temptation to suggest writing a test for that,
something like:

nrpe.cfg:
command[bigresult]=find /dir -mindepth 1 -maxdepth 1 -size +1k |xargs |grep . 
&& exit 2; echo OK; exit 0

Justin

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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] best expression of a timeperiod with same hours every day

2010-01-24 Thread Justin Pryzby
Is there a shorter way of expressing this?  We have several cases
where we need this, with different intervals.  I was hoping there was
a way of writing it in fewer than 10 lines each.

define timeperiod {
sunday  04:00-21:00
monday  04:00-21:00
tuesday 04:00-21:00
wednesday   04:00-21:00
thursday04:00-21:00
friday  04:00-21:00
saturday04:00-21:00
}

Thanks,
Justin

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nrpe producing odd garbage in output?

2009-12-14 Thread Justin Pryzby
On Mon, Dec 14, 2009 at 05:25:04PM -0800, Andy Moran wrote:
> 
> Run remotely, odd garbage returned:
> 
> obfuscatedserver:~ amoran$ sudo -u nagios 
> /opt/local/libexec/nagios/check_nrpe -H obfuscatedclient -c check_load -a 
> 5.0,4.0,3.0 20.0,15.0,10.0
> WARNING - load average: 5.28, 5.00, 4.78|load1=5.285;5.000;20.000;0; 
> load5=5.003;4.000;15.000;0; load15=4.785;3.000;10.000;0; 
> ¿R[àhäì+ã
> obfuscatedserver:~ amoran$ 
> 
> run locally, no garbage:
> 
> obfuscatedclient:~ amoran$ sudo -u nagios 
> /opt/local/libexec/nagios/check_load -w 5.0,4.0,3.0 -c 20.0,15.0,10.0
> WARNING - load average: 4.46, 4.77, 4.74|load1=4.461;5.000;20.000;0; 
> load5=4.774;4.000;15.000;0; load15=4.735;3.000;10.000;0; 
> obfuscatedclient:~ amoran$ 
> 
> 
> So it would seem the garbage is coming from nrpe.  I've compiled nrpe using 
> 2.8.1 and it's running on Snow Leopard (OS X 10.6).  Anyone seen anything 
> like this?
Yes, I noticed it in the web interface, and hadn't gotten around to
digging into it.  Thanks for bringing it up.

It seems that upgrading to 2.12 will resolve it:

2.12 - 03/10/2008
-
- Fix for unterminated multiline plugin (garbage) output (Krzysztof Oledzki)

Justin

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios3 problem in debian lenny

2009-10-15 Thread Justin Pryzby
On Thu, Oct 15, 2009 at 04:19:17PM +0200, Joseph Lundback wrote:
> 
> > Dear all ,
> >
> > started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after
> > successfully authentication ( by htpassd file ) nagios reports
> >
> > ``
> > *Error: Could not read object configuration data!
> 
> I'm no Nagios guru, just a novice nagios user.
> But I've gotten that error message when I've had permission issues.
See /u/s/doc/nagios3/README.Debian.

Justin

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] Query regarding Nagios notification

2009-10-13 Thread Justin Pryzby
On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote:
> Hi,
> 
> We have a Nagios server that monitors around 300 production servers
> and around 2000+ services on all these servers. Recently, when the
> STATE of one of the services on a particular host turned HARD, but
> Nagios didn't NOTIFY. So I am just trying to understand why it didn't
> notify. Here's more information regarding the configuration:
Was the service flapping?

Justin

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 "clock" way off

2009-10-11 Thread Justin Pryzby
On Sun, Oct 11, 2009 at 10:49:15AM -0400, Kyle Tucker wrote:
> On Sun, Oct 11, 2009 at 07:34:39AM -0700, Justin Pryzby wrote:
> > On Sun, Oct 11, 2009 at 07:30:19AM -0400, Kyle Tucker wrote:
> > > 
> > > check until October of 2014!. I saw this for all services
> > > with the last check having been the same year. The system
> > > clock is definitely correct. Once I force a service check,
> > Can you check nagios.log and see if the wrong time exists there, and
> > when it started?  I wonder if your battery is dead, and nagios was
> > started (during the last boot) before NTP, or otherwise before NTP did
> > its "one time sync" (ntp -g).
> > 
> > Under linux, convert from "epoch" time like: date -d @1255244400
> 
> Thanks Justin,
> 
> All times in nagios.log convert to the current dates and the event log is 
> current as well.
Just to be sure, is that true for the earliest lines at midnight the
day you discovered the problem?

[1255244400] LOG ROTATION: DAILY
just...@charcoal:~$ date -d @1255244400
Sun Oct 11 00:00:00 MST 2009

Justin

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 "clock" way off

2009-10-11 Thread Justin Pryzby
On Sun, Oct 11, 2009 at 07:30:19AM -0400, Kyle Tucker wrote:
> Hi all,
> 
> check until October of 2014!. I saw this for all services
> with the last check having been the same year. The system
> clock is definitely correct. Once I force a service check,
Can you check nagios.log and see if the wrong time exists there, and
when it started?  I wonder if your battery is dead, and nagios was
started (during the last boot) before NTP, or otherwise before NTP did
its "one time sync" (ntp -g).

Under linux, convert from "epoch" time like: date -d @1255244400

Justin

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] monitor windows service with "$"

2009-10-07 Thread Justin Pryzby
On Wed, Oct 07, 2009 at 09:39:55AM -0500, Marc Powell wrote:
> > It looks like it cuts off everything behind the $.
> > Anybody have an idea?
> 
> I expect that the shell is interpreting $DB as a shell variable. Try  
> using 'service$DB' or "service\$DB".
Also NRPE requires $ to be spelled $$ to be interpretted literally.

Justin

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] escalation for receiving only recovery events?

2009-10-04 Thread Justin Pryzby
A coworker wants to receive periodic notifies for failing services,
and I want to receive only the first one.  I can implement that using
an "inverted" escalation (removing me from the notify list at the 2nd
notification).

However I *do* want to receive recovery events, even if they're after
the 2nd notification.  Is that configuration possible?

Justin

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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] how to use multiple contact addresses

2009-09-29 Thread Justin Pryzby
I wrote last week but wanted to rephrase my question more clearly.

How does one make use of multiple contact addresses?  
email,pager,$CONTACTADDRESS[0-6]$ exist, but is it somehow possible to
cause an escalation (or ??) to use a different notification command,
and thusly a different contact address?  If not, what's the point of
having multiple contact addresses anyway?

Thanks,
Justin

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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] Monitoring Open Ports

2009-09-29 Thread Justin Pryzby
On Tue, Sep 29, 2009 at 02:51:07PM -0500, Matt Baer wrote:
> Is there a way that Nagios can monitor open ports, even if there
> isn't anything listening on the destination? I'd like to monitor my
> open ports on my firewall JUST to make sure they're open. I would
> just specify the port with the normal Nagios command and point it at
> my public IP address, but obviously, the check will fail unless
> something is listening on the other end. Basically I want to port
> scan specific ports. Any ideas? 
Can you use check_tcp for this?  Otherwise I would write a wrapper
around nmap:

 ! nmap -oG - -p 22 localhost |cut -sd/ -f2 |grep -Fxvw open

Justin

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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] Using Nagios W/O loging in

2009-09-23 Thread Justin Pryzby
On Wed, Sep 23, 2009 at 12:25:37PM -0400, stan wrote:
> I had a contractor set up nagios for use in monitoring machines on our
> internal network. One of the punch list items that he left undone was to
> defeat the requirment that users log in to allow them to access nagios. 
> 
> This is an internal deploymnet, and I really don't want the users to have
> to do this to use this system.
> 
> How can I cahnge this behavior?
Can you use default_user_name=guest ?

Justin

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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] Object Definitions with Multiple Templates

2009-09-23 Thread Justin Pryzby
On Wed, Sep 23, 2009 at 11:05:11AM -0400, Tata, Joseph wrote:
> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html indicates
> this should be possible, and that the resulting object should have
> properties of both hosts, but something isn't working.  Am I not
> defining something correctly or is this possibly a bug/documentation
> error?
What version of nagios are you running?

Justin

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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] notify servicegroup escalation without duplicate contacts

2009-09-23 Thread Justin Pryzby
I'm looking for a way of effectively using multiple contacts each with
multiple contact addresses.  I was hoping to do something like:

define contact {
servicegroups   important
notification_commandby-email
contact_groups  g
}

define serviceescalation {
servicegroupimportant
notification_commandby-textmessage
contact_groups  g
}

define serviceescalation {
servicegroupimportant
notification_commandby-phone
contact_groups  g
}

define command {
nameby-email
command echo ... |mail -s ... "$CONTACTEMAIL$"
}

define command {
nameby-textmessage
command echo ... |mail -s ...  
"$CONTACTADDRESS2$"
}

define command {
nameby-phone
command echo ... 
|/usr/local/sbin/asterisk-callfile ... "$CONTACTADDRESS2$"
}

However, service escalations don't accept any notification_command.

It's possible to get the desired behavior with multiple logical
contact definitions per person (perhaps using templates to avoid
duplicating their name, etc.) and creating a group for each
notification command, but I wanted to ask if anyone has a better way
of using multiple addresses? 

Thanks,
Justin

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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