Re: [Nagios-users] all notifications failing

2010-04-16 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 16/04/10 09:49 AM, Scott, Ewan wrote:
> Hi
> 
>  [...]
> 
> # su - nagios
> 
> $ /usr/bin/printf "%b" "* Nagios *\nNotification " |
> /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: 
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" ewsc...@scotborders.gov.uk
> 
> mail: Cannot open temporary file: Permission denied
> 
> Cannot open temporary file

Use strace to find out what fails. strace will print all syscalls used
by the traced program and wou will see which one (including parameters)
failed.


Don't forget to trace the mail program, not printf. i.e.:

> $/usr/bin/printf "%b" "* Nagios *\nNotification " | strace
> /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert:
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
ewsc...@scotborders.gov.uk 2>/tmp/mail_trace.log


Here I added "strace" before "/usr/bin/mail" and redirected stderr to
"/tmp/mail_trace.log". Then you can look at "/tmp/mail_trace.log" for
something like a failed open() call or for ENOPERM. The argument to the
failed call should indicate which file failed.


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

iD8DBQFLyS0X6dZ+Kt5BchYRAgeuAJ46zQNJ+mdWLj94agD1qihi/pvZ1QCdGvlj
gUs8215gRrSW21kl3wDq9CY=
=o+AZ
-END PGP SIGNATURE-

--
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] Designing distributed and failover architecture

2010-04-16 Thread shadih rahman
I have not implemented distributed nagios but I have failover setup.  Few
comments I want to make

1) If you are using ndoutils for backend make sure you have looked at faster
speed up option.  There is a patch for faster start up in opsview

2) if you using nsca to transfer acknowledgement and comments make sure you
do some research on that.  scalability is a problem

3) remember to understand failover architecture properly.  I have made few
mistakes when it comes to ndoutils.  your ndomod data processing option
should be different on the failover from master server.  Your master should
push configuration definitions into database but your failover should not
push theses configuration defitions in database.

4) Keep in mind scalability will be a problem.  data retention is really a
difficult problem for large setup.




On Sat, Apr 10, 2010 at 10:44 AM, Shanti Katta wrote:

> Need suggestions on designing a distributed and failover Nagios monitoring
> infrastructure for ~1500 Linux RHEL hosts spread across 2 datacenters and
> DMZ networks.
> Reading through different archives, it appears DNX is the most preferred
> method for distribution/cluster setup and having a secondary Nagios server
> as a fail over option managed via Linux HA/DRBD.
> What are some of the cons in following setup:
>
> - Primary and secondary(failover) Nagios servers managed by Linux
> HA/DRBD/cron etc. Have MySQL replication between them.
> - Primary Nagios server performing active checks via N DNX worker nodes in
> both datacenters.
> - Primary Nagios server monitoring DMZ hosts via NRPE (Custom regular
> expression for services).
>
> Thanks
>
>
> --
> 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
>



-- 
Cordially,
Shadhin Rahman
--
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] Return Code of 4

2010-04-16 Thread Weiner, Michael
-Original Message-
From: Andreas Ericsson [mailto:a...@op5.se] 

On 04/15/2010 10:32 PM, Weiner, Michael wrote:
> 
> $USER1$/check_pool my-backup-server 100 20 Scratch ALL
> 
> The check_pool script simply users vmquery via sudo in order to
elevate
> the nagios users' rights to be that of root and run the appropriate
> command:
> 
> sudo -u nagios /usr/local/openv/volmgr/bin/vmquery -h my-backup-server
> -b -pn Scratch
> 
> Running this at the command line (even as user nagios) succeeds and
> gives me
> 
> Scratch OK : available tapes 121|Scratch=121;100;20
> 
> However once I add this as a service check to nagios I receive the
> following:
> 
> Warning: Return code of 4 for check of service 'Scratch_Pool_Check' on
> host 'my-backup-server' was out of bounds.
> 

Try this from your Nagios server:

true; echo $?
false; echo $?

Those are return codes. A numerical value the running program sets for
the master program to reap. The textual output has absolutely nothing
to do with that return code.

If you run the check exactly like Nagios does it and then, immediately
after having run the check, run the command

echo $?

you will get the return code of the check command. Note that you can
only inspect $? once, as it takes a new value for each command you run.

Thanks Andreas -

I did a little testing and it seems that if I fail to put in all the
arguments the script requires at the command line and then do an 'echo
$?' I receive a return code of 4. So, there must be something wrong with
my checkcommand that I have in nagios. I will dig and see what I can
come up with.

Thanks again
Michael

===

P Please consider the environment before printing this e-mail

Cleveland Clinic is ranked one of the top hospitals
in America by U.S.News & World Report (2009).  
Visit us online at http://www.clevelandclinic.org for
a complete listing of our services, staff and
locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.


--
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] all notifications failing

2010-04-16 Thread Morris, Patrick
Scott, Ewan wrote:
>
> Hi
>
>  
>
> All my notifications are failing - no emails are being generated. Can 
> someone confirm that it is the *nagios* user which sends the emails 
> and not *root*. If this is the case then I seem to have created a file 
> permissions problem on the system somehow and the nagios user cannot 
> send mail. (This used to work until I installed *php5-cli* and ran a 
> *notifications* script I picked up on exchange.nagios.org). 
>
Mail will be sent as the user Nagios runs under.
>
>  Although it is not really a nagios issue if anyone knows what the 
> temporary file is that it is trying to open - see below - please let 
> me know. (The same issue occurs for other non-root users sending mail).
>
>  
>
> Thanks.
>
> Ewan
>
>  
>
> # id
>
> uid=0(root) gid=0(root) groups=0(root)
>
> # /usr/bin/printf "%b" "* Nagios *\nNotification " | 
> /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert:  
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" ewsc...@scotborders.gov.uk
>
> # ### This has sent mail successfully.
>
> #
>
> # su - nagios
>
> $ /usr/bin/printf "%b" "* Nagios *\nNotification " | 
> /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert:  
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" ewsc...@scotborders.gov.uk
>
> mail: Cannot open temporary file: Permission denied
>
> Cannot open temporary file
>

Sounds like permissions on your temporary directory (most likely /tmp or 
/var/tmp) are screwed up, or you've got a full disk.

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


[Nagios-users] all notifications failing

2010-04-16 Thread Scott, Ewan
Hi

All my notifications are failing - no emails are being generated. Can someone 
confirm that it is the nagios user which sends the emails and not root. If this 
is the case then I seem to have created a file permissions problem on the 
system somehow and the nagios user cannot send mail. (This used to work until I 
installed php5-cli and ran a notifications script I picked up on 
exchange.nagios.org).

Although it is not really a nagios issue if anyone knows what the temporary 
file is that it is trying to open - see below - please let me know. (The same 
issue occurs for other non-root users sending mail).

Thanks.
Ewan

# id
uid=0(root) gid=0(root) groups=0(root)
# /usr/bin/printf "%b" "* Nagios *\nNotification " | /usr/bin/mail -s 
"** $NOTIFICATIONTYPE$ Service Alert:  $HOSTALIAS$/$SERVICEDESC$ is 
$SERVICESTATE$ **" ewsc...@scotborders.gov.uk
# ### This has sent mail successfully.
#
# su - nagios
$ /usr/bin/printf "%b" "* Nagios *\nNotification " | /usr/bin/mail -s 
"** $NOTIFICATIONTYPE$ Service Alert:  $HOSTALIAS$/$SERVICEDESC$ is 
$SERVICESTATE$ **" ewsc...@scotborders.gov.uk
mail: Cannot open temporary file: Permission denied
Cannot open temporary file

System info:
# uname -a
Linux sbc-nagios-01 2.6.31-20-server #58-Ubuntu SMP Fri Mar 12 05:40:05 UTC 
2010 x86_64 GNU/Linux
# ### nagios 3.2.0
# dpkg --list | egrep mailutil
ii  libmailutils21:2.0+dfsg1-2  
GNU Mail abstraction library
ii  mailutils1:2.0+dfsg1-2  
GNU mailutils utilities for handling mail
#





Ewan Scott
Technical Officer
Servers and Storage
Business & Technology Solutions
Scottish Borders Council
Council Headquarters
Newtown St Boswells
Melrose
TD6 0SA

01835 824000 ext 5374

ewsc...@scotborders.gov.uk
http://www.scotborders.gov.uk http://www.scotborders.gov.uk />


**
This email and any files transmitted with it are privileged, confidential and 
subject to copyright. Any unauthorised use or disclosure of any part of this 
email is prohibited. If you are not the intended recipient please inform the 
sender immediately; you should then delete the email and remove any copies from 
your system.
The views or opinions expressed in this communication may not necessarily be 
those of Scottish Borders Council.
Please be advised that Scottish Borders Council's incoming and outgoing email 
is subject to regular monitoring and any email may require to be disclosed by 
the Council under the provisions of the Freedom of Information (Scotland) Act 
2002.

**

--
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] bizarre Nagios 2.12 memory leak

2010-04-16 Thread Rick Mangus
Have you checked where your memory is being used?  I had a similar
problem, and found I had 30k+ processes of nsca eating swap and PIDs.
The system would die one of two ways:  OOM or unable to spawn new
processes due to lack of PIDs.

In my case, it turned out that processing perfdata could block due to
database problems, causing nagios to bog down and nsca processes to
back up in a major way.  Finding and fixing that was ... special.

Anyway, running out of swap is good to know, but is nagios using 16GB
of RAM?  Or is it disappearing elsewhere?

Good Luck

--Rick

On Thu, Apr 15, 2010 at 4:13 PM, Andreas Ericsson  wrote:
> On 04/15/2010 05:24 PM, Jeremy wrote:
>>
>> I know I really should get around to upgrading to Nagios 3.x but no time for
>> that yet and it's going to be a pain to upgrade them all at once without
>> being blind for a little bit, so pretend Nagios 3.x isn't an option just
>> yet.
>>
>
> The truth of the matter though is that noone really cares about fixing a
> problem in 2.12 unless it's also a problem in 3.2.1, and especially if
> it's a bug as hard to debug as this one. Insofar as I know, configuration
> files are compatible between those two revisions, so you could just use
> 3.2.1 as a drop-in replacement for 2.12.
>
> Some minor things have to be changed in nagios.cfg (and possibly cgi.cfg),
> but the bulk of the configuration should be ok the way it is.
>
> Since this is an otherwise intermittent error which may well depend on other
> variables (such as pthread library version, glibc library version or any
> other system library), it's well nigh impossible to debug without having
> you run Nagios through valgrind until it crashes due to lack of memory.
>
> Rest assured that that will keep your Nagios running crippled longer than
> an upgrade would
>
> If the problem persists with Nagios 3.2.1, you should look into upgrading
> the rest of your system. If that doesn't help either, it's time to report
> it as a bug.
>
> --
> 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.
>
> --
> 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
>

--
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] Monitor IBM storage from nagios.

2010-04-16 Thread Giorgio Zarrelli
As I told privately to Chris, I am short on time but if you find the  
right oids I can code a plugin and release in GPL v.3. I have a ds4000  
and a ds4700 to test on. Just matter of spare tine, but if I can avoid  
gettin crazy in finding them,  I can save time to code.

Ciao,

Giorgio

Il giorno 16/apr/2010, alle ore 09.55, Chris  ha  
scritto:

> Hi,
>
> I am looking for exactly the same! On Monitoring Exchange is an check
> for ds4x00 systems. But it checks only array_status, device_status,
> logical_status and system_status. So its not that what we want.
>
> So is here anyone who can help?
>
> Thanks a lot!
>
>
>
> Am 15.04.2010 um 13:35 schrieb rakesh kakde :
>
>> Dear All,
>>
>> Is there any possibility to monitor IBM storage DS8100 and DS4800 so
>> that I can get the trend analysis in pnp4nagios for parameters like
>>
>> Allocated Capacity
>> Available Capacity
>> Allocated Capacity
>> Volume Group Capacity
>> Volume Group Freespace
>> %Allocated VG Capacity
>> Cache Size
>> Nonvolatile Storage
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg  Max  Avg
>> Max  Avg Max
>>
>> Tot Xfer (KB/op) Tot Hit%
>> (%) Wrt-cch delay% (%)
>> Avg   Max  Avg Max
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg   Max  Avg
>> Max  AvgMax
>>
>>
>> Any help is highly appriciated.
>>
>> Regards
>> Rakesh Kakde
>> ---
>> ---
>> ---
>> -
>> 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
>
> --- 
> --- 
> --- 
> -
> 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

--
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] Monitor IBM storage from nagios.

2010-04-16 Thread Giorgio Zarrelli
It's just a matter of Pisa

Ciao,

Giorgio

Il giorno 16/apr/2010, alle ore 09.55, Chris  ha  
scritto:

> Hi,
>
> I am looking for exactly the same! On Monitoring Exchange is an check
> for ds4x00 systems. But it checks only array_status, device_status,
> logical_status and system_status. So its not that what we want.
>
> So is here anyone who can help?
>
> Thanks a lot!
>
>
>
> Am 15.04.2010 um 13:35 schrieb rakesh kakde :
>
>> Dear All,
>>
>> Is there any possibility to monitor IBM storage DS8100 and DS4800 so
>> that I can get the trend analysis in pnp4nagios for parameters like
>>
>> Allocated Capacity
>> Available Capacity
>> Allocated Capacity
>> Volume Group Capacity
>> Volume Group Freespace
>> %Allocated VG Capacity
>> Cache Size
>> Nonvolatile Storage
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg  Max  Avg
>> Max  Avg Max
>>
>> Tot Xfer (KB/op) Tot Hit%
>> (%) Wrt-cch delay% (%)
>> Avg   Max  Avg Max
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg   Max  Avg
>> Max  AvgMax
>>
>>
>> Any help is highly appriciated.
>>
>> Regards
>> Rakesh Kakde
>> ---
>> ---
>> ---
>> -
>> 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
>
> --- 
> --- 
> --- 
> -
> 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

--
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] Monitor IBM storage from nagios.

2010-04-16 Thread Chris
Hi,

I am looking for exactly the same! On Monitoring Exchange is an check  
for ds4x00 systems. But it checks only array_status, device_status,  
logical_status and system_status. So its not that what we want.

So is here anyone who can help?

Thanks a lot!



Am 15.04.2010 um 13:35 schrieb rakesh kakde :

> Dear All,
>
> Is there any possibility to monitor IBM storage DS8100 and DS4800 so  
> that I can get the trend analysis in pnp4nagios for parameters like
>
> Allocated Capacity
> Available Capacity
> Allocated Capacity
> Volume Group Capacity
> Volume Group Freespace
> %Allocated VG Capacity
> Cache Size
> Nonvolatile Storage
>
> Tot I/Os (ops/s) Tot MB (MB/ 
> s)  Tot Time (ms/op)
> Avg  Max  Avg   
> Max  Avg Max
>
> Tot Xfer (KB/op) Tot Hit%  
> (%) Wrt-cch delay% (%)
> Avg   Max  Avg Max
>
> Tot I/Os (ops/s) Tot MB (MB/ 
> s)  Tot Time (ms/op)
> Avg   Max  Avg  
> Max  AvgMax
>
>
> Any help is highly appriciated.
>
> Regards
> Rakesh Kakde
> --- 
> --- 
> --- 
> -
> 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

--
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] check_http (bogus) setup

2010-04-16 Thread Gerard Petersen
Dear Marc,

Thanx for you elaborate feedback. The joke is somewhat on me, but more on 
that in a second. You're documentation is good and to the point!

The configuration I used was a apt-get installed nagios3 on Ubuntu 9.10 
which seems a recipe from a modern kitchen.

I ofcourse totally agree with you that you can't be responsible for how 
other distro's deploy your (marvelous piece of) software.

Then for laughs .. I have set up a major Nagios cluster in the past. You can 
check here whether or not my Nagios knowledge is good enough:

http://www.gerardjp.com/2007/05/12/nagios-remote-eventhandling-for-init-scripts/
(RFE'd the $MAX_CHECK_ATTEMPTS$ which was incorporated in a newer release btw)

Anyway, in that aformentioned nagios setup, I used to check for a list of 
urls, from 2 different nodes running nrpe. It must be pure coincidence that 
these two nodes did run a webserver themselves. I now realize that I never 
checked the intended urls, but just the websites running on these nodes.

Ah well .. one lives and learns :)

Thanx again!

On 15-04-10 14:45, Marc Powell wrote:
>
> On Apr 15, 2010, at 3:50 AM, Gerard Petersen wrote:
>
>> Hi All,
>>
>> I've been testing with the check_http service. I always was under the
>> assumption that the setup below would check www.example.com
>
> Why did you make this assumption? It's not documented to work like this.
>
>>  check_command   check_http!www.example.com!/
>
>> With this service definition (as often installed out of the box):
>>
>> define command{
>>  command_namecheck_http
>>  command_line   /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$'
>>  }
>
> It's not been like this in a long time I believe. Perhaps you've installed 
> from a distribution specific package and they've deviated from current 
> nagios? If so, there's nothing that we can do about that. This is what the 
> official package uses --
>
> # 'check_http' command definition
> define command{
>  command_namecheck_http
>  command_line$USER1$/check_http -I $HOSTADDRESS$ $ARG1$
>  }
>
> Note that your assumed configuration still wouldn't work here but the 
> official documentation expects this definition. See 'Monitoring HTTP' at 
> http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html.
>
>> Wrong! It would check for a webserver on myhost1. Since there's nothing
>> running at myhost1:80 i got a TCP error. Somewhat baffled I've been tailing
>> the access.log of www.example.com to see when I actually got a hit.
>
>
>> The funny thing is this (with no additional parms) even returns ok, would
>> you have a webserver listening on myhost1:80
>>
>> check_command   check_http
>
> This is because your command_line doesn't use any of the params you think 
> you're passing it ($ARG1$, $ARG2$).
>
>> So, you would be wise to turn the command syntax into this:
>>
>> command_line/usr/lib/nagios/plugins/check_http -H '$ARG1$' -u '$ARG2$'
>
> Or follow the example documented use of the plugin. In general, you can't 
> make assumptions about how a plugin works without looking at, and 
> understanding, the defined command_line for that plugin. Every one is 
> different.
>
>> Then this will actually test www.example.com:
>>
>>   check_command   check_http!www.example.com!/
>>
>> Is it me or is this check_http setup misleading? (ubuntu 9.10 in this case)
>
> No, but that would depend on the documentation you're referencing to use the 
> plugin. If the ubuntu documentation says that your format works with their 
> packaged version of the check_http command definition, then that is 
> misleading and they should correct that. Otherwise it looks like you made an 
> incorrect assumption about how something worked without understanding it. If 
> I buy a car from a dealer and they tell me it runs on diesel, fill it up with 
> diesel and it doesn't, then that's their fault. If they don't tell me 
> anything about it and I assume it does without reading the manual, that's my 
> fault.
>
> For a new admin, the simplest use case is just to check that a web server is 
> listening on a host. That's what your definition does and what the official 
> definition does if no additional parameters are passed. As an admin becomes 
> more familiar with the plugin and more sophisticated in what they want to do 
> they need to edit either one or both of the command_line and check_command in 
> your case but only the check_command in the official case. I think the 
> official way provides the most flexibility all around, IMHO.
>
> --
> Marc
>
>
> --
> 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
>