Re: [Nagios-users] nagios doesn't respect the freshness_threshold

2012-03-15 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12-03-15 06:40 AM, Mario Garcia Ortiz wrote:
> Hello,
> thank you for your answer.
> 
> I don't know what are you saying about spamming, I have sent the
> message just once and this six days ago!

Indeed, after inspecting the mail headers is seems Sourceforge delivered
the same message to my ISP 5 times - how strange...

Please accept my apologies.

Regards,

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

iEYEARECAAYFAk9h+CMACgkQ6dZ+Kt5BchbKCwCfS6TBdkHosvGEZpWPSccomk3X
mlcAoN9r031SFx6v+1udU3A97GupFmjg
=fI1B
-END PGP SIGNATURE-

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
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 doesn't respect the freshness_threshold

2012-03-12 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12-03-09 04:34 AM, Mario Garcia Ortiz wrote:
> Hello,
> we have backups running everyday in which we send the status of the
> backup via nsca to nagios, we have set a freshness_threshold of 26
> hours in case the status of the backups is not received after 26hours
> the check becomes critical.
> 
> the problem is that nagios all of sudden doesn't respect that; when
> the backup OK message is received by nagios via nsca, it becomes
> critical after a couple of minutes instead of waiting the specified
> freshness threshold period..
> 
> is there a way to solve this issue? this happens with nagios running
> on solaris 10.

Please DO NOT spam the list by posting multiple times - you should
expect at least one day to get an answer, if not more.

Check that your check has "Active check disabled" from the interface -
if active checks are enabled that's your issue.

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

iEYEARECAAYFAk9epMAACgkQ6dZ+Kt5BchYatACfZMZN5keQvBUPxTtF766G2KVH
5RUAoKcR3R1KbFDlznRlOsIRu+9iFDJX
=cGpR
-END PGP SIGNATURE-

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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 ipv6 compatibility

2011-02-04 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11-02-03 09:07 AM, Kaplan, Andrew H. wrote:
> Hi there --
> 
> The network addressing scheme for our company is currently IPv4, but
> there are plans to convert to the IPv6 methodology.
> 
> Does Nagios have any compatiblity issues with IPv6, or is it simply a
> matter of modifying the appropriate files within the
> 
> host server's operating system as well as the Nagios application?

Nagios itself has no issues with IPv6 - the IP you enter in the
"address" field is just a string passed around. So any issue you could
encounter would be with plugins, eventhandlers, and everything else that
runs from Nagios and use the $HOSTADDRESS$ macro.

Most of the standard Nagios plugins should be IPv6-compatible already,
if you encounter any issues with them, you can point it out on the
Nagiosplug-devel mailing list. If you encounter issues with 3rd-party
plugins you'll have to get it fixed by the author or fix it yourself.

Thanks

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

iEYEARECAAYFAk1L+zMACgkQ6dZ+Kt5BchYwZQCg7McrI5EbpoHI4FfoGXfmSUcm
hvQAoJ/8piuhj9vGMo4LZ6YX40zbLXW4
=rbiU
-END PGP SIGNATURE-

--
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
___
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] processing performance data in passive checks

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

On 20/04/10 02:00 PM, Ralph Swartwood wrote:
> I have nagios working with pnp4nagios in sync mode.  Performance data is
> captured by pnp4nagios correctly from active checks.  However, it
> doesn’t appear that nagios is calling the *service_perfdata_command
> *when processing passive checks.  Is there some parameter I missed?

Are you passing data to passive checks? What exactly are you returning
to nagios as check results?

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

iD8DBQFLznHE6dZ+Kt5BchYRAr2IAKCjlKVNsAWzUSlgZ2Oc/cfcnh9jlACcCrRj
4F26Rm6PoDS5tjL7dSkqIAM=
=w1/0
-END PGP SIGNATURE-

--
___
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 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] RSyslog monitoring?

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

On 11/04/10 06:08 AM, Kevin Keane wrote:
> I would like to find a way to monitor syslog entries using rsyslog 4.4
> rules before they are ever written to a log file. The log parsing
> plugins I found on MonitoringExchange aren?t useful for my purpose.
> 
>  
> 
> I have three main requirements:
> 
> -  I need to have ?negative logic?: I want to provide a list of
> patterns NOT to forward to Nagios ? all unknown log entries should be
> sent to nagios.
> 
> -  It needs to be realtime, or nearly so. Ideally, I?d like to
> use rsyslog rules to classify log messages and forward them to Nagios as
> passive-check results.
> 
> -  It needs to be reasonably high performance. This syslog
> receives quite a few log entries per second (most of which would be
> discarded of course).
> 
>  
> 
> Has anybody else already done something like this?

I wrote one, although it's really implemented toward Windows Event logs
sent to syslog with EvtSys.

http://solaris.beaubien.net/~dermoth/pages/nagios/windows-eventlog.php


A more generic project would be EventDB, although I never tried it.

http://www.nagioswiki.org/wiki/Addon:EventDb

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

iD8DBQFLwqeN6dZ+Kt5BchYRAuffAJ9QOZcHcagSciPUZfYobLbCIXUCoQCg+tlH
Cwq4nirqagA8dA5PBeVWtDw=
=X7bC
-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] check_cluster configuration.

2010-03-31 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/03/10 07:52 AM, HyunSung Jang wrote:
> what a nice solution it is!!
> why I didn't think about that..
> 
> we have VIP and represented domain name
> so this is very clear to me..

I do this, and for some checks that just float around but always return
their status at the same place (using send_nsca & others), I use a dummy
host with 127.0.0.1 as the host address, so it never fails the host check.

You could also use check_cluster as the host check, aggregating the
status of all hosts in a hosts group.

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

iD8DBQFLs87M6dZ+Kt5BchYRAp73AKDf6LBIbMj2sCH6NbSxfOG/cLT+JwCgyt58
AdgEQ51iocaGUHHC66MPYes=
=eMZg
-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] check_snmp does not provide performance data ??

2010-03-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/03/10 07:23 AM, Michael Schwartzkopff wrote:
> Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:
>> Hi
>>
>> I use the HOST-RESOURCES-MIB to get the status of the system and its
>> various parameters. There is one such MIB parameter that provides memory
>> used by a specific process on a linux box. It is : "hrSWRunPerfMem" ,
>> When i execute this command using the check_snmp plugin it does not
>> provide any performance data after the '|' symbol.
>>
>> The output is as below :
>>
>> [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o hrSWRunPerfMem.x
>> SNMP OK - 1652 KBytes |
>>
>> Is it a bug on the check_snmp plugin ?
>> Please let me know if i am missing something.
>>
>> Thanks
>> Jatin
>>
>> ---
>> --- 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
> 
> I don't know which version you are using. My output is:
> ./check_snmp -H 192.168.xxx.4 -C xxx -o hrSWRunPerfMem.2
> 
> SNMP OK - 0 KBytes | HOST-RESOURCES-MIB::hrSWRunPerfMem.2=0 KBytes  

Actually I said the behaviour was "broken" by another fix but actually
this output is broken in itself. The 2nd part isn't a valid perfdata
string and this is what the fix was for, although the shown example was
much more obvious.

I just committed a fix btw.

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

iD8DBQFLsrXM6dZ+Kt5BchYRAlbQAJ4io+kvxbCmb8c+E0MZ/BBpUL00WwCfSrDN
2lbXWMj4bhhydpkqKqdfYIU=
=7yFc
-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] check_snmp does not provide performance data ??

2010-03-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/03/10 07:26 AM, Jatin Davey wrote:
> Then it should be a bug right ? Please let me know if i can file it.
> 
> Thanks
> Jatin

No need to open a bug. This was broken by this bug #1867716
(be144b67/tr...@2021) so I will reopen it, Feel free to go there and
click on "monitor" to receive further updates, or ask for a patch there
if you need one.

Thanks for reporting this,

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

iD8DBQFLsqRZ6dZ+Kt5BchYRAku2AJwNw/eNypaKXcDBwU+b0OMqHnyLXgCfeoh9
nxyTcbXdiroYHM/Pbz3/U6w=
=1Oh9
-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] check_snmp and quoted oid's

2010-03-23 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 23/03/10 07:03 PM, Gius, Mark wrote:
> In my Nagios command definitions I always escape quote anything like this.  
> IE,
> 
> check_snmp  \'OID"b"\'

OIDs are always numeric; this notation is actually being interpreted
into numbers by net-snmp.

To get the numeric notation, use:

snmptranslate -On REDHAT-CLUSTER-MIB::rhcServiceRunningOnNode."service"

NB: that's a big "O", not a zero...

It's also faster to use numeric notation as the MIBs won't have to be
loaded - makes a real difference when polling many thousand OIDs per minute.


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

iD8DBQFLqVdb6dZ+Kt5BchYRAun4AJ9Qw4EOC7XEXX68LnGgLfFe6IIsygCgp9ic
eTx3Kfh2JbqS8+vCynVCtZo=
=DTvG
-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] Unexplainable disk space usage in nagios/var/spool/checkresults

2010-01-27 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/01/10 08:22 AM, Casey Allen Shobe wrote:
> On Jan 27, 2010, at 1:40 AM, Thomas Guyot-Sionnest wrote:
>> I would highly recommend using tmpfs for the checkresults directory.
>> This is especially important on logging file systems like JFS, XFS,
>> Ext3+ and ReiserFS since every meta-data operation will cause a log
>> write+flush (at the very least) which will cause a constant stream of
>> unneeded IO.
> 
> 
> Thanks for the advice - this sounds perfectly practical, as long as
> those files are not important to persist across nagios restarts.  The
> JFS partition is on top of DRBD, so if I move to tmpfs, the contents
> will disappear when a failover happens - that should be okay I take it?

Absolutely. checkresults, temp files and status.dat don't need to stick
around. In normal circumstances there should not be any file left behind
in these directories after a clean shutdown.

This will also save you some useless network traffic if you can avoid
DRDB replication :)

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

iD8DBQFLYNMs6dZ+Kt5BchYRAiTfAJ4hLynuqHNndi8pFPm7GHKDrkao1gCgtm5o
ov6rKYEZf6KBufZmkhcBYz0=
=kbdH
-END PGP SIGNATURE-

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


Re: [Nagios-users] Unexplainable disk space usage in nagios/var/spool/checkresults

2010-01-26 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/01/10 01:40 AM, Thomas Guyot-Sionnest wrote:
> This is especially important on logging file systems like JFS, XFS,

I meant "journalled" file systems. I need sleep... :)

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

iD8DBQFLX+I86dZ+Kt5BchYRAj9MAJ4xeVasEGU0+IIaInK+eDHGIwE/xACgvPS0
DE9kkm4+IBWe9GSNpb1g9/M=
=BXu8
-END PGP SIGNATURE-

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


Re: [Nagios-users] Unexplainable disk space usage in nagios/var/spool/checkresults

2010-01-26 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/01/10 12:29 PM, Casey Allen Shobe wrote:
> 2010/1/26 Wolfe, Robert  >
> 
> When you do an ‘ls –lash’ on this directory, what do you see?
> 
> 
> I already included that in my last post.  The only difference was that I
> added -Sr to do a reverse sort by size (largest items at the bottom),
> and -F is included in my alias for ls, so '/' is shown at the end of
> directory names.
> 
> However, this actually seems to be an issue with JFS and high turnover
> within a directory.
> http://www.mail-archive.com/jfs-discuss...@lists.sourceforge.net/msg00748.HTML

I would highly recommend using tmpfs for the checkresults directory.
This is especially important on logging file systems like JFS, XFS,
Ext3+ and ReiserFS since every meta-data operation will cause a log
write+flush (at the very least) which will cause a constant stream of
unneeded IO.


1. Add this line to fstab:
checkresults /usr/local/nagios/var/checkresults tmpfs
uid=1001,gid=103,mode=0755 0   0

(in one line, nevermind auto line-warp... make sure the uid/gid are that
of the nagios user).



2. Make sure the dir exists (it should if nagios uses it!) and that
nagios is stopped. Delete any stale file and/or re-create the directory
if you need to free space used by it (i.e. Jfs bug), then mount it (it
should also get mounted at boot time before Nagios starts since it's in
the fstab):

# mount -a

3. Start nagios - it should now write all files in a memory fs (tmpfs).


Note: you can also add the size=nbytes mount option... it limits the
amount of RAM that can be used by the tmpfs, however unless you hit a
nasty bug it shouldn't be a problem (plus you can monitor it with
check_disk...)

Note 2: I also use one for temp/status.dat files...

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

iD8DBQFLX9/w6dZ+Kt5BchYRAkgXAKDrkRWtY2O1sRg2eD8h1FbkWlvMNgCgmtq2
fFZKTDXXrNaPgVf6CLZlD7g=
=WfLm
-END PGP SIGNATURE-

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

Re: [Nagios-users] Checking the time taken by a webpage to load

2010-01-17 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 15/01/10 05:50 AM, Assaf Flatto wrote:
> shacky wrote:
>> Hi.
>>
>> I'm thinking about a way to monitor the loading time of a webpage with 
>> Nagios.
>>
>> Do you have any idea or any hint?
>>
>> Thank you very much!
>> Bye.
>>
>>   
> 
> Do you mean the amount of time the http test is getting when requesting 
> a page ?
>  ./check_http -H www.google.com
> HTTP OK: HTTP/1.1 302 Found - 832 bytes in* 0.069 second response time 
> |*time=0.069112s;;;0.00 size=832B;;;0
> 
> i think this is covered in the check_http plugin

In the case above you're monitoring only a redirect, which doesn't
really means much. you can use the --onredirect switch (see check_http
- --help) to follow redirects.

Even when following redirects, it calculates only the time taken to load
the main page, no resources (css, js, images, iframes) will be loaded.

If you need something more complete you should have a look at WebInject,
although I have no personal experience with it.

http://www.webinject.org/

Even WebInject does not run JavaScript... I'm not aware of any free
solution that does it right now, so results may be very different from
reality on pages that rely a lot on them (Ajax, "Web 2.0"...)

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

iD8DBQFLU7Ur6dZ+Kt5BchYRAo6/AKCw+bxSbdsBtODsMzvNYyN7JAklAQCgqlV+
BVKihfWxFM/uDlB3fMjZ5U0=
=cd3P
-END PGP SIGNATURE-

--
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] nagios always show zero load and no users logged in

2010-01-05 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/10 02:11 AM, Lambert Emmanuel wrote:
> Hi,
> 
> I have configured Nagios web interface on a server called ZITA.
> I have 2 servers that I want to monitor : wsphotonicsA and wsphotonicsB.
> In the web interface, the status of both servers is shown with all
> green. If I shutdown one of the servers, this is correctly shown.
> However, the load of both servers is always shown as zero and Nagios
> never detects the number of logged in users (it always shows zero, with
> the exception of 1 user that is sporadically detected). The number of
> processes is detected correctly.
> Serverload has been constantly 50% or more during the past 2 weeks, but
> Nagios doesn't detect it.

All the check_local_* commands that you are running are checking the
Nagios server, not the remote server.

To check remote servers, you have to install/setup some way to execute
checks (NRPE, check_by_ssh, SNMP) and run a check against it. The
plugins will have to be installed on the servers themselves.

All network-based checks (check_ping, icmp, tcp, http, smtp, ntp, mysql,
etc.) can check a remote host which is specified with the -H (or
- --hostname) parameter. All other checks runs locally.

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

iD8DBQFLQvov6dZ+Kt5BchYRAt2oAJ9x8+r2L0K5wT4448j30USjQ7EMEgCgszru
Km5delF9oOuEypAoOhAMZP8=
=HBM/
-END PGP SIGNATURE-

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-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] Nagios 30 seconds initial delay

2009-12-17 Thread Thomas Guyot-Sionnest
On 15/12/09 05:57 PM, Brandino Andreas wrote:
> Hi all,
> I am using Nagios 3.2.0  (I just upgrade from early 3.0 releases)
> Every time I restart nagios I face a 30 seconds delay before the
> various pages appear for first time (not before starting checks, 30
> seconds before displaying pages!!!)
> 
> When I click a page I get the error "Error: Could not read host and
> service status information!" . After 30 seconds, all pages appear
> again!!
> 
> - I don't have duplicated nagios service running
> - This delay didn't show up to older versions
> - My linux is Debian 5.0.3 (stable)
> - This error appears every time I restart nagios
> 
> Any idea what can cause this delay??

What is your status_update_interval (in nagios.cfg)?

I'm guessing if it's set to 30 seconds then maybe status.dat isn't 
getting created until the first 30 seconds pass, which would explain this.

Unless you have a large number of services you can set this pretty low 
without impacting performance, and a lower value gives better 
responsiveness on the CGI.

-- 
Thomas

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-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] Nagios as a Service Resiliency Manager

2009-12-13 Thread Thomas Guyot-Sionnest
On 10/12/09 12:08 PM, Christopher McAtackney wrote:
> Hi all,
> 
> I have a need to control an Active / Passive pair of components and
> was wondering if anyone had tackled this problem with Nagios?
> 
> The scenario is as follows;
> 
> Host A has SERVICE_1 installed and running. Host B has SERVICE_2
> installed, but not running.
> 
> The desired functionality is to detect when SERVICE_1 is not running
> (or that Host A is down / unreachable), and then to start SERVICE_2 on
> Host B.
> 
> I believe I can do this with Nagios by defining an event handler on
> SERVICE_1 which will make the appropriate call to start SERVICE_2 on
> Host B
> 
> Would it make sense to store the relationship between SERVICE_1 and
> Host B / SERVICE_2 as a service macro, e.g.
> $_SERVICE_PASSIVE_HOSTNAME, $_SERVICE_PASSIVE_SERVICENAME?
> 
> There are too many scenarios in which the SERVICE_1 might come back up
> to try automate the switching off of SERVICE_2 I believe, e.g. if
> someone pulled a network cable on Host A accidently, then plugged it
> in 15 minutes later - during which time Nagios detects that it is down
> and so starts up SERVICE_2. The user then plugs the network lead back
> in and now we have two Active instances running - which is what we
> specifically wanted to avoid. Even if Nagios detects that the primary
> component is up, it's still too late because any Active / Active
> overlap will cause problems for this particular application.
> 
> I can't think of any way to automate that side of things - but does
> the general concept of having Nagios start up a Passive partner make
> sense?

Short answer: not really.

You're talking about clustering here, and clustering has its very own 
set of problems than Nagios was never meant to solve. You should rather 
spend your time looking at a real clustering solution like Linux-HA (I 
used this one but I know there's other OSS clustering software around...).

Once you have your cluster set up then it makes sense to monitor the 
services *and* the cluster software using Nagios. For failover services 
I find the easiest way is you use a shared IP (IP that moves from one 
server to the other along with the services - this is very easy to add 
once the cluster is set-up) so you always look for the service where 
it's supposed to be running. If a shared IP isn't an option just monitor 
the service on both servers and use check_cluster to detect across all 
nodes.

I'm not saying that you can't achieve this using Nagios...  It might 
actually work for very simplistic scenarios but even in that case you 
may end up accidentally running the service on both servers if you're 
not very careful (something that a clustering software sill not let 
happen). You have to take into account not only every possible failure 
scenarios but also every possible thing a human could be doing at the 
same time your handlers try to recover the service! If kind of like 
reinventing the wheel, but not even using the right tools :)

-- 
Thomas

--
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] Nagios2 process overwhelmed by NSCA daemon?

2009-12-13 Thread Thomas Guyot-Sionnest
On 09/12/09 06:06 PM, Jonathan Call wrote:
> I recently added two new slaves to a distributed Nagios system. The
> central server now passively processes 17,000+ service checks on 3000+
> servers. 
> 
> It's been over an hour and a half since I brought those new slaves
> online and I have about 150 hosts still stuck in 'Pending' and about
> 1300 services in the same state. In addition to that it seems that the
> service check results from the other slaves that were working normally
> are now arbitrarily disappearing. For example, on one host three of the
> service checks have been updated relatively recently (i.e. 5-30 minutes
> ago) but three other service checks haven't been updated for almost an
> hour. The slaves all appear operational and the hosts are being checked
> on time. Is it possible I've overwhelmed Nagios' ability to process data
> from the NSCA daemon or struck some internal Nagios bottleneck? Any
> suggestions would be appreciated.

Hu Very interesting. Which Nagios version are you using?

This sounds a lot like a problem I encountered a few years ago with 
passive checks. I had about 50-60 servers returning cron-scheduled check 
results to the Nagios server. 120 results ain't that much, but is seemed 
that with all the servers fully time-synced (using NTP) out of these 
~120 results I was often missing some of them, which would eventually 
cause false-alarm due to stale services.

I could easily reproduce the problem by feeding lots of results to 
Nagios right when I was expecting a batch of passive results - this 
would cause random results to be dropped. I spent some time trying to 
debug this but I couldn't figure our where commands were dropped. My 
primary target was the ring buffer used by the command reaper. As far as 
I can remember I tested with version of Nagios ranging from 2.3 to 2.5; 
I never tried with recent version

If you're running a recent version of nagios what do you get for 
"Used/High/Total Command Buffers" in the "nagiostats" command output? 
(you can also get these numbers from the web interface, "Performance 
Info" in the left bar.). If it seems to be maxed out, you may try 
setting "command_check_interval" to "-1" and raising the 
"external_command_buffer_slots" option in nagios.cfg.


If you're still having this problem with Nagios v3 and up I might try to 
reproduce this as well, and maybe I'll be able to figure out what's 
wrong this time.

-- 
Thomas

--
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] Managing cluster failovers

2009-11-24 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 24/11/09 05:23 AM, keshav murthy wrote:
> Hi All,
>  
> I would like to know what is the best mechanism to monitor cluster
> resources through nagios.
>  
> We have the disks that failover to other node, in that case, in the
> parent node, nagios shows the drive as invalid and alert as UNKOWN.
>  
> Any help is highly appreciated.

Use a failover IP (that follows the disk) for monitoring any cluster
resources, so that it's always monitoring the active node.

As a mater of fact most clustered resources will have a failover IP that
clients connect to regardless of the server that runs them.

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

iD8DBQFLC+C86dZ+Kt5BchYRAnG7AJsG6RIL44zlPP2Mm5MEP32vj0AxdACeLIs4
wxdEqXrZ4TJSv3K3gB7Sq70=
=meDx
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Graphing Software that Retains Perfdata

2009-11-24 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 24/11/09 06:20 AM, Mark Baxter wrote:
> Hi,
> 
>  
> 
> We?ve been using Nagiosgraph for some time for graphing, but of late my
> boss has been requesting historical data for presentations and whatnot.
> The problem is that the rrdtool doesn?t appear to keep all the data it
> gets. Maybe it is configured badly, but it appears to only keep limited
> data for the yearly graphs, so when doing a data export we only really
> have decent data for analysis from the past month or so.
> 
>  
> 
> Ideally I think a solution that stores the information in a MySQL
> database would be optimal as the required data could be easily queried
> and exported in a boss-friendly format.
> 
>  
> 
> Does anyone know of such a solution? If not, does anyone know if I have
> simply screwed up the Nagiosgraph install or, if not, if there is any
> way I can change the configuration so as to retain all data written to
> the .rrd files?

I don't know about Nagiosgraph, the the way RRD are designed it to keep
different resolution of data for different intervals, doing automatic
aggregation. These resolutions/interval are defined in RRA's with a
consolidation function (CF) that determine what value is retained (AVG
(average), MAX, MIN...).

Lets say you have a RRD that gets data every minute, and you have 2880
lines in the first RRA, that means it will keep 2 days of 1-minute data
(60*24*2 = 1880). Then the next one might gets 5-minute average (5
primary data point (pdp) per row) and if you have 4032 lines in this
RRA,it will retain 14 days of data, then you might have a 30-minute (6
pdp since it's based on the 5-minute RRA), 2-hours (4 pdp), daily (6
pdp) RRAs and so on. A daily-data RRA of 1460 rows will retain 4 years
of data with 1-day granularity. That looks great with long-term graphs
that covers nearly a full year or more, but if you zoom in it you will
not find it much appealing (i.e. no curves that you'd normally expect on
daily graphs as the load change throughout the day).

Therefore if you're just missing long-term low-resolution data then you
will have add such RRA to keep this data. OTOH if you want high
resolution on long term data you will have to increase the number of
rows on the RRAs you need, based on what you need. Note that the later
option will greatly increase the size of you RRD files, which are
created at full capacity and will never grow.

Also take note that you can't just resize a RRD, you normally have to
export and re-import it, although if it's somewhat compatible you may be
able to export the data from the old RRAs and import it on the new one.
This is a manual process, but there may be some tools available out
there that automate resizing of RRD files.

You will find more information on RRD files and the RRDTool commands at
this page:
http://oss.oetiker.ch/rrdtool/

Hope this helps.

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

iD8DBQFLC+Wc6dZ+Kt5BchYRAvONAKCx4rWnr+/ILZ3Hbflx+eZDSbJ21ACgo/V/
rdPt4hY9IbSjsGPwc180bck=
=lH8e
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_snmp problem

2009-11-23 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 23/11/09 07:10 PM, Brandon Williams wrote:
> Hey Guys I am trying to monitor a switch by using snmp.  When I run the
> check_snmp I get this result
> 
>  
> 
>  
> 
> ./check_snmp -H x.x.x.x -C c...@m -P 2c -o
> .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
> 
> SNMP problem - No data received from host
> 
> CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 2c [authpriv] 10.7.128.77:161 
> .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
> 
>  
> 
> If I were to run snmpget I am able to get results
> 
>  
> 
> su nagios -c "snmpget -t 1 -r 5 -m '' -v 2c -c c...@m x.x.x.x:161 
> .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1"
> 
> iso.3.6.1.4.1.6027.3.10.1.2.2.1.14.1 = Gauge32: 61
> 
>  
> 
> Any ideas on why check_snmp is having a problem?  The only odd thing I
> see is [authpriv] which I guess means it is hiding the community
> string.  The community string I am showing is not the actual one we
> use.  The one we use has letters and numbers.  Would that have anything
> to do with it?

Which version of check_snmp are you using? 1.4.14 should have better
handling of special characters than anything before... whichever version
you use it would be nice it you could try the other (1.4.14 vs older).

Besides that I don't see what wouldn't work. Maybe try with debug output
(-vvv).

NB: check_snmp v1.4.14 has broken support for multiple -o option, but
you can still pass multiple oids separated with commas.

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

iD8DBQFLC2tT6dZ+Kt5BchYRAijpAKCKiByUCak8yBy0YcqaKQM/T0ynpwCbBYNm
G62RDLRz8ZYlKym02b4dUok=
=Mljf
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_nt MEMUSE

2009-11-19 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19/11/09 08:18 AM, Richard Gliebe wrote:
> On 11/18/09 12:11 PM Thomas Guyot-Sionnest wrote:
>> I'm not sure about using check_nt; I beliebe the recommended bethog for
>> NSClient++ is using check_nrpe (you will have to make sure the NEPE
>> listener module is enabled and properly configured)
>>
>> Here are example of memory checks you can do with check_nrpe:
>>
>> Physical memory:
>> CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=physical
>>
>> Page file:
>> CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=virtual
>>
>> All memort (RAM+SWAP):
>> CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=paged
>>
>>
>> You can set them as aliases ($ARGx$ are nrpe arguments) or even call
>> CheckMem as the NRPE command and the rest of the line are the nrpe
>> arguments (-a).
> 
> Hi Thomas,
> 
> OK, I've tried to use check_nrpe, but I can't connect to the Windows Client
> 
> # ./check_nrpe -H  -p 5666 -c alias_up
> CHECK_NRPE: Error receiving data from host.
> 
> When I return to check_nt, I can connect to the Windows Client.
> 
> # ./check_nt -H  -p 5666 -v MEMUSE
> Memory usage: total:2469.98 Mb - used: 201.26 Mb (8%) - free: 2268.72 Mb
> (92%) | 'Memory usage'=201.26Mb;0.00;0.00;0.00;2469.98
> 
> the Client Logfile shows me:
> 
> [...]
> 2009-11-19 07:43:04: error:D:\source\NSCP-stable\include\Socket.h:699:
> Error: Could not complete SSL handshake : [-1] 1, attempting to resume...
> [...]
> 
> Whats going on? ;-)

This seems to be because your NRPE don't have ssl enabled. Look at the
- --help output of check_nrpe, you should see:

SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required

> Here is my NSC.ini
> 
> [...]
> 
> [NRPE]
> ;# NRPE PORT NUMBER
> ;  This is the port the NRPEListener.dll will listen to.
> port=5666
> ;
> ;# COMMAND TIMEOUT
> ;  This specifies the maximum number of seconds that the NRPE daemon
> will allow plug-ins to finish executing before killing them off.
> ;command_timeout=60
> ;
> ;# COMMAND ARGUMENT PROCESSING
> ;  This option determines whether or not the NRPE daemon will allow
> clients to specify arguments to commands that are executed.
> ;allow_arguments=0
> ;
> ;# COMMAND ALLOW NASTY META CHARS
> ;  This option determines whether or not the NRPE daemon will allow
> clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
> ;allow_nasty_meta_chars=0
> ;
> ;# USE SSL SOCKET
> ;  This option controls if SSL should be used on the socket.
> use_ssl=1

Atlernatively turn this to 0 and use the -n switch in check_nrpe (so if
you upgrade you won't break your checks by enabling SSL)

> ;# BIND TO ADDRESS
> ;  Allows you to bind server to a specific local address. This has to be
> a dotted ip adress not a hostname.
> ;  Leaving this blank will bind to all avalible IP adresses.
> ; bind_to_address=
> ;
> ;# ALLOWED HOST ADDRESSES
> ;  This is a comma-delimited list of IP address of hosts that are
> allowed to talk to NRPE deamon.
> ;  If you leave this blank the global version will be used instead.
> allowed_hosts=

Make sure tis parameter list the IP/network from your monitoring server
(be extra careful if your monitoring server has multiple VLANs / servers)


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

iD8DBQFLBUoA6dZ+Kt5BchYRAjadAJ0YNbVwf4CSQPQyvzSR3hSXAImTcwCeIGQv
1T8PAKGduf7/9zmu9/qiOGY=
=O5iw
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] pnp4nagios, check_snmp, and the `-m' flag

2009-11-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/11/09 09:31 AM, David Krider wrote:
> On Wed, 2009-11-18 at 06:46 -0500, Thomas Guyot-Sionnest wrote:
>> You may be able to get the perfdata again by specifying a warning or
>> critical threshold. The code changed lately so if it doesn't work with
>> an older version you may want to try with 1.4.14 (the version I looked at).
> 
> Spot-on, mate. Thanks for the suggestion! I'll revamp all my checks to
> use warnings, even if they don't really need them.
> 
>> Note though that check_snmp runs faster without loading any mibs, which
>> is an important tuning for large monitoring systems using this plugin.
> 
> Now, this is odd, because it speeds things up TREMENDOUSLY with doing
> things at the command line with snmpwalk and snmpget. As this is my SNMP
> management machine, we have thousands of mib files being parsed before
> those commands are run without specifying. So I checked:
> 
> 
> temporary ~ # time /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11
> -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 -w 10:20 -c 20:30
> SNMP WARNING - *27* | iso.3.6.1.4.1.534.8.3.1.5.1.1.4.1=27  
> 
> real  0m0.264s
> user  0m0.050s
> sys   0m0.010s
> 
> 
> temporary ~ # time /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11 -m
> EATON-PWR-MTR-MIB -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 -w 10:20 -c 20:30
> SNMP WARNING - *27* | EATON-PWR-MTR-MIB::pwrMtrDemandKiloWatts.1=27  
> 
> real  0m0.040s
> user  0m0.030s
> sys   0m0.010s
> 
> 
> I did each several times in a row to make sure it wasn't a fluke. At
> least here, on my version, with my particular setup, specifying the mib
> file the counter is coming from seems to be an extraordinary speedup.

This is very strange. I can understand that loading a single MIB is
fast, but check_snmp should force a blank mib list (-m '') when only a
numeric OID is broken. some time ago I fixed it when using multiple
numerical oids separated with commas, but this behaviour with a single
OID should be very old.

Can you please show be your version, send the verbose output for the 1st
one and try the same with this switch:
- -m ''

Thanks

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

iD8DBQFLBB4a6dZ+Kt5BchYRAtNDAJ4nJ28033owi272lEZw7Y/oGj/wdwCfZd9C
/Gda53ujJaIZYUF5/ZuGDhg=
=5ls9
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] pnp4nagios, check_snmp, and the `-m' flag

2009-11-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17/11/09 12:35 PM, David Krider wrote:
> On Mon, 2009-11-16 at 18:15 -0500, Thomas Guyot-Sionnest wrote:
>> The problem is that check_snmp parses the output from snmpget and it
>> appears that when you load the MIB it detects the result as a string (if
>> you post the full debug output (-vvv switch) I will be able to confirm).
> 
> Just because you asked. I'm not all that worried about it. The MIB is
> obviously reporting an INTEGER value, but getting the units back is
> confusing the issue.
> 
> 
> temporary ~ # /usr/lib/nagios/plugins/check_snmp -vvv -H 10.1.25.11 -m
> EATON-PWR-MTR-MIB -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
> /usr/bin/snmpget -t 1 -r 5 -m EATON-PWR-MTR-MIB -v 1 -c public
> 10.1.25.11:161  .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
> EATON-PWR-MTR-MIB::pwrMtrDemandKiloWatts.1 = INTEGER: 26 kilo-watts
> 
> SNMP OK - 26 kilo-watts |

You may be able to get the perfdata again by specifying a warning or
critical threshold. The code changed lately so if it doesn't work with
an older version you may want to try with 1.4.14 (the version I looked at).

Note though that check_snmp runs faster without loading any mibs, which
is an important tuning for large monitoring systems using this plugin.

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

iD8DBQFLA96c6dZ+Kt5BchYRAm0pAKD/y9sEb3axeFdCRyicAwKnnFvxuQCfUQvm
JCbUrxULCAUWraMHDgcfT2A=
=zmcL
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_nt MEMUSE

2009-11-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/11/09 02:25 AM, Richard Gliebe wrote:
> Hi all,
> 
> check_nt -v MEMUSE shows me the complete memory (physical memory + 
> page.sys) from the 64bit Windows Clients, which are using NSClient++ 
> 0.3.7.493 2009-10-12.
> 
> [...]
> # /usr/local/libexec/nagios/check_nt -p 5666 -v MEMUSE \
> -w 80 -c 90 -H <64bitClient>
> 
> Memory usage: total:7939.16 Mb - used: 4101.70 Mb (52%) - free: 3837.46 
> Mb (48%) | 'Memory usage'=4101.70Mb;6351.33;7145.25;0.00;7939.16
> [...]
> 
> 32bit Windows clients shows me _only_ the real memory (same NSClient 
> Version).
> 
> Is it possible to configure check_nt to show me also only the real 
> memory from the 64bit Windows clients?

I'm not sure about using check_nt; I beliebe the recommended bethog for
NSClient++ is using check_nrpe (you will have to make sure the NEPE
listener module is enabled and properly configured)

Here are example of memory checks you can do with check_nrpe:

Physical memory:
CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=physical

Page file:
CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=virtual

All memort (RAM+SWAP):
CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=paged


You can set them as aliases ($ARGx$ are nrpe arguments) or even call
CheckMem as the NRPE command and the rest of the line are the nrpe
arguments (-a).

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

iD8DBQFLA9Z36dZ+Kt5BchYRAj8CAJwLN3mP8TaRlKITx6BKcFwZJUCQzACgstfp
MUjwhDVooXxc2X2ogn+L9p4=
=0ild
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] pnp4nagios, check_snmp, and the `-m' flag

2009-11-16 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 16/11/09 03:17 PM, David Krider wrote:
> I have a system all setup and running with Nagios and PNP4Nagios. Some
> of the SNMP checks are not making graphs for me. My general habit has
> been to "anchor" the SNMP check with the `-m' flag on the check_snmp
> command.
> 
> My command:
> 
> define command {
>   command_name check_snmp
>   command_line $USER1$/check_snmp -H $HOSTADDRESS$ -m $ARG1$ -o $ARG2$
> }
> 
> My service:
> 
> define service {
>   hostgroup_name power_meters
>   service_description Demand KiloWatts
>   use snmp-service
>   check_command check_snmp!
> EATON-PWR-MTR-MIB!.1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
>   servicegroups power_meter_checks
> }
> 
> My result:
> 
> temporary configs # /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11 -m
> EATON-PWR-MTR-MIB -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
> SNMP OK - 19 kilo-watts |
> 
> Notice that there's no perfdata. If I leave out the `-m', I get it:
> 
> temporary configs # /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11
> -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
> SNMP OK - 19 | iso.3.6.1.4.1.534.8.3.1.5.1.1.4.1=19
> 
> It would be nice to keep the units on these calls, just for the sake of
> it, but this is what's keeping the performance data from being reported
> in these instances. Just thought I'd post this to the list for future
> reference. If past experience is any indication of future trending, I'll
> find this through Google in about 3 years when I can't figure out why I
> can't get performance data in Nagios again. ;-)

The problem is that check_snmp parses the output from snmpget and it
appears that when you load the MIB it detects the result as a string (if
you post the full debug output (-vvv switch) I will be able to confirm).

The best fix would be to use the SNMP C library instead or running
snmpget (which would be more reliable too). This is a major rewrite and
we don't have time for that right now.

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

iD8DBQFLAd0Z6dZ+Kt5BchYRAr7SAJ40KLEe3jp6GG8S/Vfkc3w15s0oEACfaFBi
GVmi/p+ge4iZcg8+CHbDXj8=
=531R
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Summary: read-only nagios

2009-11-11 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/11/09 04:10 PM, Martin Melin wrote:
> I believe you could run two copies of the CGIs, one with only readonly
> access. I haven't looked into how you would do it but it shouldn't be
> too hard to do.

You can run the 2nd copy as a different user (I'm talking about the
webserver/cgi user) that don't have write access to the command pipe.

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

iD8DBQFK+0k/6dZ+Kt5BchYRAvbMAJ9Ugj3z6mOEeOMNTnsA6MyiljBm1wCfc9J0
XIzHzHqlGp5boLMB2Q/COoc=
=wZyJ
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] nsclient changing service down state

2009-11-11 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/11/09 05:53 PM, Terry wrote:
> On Tue, Nov 10, 2009 at 4:04 PM, Marc Powell  wrote:
>> On Nov 10, 2009, at 3:44 PM, Terry wrote:
>>
>>> Hello,
>>>
>>> I have a simple check set up to check a windows service using
>>> nsclient++.  It works great.  However, I want it to go to a warning
>>> state when a service is stopped, not critical:
>>> -sh-3.2$ /usr/lib64/nagios/plugins/check_nrpe -H host -t 50 -c
>>> checkServiceState -a ShowAll MSSQLSERVER=started
>>> CRITICAL: MSSQLSERVER: stopped (critical)
>>> -sh-3.2$ echo $?
>>> 2
>>>
>>> Again, I don't want it to ALWAYS be warning, just not be critical.
>> If you always want CRITICAL to be changed to WARNING for this test,
>> you could use the negate plugin.
>>
>>  ./negate --help
>> negate v1859 (nagios-plugins 1.4.11)
>> Copyright (c) 2002-2007 Nagios Plugin Development Team
>>
>>
>> Negates the status of a plugin (returns OK for CRITICAL and vice-versa).
>> Additional switches can be used to control which state becomes what.
>>
>>
>> Usage:negate [-t timeout] [-owcu STATE] 
>> [snippage]
>>  -c,--critical=STATUS
>>
>> STATUS can be 'OK', 'WARNING', 'CRITICAL' or 'UNKNOWN' without
>> single
>> quotes. Numeric values are accepted. If nothing is specified,
>> permutes
>> OK and CRITICAL.
>>
>> --
>> Marc
> 
> 
> [r...@omajelut01 plugins]# /usr/lib64/nagios/plugins/negate -c WARNING
> /usr/lib64//nagios/plugins/check_nrpe -H host -t 50 -c
> checkServiceState -a ShowAll MSSQLSERVER=started
> CRITICAL: MSSQLSERVER: stopped (critical)
> [r...@omajelut01 plugins]# echo $?
> 1
> 
> The plugin still says CRITICAL but as you can see will actually
> register as a warning.  Perfect.  Thanks!

Since 1.4.12 you can use -s (--substitute) to change the status text as
well.

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

iD8DBQFK+pjt6dZ+Kt5BchYRAnedAJ0ZD4CEGW8XEFZyOTbBWGOSo+t2FQCgtikk
N1lQ+idzhEA1ebCUAlnICuk=
=Q9t1
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] host shows down but it is not

2009-10-14 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/10/09 11:30 AM, Joe Konecny wrote:
> 
> Here is a tcpdump of plain Nagios pinging...
> 
> 11:23:50.328519 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, 
> seq 1, length 64
> 11:23:50.329365 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, 
> seq 1, length 64
> 11:23:51.328739 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, 
> seq 2, length 64
> 11:23:51.329368 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, 
> seq 2, length 64
> 11:23:52.327735 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, 
> seq 3, length 64
> 11:23:52.328472 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, 
> seq 3, length 64
> 11:23:53.326740 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, 
> seq 4, length 64
> 11:23:53.327578 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, 
> seq 4, length 64
> 11:23:54.327788 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, 
> seq 5, length 64
> 11:23:54.328478 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, 
> seq 5, length 64
> 
> Here is a tcpdump of check_mk pinging...
> 
> 11:29:24.042801 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, 
> seq 0, length 64
> 11:29:24.043603 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 58673, 
> seq 0, length 64
> 11:29:24.043768 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, 
> seq 0, length 64
> 11:29:24.124046 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, 
> seq 0, length 64
> 11:29:24.204417 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, 
> seq 0, length 64
> 11:29:24.284728 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, 
> seq 0, length 64

The problem with check_mk pinging is that the ICMP sequence number
doesn't increase. Some devices treat this as a duplicate packed and
ignore it (I'm not sure what the RFC specify but this is probably the
correct behaviour).

Just use the non-mk host check command for the host definition with the
check_mk command for services and you should be fine.

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

iD8DBQFK1k1A6dZ+Kt5BchYRAmdwAJ9ScKAjci3LLSvWOpEml4/wxjAsiQCg9hII
5jiOYrO+IcFrUMaQanRp/8Y=
=FqrR
-END PGP SIGNATURE-

--
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 nfs share on windows

2009-10-09 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/10/09 09:55 AM, dave stern - e-mail.pluribus.unum wrote:
> I'm trying to check for the size of an nfs share that is accessible
> from a windows host.
> The windows host is running NSClient++ but there are a number of problems 
> here.
> 
> First, the share isn't persistently mapped so at a minimum, I'd have
> to write a .bat
> warpper that first mapped it to a letter then ran the disk check.
> Second, to test this,
> I mapped the drive to M: then ran on my nagios server
> check_nt -H ... -p 12489 -s ... -v USEDDISKSPACE -l  M -w 80 -c 90
> but I got a segfault

I can't really help with it, but it seems odd that you're trying to
monitor it from Windows rather than from the NFS server itself. I guess
that's could be a NAS, but even if it is can't you use snmp on it? Come
NAS have shell access too...

> So I tried another tactic. Install, turned on snmp on the windows
> host. Mapped the
> drive to H and tried
> check_win_snmp_disk.pl $HOSTADDRESS$ $community 6 80 90
> I did get information back. The % usage appears correct but the sizes are
> way off (Gig vs Terabyte).

Are you sure the numbers are not disk or filesystem blocks? you would
have to multiply them by a certain number to get the right value...

There's probably a program out them that monitor Windows disks either as
a local script (you can run it under NRPE_NT) or using snmp; you should
start looking on NagiosExchange (which I believe is MonitoringExchange
now...).

> Can I trust the percentages from the above? Is the above script limited in
> size to Gigabytes?  Is there a better/easier way to pull down this info?
> 
> I tried an snmpwalk but couldn't find anything useful. Otherwise, I'd just
> call it directly with an snmpget

There it check_snmp too...

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

iD8DBQFKz9426dZ+Kt5BchYRAhW1AKCEAIPa+ITsS5iKPqG3R3iI8vuv0wCg2BVG
FpIgsZZRcZzEbw+6RksQUfQ=
=SVzx
-END PGP SIGNATURE-

--
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] bgp monitoring (check_bgp_neighbors) command syntax assistance

2009-10-06 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/10/09 12:31 PM, Emily wrote:
> Hello, I am attempting to use this check_bgp_neighbors command which was
> recommended however my manual execution gives this output:
>  
> [r...@dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C public
> -n 157.130.57.129 -n 65.205.26.197
> Error in packet
> Reason: (noSuchName) There is no such variable name in this MIB.
> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1
> expr: syntax error
> Error in packet
> Reason: (noSuchName) There is no such variable name in this MIB.
> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1
> expr: syntax error
> ./check_bgp_neighbors: line 107: [: -ge: unary operator expected
> Failed: status:12 prefixes: sent:1466115 received:1475079[r...@dns libexec]#
> [r...@dns libexec]#
> perhaps my syntax is flawed as I don't know why I am getting this
> "Failed object" error, the usage of the command is below, I would really
> appreciate any help with my syntax for the above command:

Are you trying it against  Cisco router? This appears to be a Cisco
proprietary MIB and it would be evry unlikely that any other brand of
router support it.

If it's a Cisco, make sure it support the CISCO-BGP4-MIB. Otherwise, I'm
afraid you'll have to check with your vendor on how to monitor it with
SNMP and write your own script or use check_snmp to monitor it.


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

iD8DBQFKy+xc6dZ+Kt5BchYRAkl/AKCvRtMrInHjTklH4Lr7KV9QLhozmgCgorur
t7D26ZgJxL1H4ZFXUw+dr2A=
=SAd+
-END PGP SIGNATURE-

--
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] Different notifications times for same service on different hosts?

2009-09-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/09/09 12:33 PM, Glyn Astill wrote:
> --- On Mon, 28/9/09, Mark Gius  wrote:
> 
>> notification_period inherited from the host only applies if
>> you have NO 
>> notification_period defined.  Do you have some master
>> service template 
>> that defines a default notification_period for services (I
>> know we do). 
>>
>> You could use a custom variable attached to the host and
>> then set the 
>> notification period with
>>
>> notification_period $_HOSTCUSTOMNOTIFICATIONPERIOD$
>>
>> or similar.  However, if you'd like to do this sort of
>> thing on a wide 
>> scale I'd reconfigure nagios to use the builtin inheritance
>> rather than 
>> trying to re-implement it using custom object vars
>>
>> -Gius
>>
> 
> Aha, thats it then. notification_period was defined in templates.cfg and 
> after commenting it out it's now getting inherited from the host.

I finally found where theyy define what is inherited from where...
useful tip!

Normally you should be able to undefine inherited options with the
special "null" value. ex:

define service {
  description blah
  ...
  notification_period null
  use service_template
}

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

iD8DBQFKwVsn6dZ+Kt5BchYRAm12AJ4/orkKETUbPwsaIYUqhf0uWmCnIQCfWxQB
kzi+ODha1xHHd6/jXA21s2E=
=uKD8
-END PGP SIGNATURE-

--
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] plugin for AIX6

2009-09-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/09/09 08:09 AM, nadia kheffache wrote:
> I have successfuly installaled the plugins after install libraryc++-devel.

Was that the fix for the plugin compilation? Is so I might add that to
the FAQ on nagiosplugins.org.

It would be very nice if you could post details on what you did to
install the missing dependencies (I have absolutely no knowledge of AIX...)

Thank you

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

iD8DBQFKwKuS6dZ+Kt5BchYRAgnmAJ9oZxS9PWrvc5D+rltzB6kw0wOazwCg88UZ
9/IyrwMHlhkM6JF7WsyTNjQ=
=Bsl6
-END PGP SIGNATURE-

--
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] Different notifications times for same service on different hosts?

2009-09-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/09/09 08:10 AM, Jim Avery wrote:
> 2009/9/28 Glyn Astill :
>> Hi Chaps,
>>
>> I've got a nagios server that constantly performs various checks on database 
>> servers.  I have one set of services that serve as the checks for all of the 
>> database servers since they are all identical.
>>
>> What I want to do is prevent the checks running against just one of the 
>> servers during the early hours of the morning, is this possible without 
>> duplicating all the service checks again?
>>
>> E.g. I've got a service defined like :
>>
>> define service{
>>use generic-service
>>host_name   svr-a,svr-b,svr-c,svr-restore
>>service_description Some check
>>check_command   check_nrpe!some_check
>>check_interval  10
>>check_period24x7
>>notification_period 24x7
>>contact_groups  admins,smsadmins
>> }
>>
>> Now I want 24x7 notifications from this service for svr-a, svr-b and svr-c 
>> but I don not want notifications from svr-restore in the early hours (whilst 
>> it is restoring the database)
>>
>> Does anyone know how to do this? Or an I going to have to duplicate all the 
>> service checks for the restore server?
> 
> 
> In Nagios 3, some variables can be inherited by the service definition
> from the host definition.
> 
> So, if you set a suitable notification_period in your host definition
> it will be inherited by all of the services for that host too (unless
> you explicitly set it in the service definition).
> 
> See: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html

My understanding is that you can define custom variables in the host
definitions and use them in the service definition. This is very useful
to define per-host thresholds for example.

I doubt the macros will be expanded for the timeperiod definition
though. Have you tried? That would definately be an interesting feature
if it doesn't work already (and probably not so hard to implement).

It there really is inheritance from host to service can you point
exactly where it is mentioned in the documentation?

Thanks

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

iD8DBQFKwK816dZ+Kt5BchYRAj7UAJwMKg+3lILetsT+Rs0KE2/FotPIAQCfQQg2
m6AL2BSOBZWQ4aMyc3V2fpI=
=0DjG
-END PGP SIGNATURE-

--
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] plugin for AIX6

2009-09-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/09/09 07:01 AM, nadia kheffache wrote:
> sorry, it 's exact, i have try with plugin 1.12 and 1.14, and i have the same 
> error,
> 
> But how can i use LDFLAGS=" -lm " with ./configure? can you give me the 
> syntaxe exactly please?
> like this: ./configure LDFLAGS=" -lm " ??

Exactly... You can also pass the LDFLAGS as environment variables, ex:

LDFLAGS=" -lm " ./configure

The latter is the equivalent of exporting that environment variable, i.e.:

export LDFLAGS=" -lm "
./configure


You may replace "-lm" with "-bloadmap" and "-bnoquiet" too and see if it
gives more details.

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

iD8DBQFKwJpG6dZ+Kt5BchYRArUTAJ4x0nmInhUnfgVCOyVOIs4lpRF5kwCgpMWP
uI2KqQyEY/NoxowbkyHMpeM=
=bMUi
-END PGP SIGNATURE-

--
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] plugin for AIX6

2009-09-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/09/09 06:35 AM, nadia kheffache wrote:
> Thank you for your answer Thomas,
> 
> this is my error after "make"
> 
> gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. 
> -I.. -I../lib -I../gl -I../intl   -I/usr/include-DNP_VERSION='"1.4.14"' 
> -g -O2 -MT check_ntp.o -MD -MP -MF .deps/check_ntp.Tpo -c -o check_ntp.o 
> check_ntp.c
> 
> mv -f .deps/check_ntp.Tpo .deps/check_ntp.Po
> 
> /bin/sh ../libtool --tag=CC--mode=link gcc 
> -DNP_VERSION='"1.4.14"' -g -O2   -L. -o check_ntp check_ntp.o netutils.o 
> utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl  -lpthread -ldl
> 
> gcc -DNP_VERSION=\"1.4.14\" -g -O2 -o check_ntp check_ntp.o netutils.o 
> utils.o  -L/admin_dsi/NAGIOS/nagios-plugins-1.4.14/plugins 
> ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lpthread -ldl
> 
> ld: 0711-317 ERROR: Undefined symbol: .pow
> 
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> 
> collect2: ld returned 8 exit status
> 
> make: 1254-004 The error code from the last command is 1.
> 
> Stop.
> 
> make: 1254-004 The error code from the last command is 1.
> 
>  
> Stop.
> 
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Nagios plugin version: 1.4.12
That doesn't make sense... is says -DNP_VERSION='"1.4.14"' in the error
which means 1.4.14, not 1.4.12.

Could you please try with a fresh extract of 1.4.14 and, if that doesn't
work, 1.4.13?

You could also try adding:
LDFLAGS=" -lm "
to your ./configure command, though I'm not sure if it will help.

Other than I have no idea why it would fail... According to the message
the error would be more descriptive if you add -bloadmap or -bnoquiet,
so you may try them in the LDFLAGS as well and post the result.

Thanks

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

iD8DBQFKwJVu6dZ+Kt5BchYRAieXAJ0VErMoogrt/boECSzsqqLzJLj95gCgrsGL
b3fEae6dXjT7wMw2IQ4nfIA=
=0xy8
-END PGP SIGNATURE-

--
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] plugin for AIX6

2009-09-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/09/09 06:05 AM, nadia kheffache wrote:
> hi,
> 
> i wont to monitor a server AIX
> with nagios, but i have a probleme to complil them. Can you give me please 
> the binaire plugin for AIX if any one have already compliled them??

Can you post a detailed report of your problem? What configure command
did you use? What error did you get? Which nagios-plugins version? Did
you try an older version?

Please also attach your config.log file (gzipped)

Thank you,

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

iD8DBQFKwI0z6dZ+Kt5BchYRAnvfAJ9vOOiAaXXNKODNGtAqe9pgJa0ZVQCgkmfS
jgiLvyKCrDyIPuAlIr/pfFM=
=SaAA
-END PGP SIGNATURE-

--
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] Nagios3 and OSSIM

2009-09-13 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/09/09 10:14 AM, Reynier Pérez Mira wrote:
> Hi every:
> I get installed OSSIM AlientVault with Nagios3. When I try to configure 
> Nagios to check my services OSSIM overwrite the config files. Can any 
> tell me why? What I'm need to change?
> Cheers

I don't know OSSIM but I guess it manages Nagios configuration directly.
You'll either have to find a way to monitor what you need in OSSIM, or
use a separate Nagios installation to chekc what you want.

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

iD8DBQFKrRz96dZ+Kt5BchYRAiziAJ9c25d+sZ307DQYQIGMtoEX1dHhnQCfVtUF
7HTnt3QOKyWX6hY5jZEhrP4=
=mZHZ
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] How to make 1 exception for 1 host when mapping services to hostgroups?

2009-09-07 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/09/09 10:54 AM, Jelle Smet wrote:
> Hi List,

You can exclude a single host/service already included in a
hostgroup/servicegroup with the bang (!) character.

i.e.:

define service {
  host_name  !web1
  hostgroup_name web_servers
}

This will include all hosts in web_servers hostgroup except web1. I
believe you can also exclude a hostgroup/servicegroup the same way, if
you have overlapping hostgroups.

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

iD8DBQFKpST66dZ+Kt5BchYRAsAMAJ4isw5oAGFAA8qTOOrMPqQgJgbgRQCfW0Y5
wPaYKOAjCGNTKIrVxg3VAX4=
=oRWf
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 OCP daemon

2009-09-03 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/09/09 05:38 PM, Yungwei Chen wrote:
> HI,
> 
> I am evaluting OCP daemon in order to improve performance of sending
> check results from one nagios machine A to another. The nagios on
> machine A is also using pnp4nagios to show graphical results.
> 
> I noticed the following in http://wiki.nagios.org/index.php/OCP_Daemon.
> Does that mean machine A will no longer be able to display the graphical
> results once OCP daemon is deployed on machine A? Thanks.
> 
> *The drawbacks *
> 
> * Can't use the perfdata files for what they are meant for without
>   modifying the daemon. Although the proper fix would be to have a
>   dedicated pipe in Nagios for OCHP/OCSP purposes, I might as well
>   implement it in the daemon if there is requests for this (use the
>   Talk page or email me...). This would be in the form of
>   "duplicate" file/fifo files where everything received from Nagios
>   pipes would be written there.

That's only if you use the Nagios performance data files for feeding
pnp4nagios. If you have a command defined for each service that won't be
a proble... Same if you use the central nagios for performance data
processing.

If you need this feature though let me know and I'll add it... It's
pretty simple as long ad you don't need any special file rotation
feature than Nagios provide.

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

iD8DBQFKoEv86dZ+Kt5BchYRAt53AJ4nurQfe1U4ITXY0lxBeoIidUSr7gCeOBOM
ooyX/vhoAvFSM/lNEhc592E=
=OxiL
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_by_ssh error - Remote command execution failed

2009-09-02 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/09/09 05:26 AM, Juki wrote:
> Hello people,
>
> Remote command execution failed: ## !!! WARNING !!!
> #

This had to do with the server's kay that changed and is being cached in
the nagios user's ~/.ssh/known_hosts. Find any entry matching the target
host name or IP and delete them, then connect manually to the host as
the nagios user.

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

iD8DBQFKnkgs6dZ+Kt5BchYRAltaAKCfycXEYyMfZRYlkvPkk6lQj9aHZACdFHt1
iOiO+/G7sLRVhAlWENfydps=
=nXZy
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Problems checking ssl

2009-08-21 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/08/09 03:54 AM, Alex Huth wrote:
> Hi!
> 
> I am having problems with checking ssl. On the commandline everything works
> like expected (because i am new to nagios i hope so ;) ). When i implement
> this in the files, i get a socket timeout. I have checked the string on the
> commandline and in the files several times, but can't see any difference.
> 
> [...]
> 
> define command{
> command_namecheck_https_vhost
> command_line$USER1$/check_http -ssl -I $HOSTADDRESS$ -H $ARG1$ -u
> $ARG2$ -f follow
> }

Did you mean --ssl (not -ssl) ?

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

iD8DBQFKjrMY6dZ+Kt5BchYRAiZeAKCBD4tyFRjPl3XLQvIKbM2QYLyUYQCg0LdV
NqGcuP57DB+Cvd0pz+x2Pbk=
=iwAk
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_ntp offsets

2009-08-19 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19/08/09 01:15 AM, Chris wrote:
> On Wed, Aug 19, 2009 at 1:09 PM, Thomas Guyot-Sionnest wrote:
>> On 18/08/09 10:13 PM, Onotsky, Steve x55328 wrote:
>>>> -Original Message-
>>>> From: Chris [mailto:atst...@gmail.com]
>>>> Sent: August 18, 2009 21:56
>>>> To: nagios-users ML
>>>> Subject: [Nagios-users] check_ntp offsets
>>>>
>>>> I am running check_ntp plugin and I have setup an offset threshold of
>>>> -w 200 -c 300 but Nagios is still showing "Offset -102.234564 secs"
>>>> (Warning)
>>>>
>>>> Running check_ntp from command line shows NTP OK
>>>> (/usr/lib/nagios/plugins/check_ntp -H hostname -w 200 -c 300)
>>>>
>>>> Output: NTP OK: Offset -102.234564
>>>> secs|offset=-102.234564s;200.00;300.00;
>>>>
>>>> Here is what I have added:
>>>>
>>>> edit /etc/nagios/objetcs/command.cfg and add:
>>>>
>>>> define command{
>>>> command_name check_ntp
>>>> command_line $USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c
>>>> $ARG2$
>>>> }
>>>>
>>>> edit /etc/nagios/objetcs/server.cfg and add:
>>>>
>>>> define service{
>>>> use critical-service
>>>> host_namehostname
>>>> service_description NTP
>>>> check_command   check_ntp!200!300
>>>> }
>>> According to your check definition, the result is absolutely correct.
>>> You asked it to warn you if the offset is more than 200 seconds, and go
>>> critical if over 300 seconds.
>>>
>>> What you were probably hoping for were thresholds in milliseconds.  In
>>> that case, you'll want to set -w and -c to fractional values ("-w 0.2 -c
>>> 0.3", or whatever values you actually want as thresholds).
>> The offset and thresholds are both in seconds:
>>
>> $ ./check_ntp -H pool.ntp.org -w 0.001 -c 0.01
>> NTP WARNING: Offset 0.008824706078 secs |offset=0.008825s;0.001000;0.01;
>>
> 
> I have tried all the suggestions but still a no go.
> 
> I still get "offset=-105.293049s;60.00;120.00;"
> and "Offset -105.293049 secs"

According to that result above you're using the default thresholds
(60.00;120.00), meaning that you're not passing the arguments
correctly.

Verify your definitions (especially look for typos - you may have two
very-similar "check_ntp" commands defined), or use the echo trick to see
which what command you're actually running. Use:

command_line echo $USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$

This will skip the check and print the command that normally runs instead.

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

iD8DBQFKi6sb6dZ+Kt5BchYRAsfIAKCosd5iB9nhDFXLZVZxls9DlWmHiwCgpQ+D
CsXIrBr63mx7axlJ5/+p2aY=
=PXRE
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_ntp offsets

2009-08-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/08/09 10:13 PM, Onotsky, Steve x55328 wrote:
>> -Original Message-
>> From: Chris [mailto:atst...@gmail.com]
>> Sent: August 18, 2009 21:56
>> To: nagios-users ML
>> Subject: [Nagios-users] check_ntp offsets
>>
>> I am running check_ntp plugin and I have setup an offset threshold of
>> -w 200 -c 300 but Nagios is still showing "Offset -102.234564 secs"
>> (Warning)
>>
>> Running check_ntp from command line shows NTP OK
>> (/usr/lib/nagios/plugins/check_ntp -H hostname -w 200 -c 300)
>>
>> Output: NTP OK: Offset -102.234564
>> secs|offset=-102.234564s;200.00;300.00;
>>
>> Here is what I have added:
>>
>> edit /etc/nagios/objetcs/command.cfg and add:
>>
>> define command{
>> command_name check_ntp
>> command_line $USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c
>> $ARG2$
>> }
>>
>> edit /etc/nagios/objetcs/server.cfg and add:
>>
>> define service{
>> use critical-service
>> host_namehostname
>> service_description NTP
>> check_command   check_ntp!200!300
>> }
> 
> According to your check definition, the result is absolutely correct.
> You asked it to warn you if the offset is more than 200 seconds, and go
> critical if over 300 seconds.
> 
> What you were probably hoping for were thresholds in milliseconds.  In
> that case, you'll want to set -w and -c to fractional values ("-w 0.2 -c
> 0.3", or whatever values you actually want as thresholds).

The offset and thresholds are both in seconds:

$ ./check_ntp -H pool.ntp.org -w 0.001 -c 0.01
NTP WARNING: Offset 0.008824706078 secs |offset=0.008825s;0.001000;0.01;

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

iD8DBQFKi2zZ6dZ+Kt5BchYRAn4mAJ4y32+xYuxfEJYdvuu7iCyDQwQaxgCePb4H
BBTNdZuZfNm2M7fZXclQnvk=
=Vi0W
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_ntp offsets

2009-08-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/08/09 09:55 PM, Chris wrote:
> I am running check_ntp plugin and I have setup an offset threshold of
> -w 200 -c 300 but Nagios is still showing "Offset -102.234564 secs"
> (Warning)
> 
> Running check_ntp from command line shows NTP OK
> (/usr/lib/nagios/plugins/check_ntp -H hostname -w 200 -c 300)
> 
> Output: NTP OK: Offset -102.234564
> secs|offset=-102.234564s;200.00;300.00;
> 
> Here is what I have added:
> 
> edit /etc/nagios/objetcs/command.cfg and add:
> 
> define command{
> command_name check_ntp
> command_line $USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
> }
> 
> edit /etc/nagios/objetcs/server.cfg and add:
> 
> define service{
> use critical-service
> host_name hostname
> service_description NTP
> check_command   check_ntp!200!300
> }
> 

That's odd. Please check the following:
1. Check that $USER1$ is /usr/lib/nagios/plugins/
2. Please check your check_ntp version. If it's older than 1.4.13 you
should try the latest version.
3. Check that you're checking the same host. A trick to verify commands
is to add echo in front of $USER1$, and grab the command from the web
interface.


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

iD8DBQFKi2W/6dZ+Kt5BchYRAvn7AJoD7OjhjFakLduGLGP2SXyv22UlNgCdFNFZ
sHZw1z8go6a/ukJU6T4DevU=
=QOx9
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_snmp memory leak

2009-04-13 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/04/09 07:26 PM, jmose...@corp.xanadoo.com wrote:
> You could have also just disabled the embedded perl interpreter in the
> plugin itself.  By disabling the embedded perl function, your load  and
> memory usage will certainly be higher.
> 
> The real question, though, is since you're using Cent OS, why not use the
> Nagios RPM's available via yum repository?  It makes upgrading and keeping
> track of dependencies a breeze.
> 
> Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3
> system using the exact options that were found in the RPM spec file.  I
> ended up with a nagios binary that was twice as large as the one that came
> in the RPM package and the version I compiled myself ran using more memory
> and processor resources than the RPM version.  The difference was probably
> the compiler flags I was using were not optimized for my (or any RHEL)
> system.

Are you sure your nagios binaries have been stripped?
> $ ls -lh /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios
> -rwxrwxr-- 1 nagios nagios 1.5M 2008-05-06 11:15 /usr/local/nagios/bin/nagios*
> -rwxr-xr-x 1 user   user   2.1M 2008-05-06 10:08 
> /usr/src/nagios-3.0.1-cvs/base/nagios*
> $ file /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios
> /usr/src/nagios-3.0.1-cvs/base/nagios: ELF 32-bit LSB executable, Intel 
> 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
> /usr/local/nagios/bin/nagios:  ELF 32-bit LSB executable, Intel 
> 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped

The memory and processor (system time) is directly related to the size
of the running process (which includes executable image size). Every
time Nagios executes a check it has to fork two or three times
(depending on configuration) and the kernel has to map/copy the
executable memory for the new processes. Performance degradation can
become even worse on systems that does not support copy-on-write for
forked processes as they perform a full copy of the process memory
during forks only to free it seconds later.

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

iD8DBQFJ42Sl6dZ+Kt5BchYRAkMpAKCZTMJLOmfelHxjRfwOcV3qfYyrIACeMwaC
8u+QBWjmHfSjOvcYg3pQhK4=
=pL0b
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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


Re: [Nagios-users] migration from nagios2 => nagios3 ; host name definition

2009-03-06 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/03/09 05:31 PM, Steve Kieu wrote:
> 
> Hello everyone,
> 
> The first question is, what is the meaning of directive  *name*  in host
> definition? The document says there is no such thing, only *host_name*
> but if put name there nagios (both 2 and 3 does not complain)
> 
> Longer explanation follows.
> 
> When using nagios config version 2 in nagios3 I have some errors.
> Looking at the config of version 2 I see:
> 
> define host{
>   name  standard-host
>   use generic-host; Name of host template to use
>   register0   ; Template - don't register
>   host_name   not-defined
>   alias not-defined
>   check_command   check-host-alive
>   contact_groups pager
>   notification_period 24x7
>   }
> 
> 
> define host{
> namevirtual-host
> use generic-host; Name of host
> template
> to use
> register0   ; Template -
> don't regis
> ter
> host_name   not-defined
> alias   not-defined
> check_command   check-host-alive
> contact_groups  pager
> notification_period workhours
> }
> 
> 
> It worked with nagios2 ; nagios3 Warning: Duplicate definition found for
> host 'not-defined'
> and then error  Could not add object property at line point to host_name
> not-defined.

Since these are templates (register 0) you should just leave host_name
and alias undefined (remove the lines). You'll have to define them
anyway when you use the template.

Seems like this is a bug, though a very minor one.

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

iD8DBQFJsYm36dZ+Kt5BchYRAqjIAJ96vTx4BTshTOBoXGU1SO2mYc4gDwCeNbnA
dCrLGWJZQrnhO4KvUSsjt+k=
=5DjF
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Understanding check_cluster

2009-02-27 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 24/02/09 07:03 PM, Lee Azzarello wrote:
> Here's my config. It's functional:
> 
> define command{
>   command_namecheck-cluster-health
>   command_line/usr/lib/nagios/plugins/check_cluster --service -l
> $ARG1$ -w $ARG2$ -c $ARG3$ -d $ARG4$
> }
> 
> define service{
>   service_description check-cluster-health
>   hostapp-proxy
>   check_command   check-cluster-health!"App Thread
> Health"!0!1!$SERVICESTATEID:app-1:mongrel-count$,$SERVICESTATEID:app-2:mongrel-count$,$SERVICESTATEID:app-3:mongrel-count$,$SERVICESTATEID:app-4:mongrel-count$
>   use serviceClusterTemplate
> }
> 
> define service{
>   service_description mongrel-count
>   hostgroup   app-servers,manager-servers
>   check_command   check_nrpe_1arg!check_mongrel_count
>   notifications_enabled   0
>   use serviceClusterTemplate
> }

Indeed, here's some more macro examples:
$HOSTDOWNTIME:myhost$   <--- On-demand host macro
$SERVICESTATEID:novellserver:DS Database$   <--- On-demand service macro

You can also use hostgroups/servicegroups with a delimiter (delimiter
should be ',' for check_cluster)

# $HOSTMACRONAME:hostgroup_name:delimiter$
# $SERVICEMACRONAME:servicegroup_name:delimiter$

See the Nagios documentation for more details...
http://nagios.sourceforge.net/docs/3_0/macros.html

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

iD8DBQFJp9yD6dZ+Kt5BchYRArtxAKDA2rdPcIsA4dqVUUS3RDUwYJYeOQCgl/Nl
4RywRCmCMXfFmwWTfryiYTo=
=g5Ya
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Service check on DOWN hosts!!!

2009-02-23 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 23/02/09 10:43 AM, Sergio Ariel wrote:
> I have some services (in different hosts) I check by Nagios.
> Some of these service checks spend some seconds to execute, so, I've set 
>   a window time according each time execution. For example: I've some 30 
> seconds timeout service check.
> My problem is that when these host are DOWN, Nagios wait 30 seconds 
> trying to execute the service check. After this 30 seconds, then tell me 
>"CRITICAL SERVICE". I want to avoid Nagios checks any service in DOWN 
> host.
> Please, how can I get it?
> I want Nagios don't execute any service check until host is UP again.

Nagios doesn't send any service notification for down host. If that's
not enough use an eventhandler to disable active services checks on the
host. See the Nagios documentation about "event handlers" and "Adaptive
Monitoring".

If you do so, use Nagios 3.x and make sure you have regularly scheduled
hosts checks or your service will never get back up (nagios generally
use service results as a trigger to hosts checks, though nagios3 added
scheduled host checks and result caching).

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

iD8DBQFJo03O6dZ+Kt5BchYRAvnvAJ4n+FME6lkWaxWDWpAFchHzgq0WpQCgqLy1
qW+glM2Lt+ZtccflllCTaZk=
=PuNL
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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 deployment planning

2009-02-23 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 23/02/09 06:32 AM, Alex Dehaini wrote:
> Alot of things count when deploying nagios. Take for instance - if you
> run your service check every 5 minutes, it is not the same when you run
> it every 30 seconds.
> 
> So, throw some more light and we might be able to help. I run about 1000
> services with 300 hosts. I use a P4 2.0 Ghz with 2 gb of ram. So far,
> nagios can take the load. I check services every 90 seconds.

It also depends on the type of checks you're doing. Plain C plugins runs
very well; Perl plugins, even with ePN, require much more CPU cycles to run.

I have an old server running nearly 1600 checks per minute on a 1.4Ghz
PIII while another one, dual Xeon 2.4Ghz, run a little bit hotter with ~
1300 checks per minute just because a bigger portion of them are Perl
checks (all running under ePN).

There's also the fact that ePN leaks memory (the rate depends a lot on
the slecific plugins/modules running) and cause load to grow higher as
time goes. Without ePN is much worse though - my dual-Xeon wouldn't keep
up without it.

Another consideration is 32 vs 64 bit. Since Nagios forks a lot, the
process size has a noticeable influence on system load, and by making
pointers twice as big, 64bit make processes larger as well. On a 64bit
system it may be worth comparing Nagios speed when compiled in 32bit (if
your system doesn't have a 32bit-capable compiler, compile it on a 32bit
system and copy it over). Don't forget to compile the plugins in 32bit
as too - ePN would need a 32bit Perl installation (or at lease
libraries) as well...

Finally, I don't think a virtual machine is the best choice for nagios,
again the amount of forks makes a good proportion of the system load
from kernel calls. Kernel-mode in emulated in virtual machines which
make it slower.

You can always test with check_dummy and check_stuff.pl (in
Nagios::Plugin source distribution). Create a lot of hosts and services
and see how load is affected.


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

iD8DBQFJoqh+6dZ+Kt5BchYRAjhxAKCrk665Bi5zNy0GaJRU5oCvKsuLIgCg0sJq
i/5OEkRtQgOuxocC/6ChVtc=
=Eizv
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] UNKNOWN service state question

2009-02-17 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17/02/09 03:56 AM, Nicole Hähnel wrote:
> Hi,
> 
> I have several service checks via snmp which are checked only every hour.
> This service checks return unknown if the host is down and nagios 
> doesn't know this yet.
> If the host goes up the service state is still unknown in hard state and 
> only one time checked instead of the max_check_attempts of 3.
> The problem is, it takes about one hour to the next service check or I 
> have to reschedule the next check
> if I don't want to remain the service in unknown state.
> 
> Is this the right behavior for unknown states?
> Why aren't unknown states treated as critical states?
> The recovery of unknown state takes too long.

The recovery time is just the same as critical. the retry_interval is
used only during SOFT NON-OK states.

You should most likely check more often. Most people run checks every 5
minutes, if not 1 minutes. Hourly checks means that it can take over an
hour to detect a service failure.

If you absolutely want that, you could use event-handlers to force
service checks upon host recovery, or configure adaptive monitoring to
that services gets checked more often during non-OK states.

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

iD8DBQFJmrOV6dZ+Kt5BchYRAnv+AJ9WImhMSaD6iV1QVQ9Yb19BtjybLQCg+wJv
8FXQ2VGLurbNkGU2FifoTa0=
=bvYt
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Passive-only checks show up as "disabled"

2009-02-15 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 15/02/09 09:29 PM, Sean Carolan wrote:
>> The only way would be modifying the CGI code. Be aware though that the
>> CGI interface will be replaces by a PHP one in the next major release..
>>
> 
> Very interesting.  I just asked because we like to see "all green" on
> the control panel, makes it easy to identify a problem when the normal
> state is all green.

There has been a similar question asked on the devel mailing list - you
should have a look (see attached).

> Will the new PHP version have a clear upgrade path from 3.0.4?

Most likely like the other upgrades which usually required little or no
extra setup. Right now I think it requires NDODB, but I hope it will
have a plain-file based alternative (I will try to suggest CDB as a
backend replacement for the plain text status files) as NDODB pushes the
complexity level a notch higher IMHO.

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

iD8DBQFJmRPt6dZ+Kt5BchYRApYdAJ0XgYJvm6MC5bcbivr4wIuQgxp4EQCg8QuD
NKRDMKFOcJsCfMKgsb+RJgo=
=wB3O
-END PGP SIGNATURE-
--- Begin Message ---
Hi'

For passive only services I would like to use option

check_period   none

instead of option
  
active_checks_enabled   0

since the latter gives rise to showing these checks as disabled in the
"tactical overview", which the former does not. It is less confusing
for our operators to not see anything being disabled.

Now I have spiced these passive only checks up with freshness checkings, see 
docs/freshness.html, but it seems, that this only works, if I use 
"active_checks_enabled 0" instead of "check_period none". One might suspect 
that, but docs/timeperiods.html states, that "Note: On-demand checks and 
passive checks are not restricted by the timeperiod you specify in the 
check_period directive. Only regularly scheduled active checks are 
restricted.". Would you think, that freshness checking should also fall under 
that category.

Also, the FAQ at 
http://www.nagios.org/faqs/viewfaq.php?faq_id=271&expand=false&showdesc=false 
seems to indicate, that using "check_period none" would be the right thing to 
do, but maybe that was true only in an earlier release.

Best regards.

Thomas.


   
Audi, Fiat, Peugeot, Skoda, Porsche, Toyota, Ford - Kelkoo har brugte biler til 
en hver smag! Klik her for at sammenligne priser.(http://dk.yahoo.com/r/pat/mmb)--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Nagios-devel mailing list
nagios-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
--- End Message ---
--- Begin Message ---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/02/09 08:45 AM, Thomas Lorenzen wrote:
> Hi'
> 
> For passive only services I would like to use option
> 
> check_period   none
> 
> instead of option
>  
> active_checks_enabled   0
> 
> since the latter gives rise to showing these checks as disabled in the
> "tactical overview", which the former does not. It is less confusing
> for our operators to not see anything being disabled.
> 
> Now I have spiced these passive only checks up with freshness checkings,
> see docs/freshness.html, but it seems, that this only works, if I use
> "active_checks_enabled 0" instead of "check_period none". One might
> suspect that, but docs/timeperiods.html states, that "Note: On-demand
> checks and passive checks are not restricted by the timeperiod you
> specify in the check_period directive. Only regularly scheduled active
> checks are restricted.". Would you think, that freshness checking should
> also fall under that category.
> 
> Also, the FAQ at
> http://www.nagios.org/faqs/viewfaq.php?faq_id=271&expand=false&showdesc=false
> seems to indicate, that using "check_period none" would be the right
> thing to do, but maybe that was true only in an earlier release.

You can try the patch attached, although I doubt Ethan will accept it.
He's the one who "Fixed" freshness checks running despite of timeperiod
in 2004:

commit eeb5ca93945994826afc921dc99c650bf5a3fc48
Author: Ethan Galstad 
Date:   Thu Jun 24 05:03:29 2004 +

Freshness checking timeperiod bug fix

OTOH many people complain about passive services showing as "Disabled"
in the tactical overview.

Another fix would be not to show them as disabled in the CGI if the
following conditions are true (any of them will prevent freshness checks
from running):
  - Freshness checking is enabled globally
  - Freshness check

Re: [Nagios-users] fork issues and latency

2009-02-15 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/02/09 09:43 PM, Jeff Frost wrote:
> On Sat, 14 Feb 2009, Thomas Guyot-Sionnest wrote:
> 
>>
>> Which OS/distribution are you running? How much RAM do you have? Free
>> RAM? SWAP?
>>
>> Please send results of "free -m" with and without Nagios running.
> 
> Gentoo
> 
> With nagios running (and fork errors happening):
> 
> free -m
>  total   used   free sharedbuffers cached
> Mem:  4096   1421   2674  0 51   1078
> -/+ buffers/cache:292   3803
> Swap:  511  0511
> 
> nagios4808  6.8  0.2  72716 11916 ?Rsl  02:00   2:47
> /usr/sbin/nagios -d /etc/nagios/nagios.cfg
> 
> Without nagios running:
> 
> # free -m
>  total   used   free sharedbuffers cached
> Mem:  4096   1364   2732  0 51   1073
> -/+ buffers/cache:238   3857
> Swap:  511  0511
> 
> Immediately after nagios start:
> 
> # free -m
>  total   used   free sharedbuffers cached
> Mem:  4096   1386   2709  0 51   1079
> -/+ buffers/cache:255   3840
> Swap:  511  0511
> 

This is very strange as you should have plenty of available memory (this
is a 64bit system right?) even when you see the fork() errors.

Are you able to find the exact errorno with strace?

Which kernel are you using? Do you have any security features enabled
(selinux, grsecurity, pax, etc?)

Is there anything logged by the kernel (dmesg)?

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

iD8DBQFJmDSi6dZ+Kt5BchYRAs6uAKDUPXAQwprDRZDoQjznJRRMZi6coQCdFf7z
uc5JVKfaOEMvLMgQzNLwQbk=
=CAfh
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] nsclient 0.3.6-RC4-x64 issues

2009-02-14 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/02/09 09:53 PM, Joseph L. Casale wrote:
> I can only seem to get monitoring working for WinXP but not Windows 2008. The 
> same
> config file should work on both, but Nagios suggests "CRITICAL - Socket 
> timeout after 20
> seconds". This error returns many hits but I haven't found a solution for my 
> scenario yet.
> 
> I have set the plugin timeout to 30s and confirmed  the master timeout to be 
> higher.
> 
> Anyone got any pointers for Win 2008x64?

Normally Windows monitoring use NC_Net or NSClient++. Can you give more
details on the check you're doing (the real command, not check_command)?

If you're using check_nt or one of its substitute (NC_Net has
check_nc_net, NSClient++ may have one too) make sure the proper service
is installed and running on the Windows server. Try restarting the
service if it's already running. Make sure the configuration is good
(especially port and password).

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

iD8DBQFJlyvx6dZ+Kt5BchYRAhtXAKD1mLoeQtoLcZXR/vW2XJBd/1TuYACgg0aT
FFm8riRhmykC3o/GM1Nn0L4=
=am5l
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Passive-only checks show up as "disabled"

2009-02-14 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/02/09 04:45 PM, Sean Carolan wrote:
> I have a service that is defined as below.  This service only accepts
> passive checks, not active ones.  It does not have an "active check"
> at all, but I put check_ping for check_command so nagios would not
> complain about it being missing.
> 
> Question is - how do I get this passive-only check not to show up in
> RED as a Disabled service?

The only way would be modifying the CGI code. Be aware though that the
CGI interface will be replaces by a PHP one in the next major release..

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

iD8DBQFJlvBD6dZ+Kt5BchYRAhZYAKDPmk3g4I24ktcNmEOd003CkC9oiQCgkWxT
vgel3zz+0SbRiR2h84dIGIY=
=9vdA
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] "Could not complete SSL handshake"

2009-02-14 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/02/09 12:34 PM, Lee Azzarello wrote:
> Here's a mystery for the books. I was alerted this morning of a socket
> timeout while nagios attempted to connect the NRPE server on a remote
> host. I go in and manually check that host and sure enough:

- From my personal experience NRPE often fail on the SSL handshake under
load - since it happen on the SSL part the connection is already open
(therefore you can telnet to the port without any problem).

I never really looked into issue because none of my servers runs hot -
When I get NRPE timeouts there's usually other stuff that's sending
alerts already (at least the load average check running trough SNMP).

Things you may try:
- - Lower the nice value of the NRPE process
- - Disable SSL
- - When compiling NRPE, in include/common.h, increase the socket timeout:
  #define DEFAULT_SOCKET_TIMEOUT10/* timeout after 10 seconds */
- - Increase the check_nrpe and/or nagios active check timeouts.


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

iD8DBQFJlu+e6dZ+Kt5BchYRAq6nAJ0boUmZyySZ7adQ8tBNtMhrcZQpogCgnbSu
Mt/FbvA8GfzdMFig56KwBx0=
=MQtG
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] fork issues and latency

2009-02-14 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/02/09 12:27 PM, Jeff Frost wrote:
> I've got a Nagios-3.0.4 server monitoring 3,290 services on 387
> hosts.When the nagios service is initially started, service and host
> latency is great.  This usually continues for about 2-3 hours and then
> we start seeing fork errors in the log like so:
> 
> [1234425582] Warning: The check of service 'ssh' on host 'mail02' could
> not be performed due to a fork() error: 'Cannot allocate memory'.  The
> check will be rescheduled.
> 
> At about the same time, we start seeing lots of orphaned
> /tmp/checkXX files and indications that the max concurrent checks
> value has been reached:
> 
> [1234458853] Max concurrent service checks (500) has been reached. 
> Delaying further checks until previous checks are complete...
> 
> It should be noted that during this time period, there is 2GB of free
> memory and 1.2GB of cache available out of the 4GB on the nagios server,
> so I'm thinking it has to be something besides system RAM that's exhausted.
> 
> Naturally, when this starts happening, the latencies begin to increase
> and seem to settle somewhere around 98seconds and interestingly enough,
> this causes the load to drop to nearly nothing.
> 
> We have already set the following in nagios.cfg:
> 
> service_reaper_frequency=2
> use_large_installation_tweaks=1
> enable_environment_macros=0
> 
> If we enable the embedded perl interpreter, the forking issues happen
> much more quickly after restart (minutes instead of hours).

Which OS/distribution are you running? How much RAM do you have? Free
RAM? SWAP?

Please send results of "free -m" with and without Nagios running.

Also send the RSS size of the Nagios process after start, and once you
get the fork errors.

Nagios 3 is leaking some memory, especially when using the ePN. However
unless your server is really short on RAM it shouldn't be a huge problem.

If you're stuck with low-end hardware make sure to run the server
without its graphical interface and disable as many daemons as possible.
A slim Linux distribution like Slackware (if you use Linux) could also
help. Another setting that could help is limiting check parallelization,
though it was reported that there may be a problem with it on Nagios3
(it hasn't been confirmed AFAIK).


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

iD8DBQFJluyT6dZ+Kt5BchYRAo67AKCGGhi+EzKbxNvkMuzOkYOqsQDG3ACgqIG9
9jlBUwg6O2pM6vWA7qQdNTs=
=l5Hz
-END PGP SIGNATURE-

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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 Problem

2009-02-11 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/02/09 02:43 PM, Vasiliy Boulytchev wrote:
> Gents,
> 
>   I am trying to have Nagios specify which partition to check via
> nrpe... and am getting the following error:
> 
> DISK CRITICAL - 10 is not accessible: No such file or directory
> 
> Here is my configuration:
> 
> 
> ###
> 
> define command{
> command_name check_nrpe_manual_disk
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
> check_manual_disk -a $ARG1$ $ARG2$ $ARG3$
> }
>  
>  
>  
> command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk
> -w $ARG1$ -c $ARG2$ -p $ARG3$
>  
>  
>  
>  
> define service{
> use local-service
> host_name localhost
> service_description Manual Disk /dev/sda1
> check_command check_nrpe_manual_disk!20!10!/
> }

It looks like an extra argument is passed somehow, so check_disk ends up
checking the the path "10" (your warning threshold)", although your
config looks ok. Are you sure NRPE and Nagios have been started with the
most recent config, and there's not more than one instance of Nagios and
NRPE running?

Have you tried running the check trough the command link (check_nrpe)?

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

iD8DBQFJk7aK6dZ+Kt5BchYRArhiAJ0dYvtmC13zVi0WGHFaWXeB/snukACgr8By
JhACq1XdPD5D2Ay+7IJdzgI=
=Yglg
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Ack/Downtime on multiple hosts/services

2009-02-11 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/02/09 12:11 PM, Jason Frisvold wrote:
> Greetings,
> 
>   I'm relatively new to Nagios and still trying to wrap my head around
> it.  One thing that I have not been able to find is a way to ack or
> place into downtime multiple items at once.  Is there a way to do this?
>  If so, how?  If not, is there some other way I'm supposed to handle
> these sorts of situations?

If you put a host into downtime, it suppress all service notifications.
You can also use commands like "Disable all notifications for this host"
There's also a few commands you can run for the whole hostgroup or
servicegroup.

Other than that I used to write quick and dirty scripts to send
mass-command to the command pipe in the past - nothing really re-usable
though, see the libexec/eventhandlers directory if you need some
inspiration.

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

iD8DBQFJk7QK6dZ+Kt5BchYRAmYwAJwN25CAfpdu9X+E8PCDA/Rze7mv5ACeKvjq
pHZXRrErlqflBsM/TeYE5XM=
=wo4m
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Acknowledge all services on a host

2009-02-11 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/02/09 04:29 PM, Matt Nelson wrote:
> Is there a way to acknowledge all services that are in an error state on
> a host?
> 
> This would be very handy.  I currently have a server that has around 12
> services, and if 5 of them die I have to go acknowledge each of the 5
> rather then for the whole host.  This takes a lot of time away from me
> being able to get to work on the problem sooner.
> 
> Am I using Nagios wrong, is there a better way to do this?
> 
> We would use the "Schedule Downtime" but I would like it to be alerted
> for once it "goes good" again.

Not exactly the answer to your question, but if you're having multiple
failures related to the same service (i.e. multiple HTTP checks,
multiple NRPE/NSClient checks, etc) you can use service dependencies to
suppress extra notifications (therefore less services to acknowledge)

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

iD8DBQFJk7LW6dZ+Kt5BchYRAmVDAKD9I389rv2T8lJfWQ7nESjuqUk2vACdF0Ja
Ldr27olcZtPMDmOo/zRSM80=
=DSED
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Alternate check interval when state become CRITICAL

2009-02-10 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/02/09 04:23 PM, Justin Pasher wrote:
> Thomas Guyot-Sionnest wrote:
>>> What I would like to do is have the check interval change to every
>>> one minute when the state become CRITICAL, but keep the notifications
>>> at 5 minute intervals.
>>> 
>>
>> It's simple: use an eventhandler.
>>
>> You can look at this for inspiration, although you would likely need
>> some more details to understand what I'm trying to do there...
>> http://solaris.beaubien.net/~dermoth/media/nagios/handle_stall_counter
>>   
> 
> Alrighty. I took the script above as the base and tweaked it to my
> setup. The theory behind the code is working, but there is still one
> caveat. When the service goes into a HARD CRITICAL state, the event
> handler is called and it correctly sends the command to Nagios to update
> the check interval. The problem is that when the command is sent to
> Nagios, Nagios has already set the next scheduled check (which defaults
> to five minutes out). This means the next service check still won't
> happen for another five minutes. After the next check occurs, if the
> service is still in a HARD CRITICAL state, the NEXT scheduled check will
> follow the new check interval that was set by the event handler (one
> minute). At that time, it will continue to perform checks at one minute
> intervals until the service is normal again.
> 
> Once the service is back to a normal state, the event handler is called
> again, which send the command to Nagios to change the check interval
> back to five minutes. However, like before, the next scheduled check has
> already been set (one minute out), so the check happens again in one
> minute. If the service is still up, it applies the check interval set by
> the event handler.
> 
> In the latter instance, it's not that big of a deal since it just causes
> another check a little sooner than usual. However, in the first
> instance, because the next scheduled check is still five minutes out the
> first time around, it defeats the whole purpose of having the custom
> event handler
> 
> Do you know any way around this? I've attached the service info and
> event handler for reference.

Have you tried scheduling a check or forced check? I'm not 100% sure,
but one of these commands might override the next scheduled check..

See here for the nagios commands:
http://www.nagios.org/developerinfo/externalcommands/


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

iD8DBQFJkhIf6dZ+Kt5BchYRAgKJAKDmraVhHhaY3vzktA3J8d5tIfjjGACdFXwt
b+P21wl24AAXoEF7Y8uwPUM=
=jiUD
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] check postgres - parsing password

2009-02-09 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/02/09 12:37 AM, Chris wrote:
> I am using the check_pgsql plugin to check my postgres database on a
> remote server. My postgres password has special characters "$" and
> "#". It works fine from the command line when I parse my password
> using the "\" escape sequence. But I tried from Nagios configuration
> file and it says "Password authentication failed." commands.cfg has
> 
> define command{
> command_name check_postgres
> command_line $USER1$/check_pgsql -H $HOSTADDRESS$ -l $ARG1$ -p
> $ARG2$ -d $ARG3$
> }
> 
> unix.cfg
> 
> define service{
> use generic-service
> host_name   server1
> service_description Postgres Database Engine
> check_command
> check_postgres!nagios!pa$$w#rd!database_name
> }
> 
> In commands.cfg I have tried putting the password directly with escape
> sequence and double quotes, with no luck.

You most likely want to use single quotes around your password as "$"
will be interpretted by the shell. AFAIK $$ in command definition/args
should work.

Putting that together (with the command_line above):
check_command  check_postgres!nagios!'pa$$w#rd'!database_name


Want to know what end up on the command line? add "echo" in front of the
command before $USER1$ (you will not see single and double quotes, but
you'll see if characters are being interpreted). If you need more
details a simple perl script can print arguments one by one.

Finally, if you're out of ideas, get the Git (or SVN) head and enable
extra-opts in configure, then you can define the password in an ini file.

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

iD8DBQFJkRmd6dZ+Kt5BchYRAr9jAJ9vvRbWqBA7OhMGDFQVoU1L8tcL7QCgiEBz
T4d527nhA1k1grHQqglr5L8=
=IT8i
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Alternate check interval when state become CRITICAL

2009-02-09 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/02/09 06:57 PM, Justin Pasher wrote:
> Hello,
> 
> (I have included the applicable nagios definitions at the end of the email).
> 
> I'm trying to figure out if this is even possible. I am running Nagios 
> 3.0.6 on Debian Etch. I have some service checks setup to see if a web 
> site is still reachable. The check itself is pretty simple. It inherits 
> most of the options from a service template (most were the default 
> settings out of the box).
> 
> Right now, the check happens every 5 minutes. If the check_http exceeds 
> the timeout, it changes to a CRITICAL state and the alert is sent. After 
> that, it continues to check every 5 minutes to see if the state changes. 
> If the state remains at CRITICAL or changes to OK, another notification 
> is sent out.
> 
> What I would like to do is have the check interval change to every one 
> minute when the state become CRITICAL, but keep the notifications at 5 
> minute intervals.

It's simple: use an eventhandler.

You can look at this for inspiration, although you would likely need
some more details to understand what I'm trying to do there...
http://solaris.beaubien.net/~dermoth/media/nagios/handle_stall_counter

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

iD8DBQFJkRdO6dZ+Kt5BchYRAkorAJ9SLvtDLhVVM/FIPsztLTEOeRf4nACg32sT
EbNrMLPGjm76Rf1/OeWkkSw=
=GOYA
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] latency performance critical performance when set "servicegroup" in a service

2009-02-09 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/02/09 05:29 AM, Emmanuel Vargas wrote:
> Hi,
> 
>  
> 
> Don’t know if somebody already have this issue but if I set a
> “servicegroup” in a service my “check latency” is very very high. From
> 1s without the servicegroup to 30 or 40s with servicegroup set!

All my services are in servicegroups and I have absolutely no latency
problem.

One of my systems is running >1000 checks per minute on a dual P3 1.4GHZ
right now with no more than 3-something seconds latency. I'm using all
possible large installation tweaks.

If you can enable debug output and pinpoint where you get latency that
would greatly help.

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

iD8DBQFJkDqV6dZ+Kt5BchYRAgoVAKC3wJFdVY6CAQw2+0P9EgsuetLs4gCfcUxf
00ry4X6i2V5EOjZMohiR3jA=
=Kt7o
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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

Re: [Nagios-users] question about check_snmp

2009-02-05 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/02/09 08:10 AM, Sergio Ariel wrote:
> First of all, I wanna congratulate everyone has developed Nagios' 
> plugins. They did a great job.
> 
> I need to know all possibles output messages check_snmp plugin can show.
> Please, if somebody has the source code send it to me.

The git repo, official release and snapshots can be accessed from this page:

http://www.nagiosplugins.org/


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

iD8DBQFJiubW6dZ+Kt5BchYRAv+IAJ45A7fmYlb4Hv0FPrVT/d7lkmw0tgCgg/Ck
pxAb44LPyGPMIdArlchA/gU=
=nr+Q
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] check_process for threads possible

2009-02-05 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/02/09 04:19 AM, Roman Fiedler wrote:
> Hi list,
> 
> On one machine the count of processes with check_procs and "ps aux" 
> stays the same (17), but the number of threads is increasing until one 
> application breaks. "ps auxH" then lists > 500 elements. Is there a 
> possibility to count these threads using check_procs?

You can manually override the ps command for check-procs - i.e. you
could add the argument to show threads.

See "./configure --help" and look into config.h for the surrend command
definition.


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

iD8DBQFJiuZi6dZ+Kt5BchYRAtrZAJwIBr3mkalRt4NlBJTCoA8pEXVz7wCfdqfP
7i8a5MrmJOingEilI0pcf9k=
=mViZ
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] FW: Monitoring Windows Host's clock

2009-02-05 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/02/09 12:57 AM, Kahlon, Robby wrote:
> Does anyone know how to monitor NTP client's time?
> 
>  
> 
> I am using check_ntp to monitor NTP Server time. It works fine but won't
> monitor NTP client's time.
> 
>  
> 
> *NTP Server [10.15.11.130]*
> 
> [r...@seq-util libexec]#./check_ntp -H 10.15.11.130 -w 60 -c 120 NTP OK:
> Offset 0.063741 secs
> 
> * *
> 
> *NTP Client [10.15.11.132]*
> 
> [r...@seq-util libexec]#./check_ntp -H 10.15.11.132 -w 60 -c 120
> 
> NTP CRITICAL: No suitable peer server found - Server for ntp probably down

Hi,

In the future please write a new email instead of forwarding or replying
to a ml post or digest.

You can normally check NTP clocks of windows servers if they're acting
as a clock server - Domain controllers usually do.

IIRC you can start the service on normal servers and you'll be able to
check them too.

BTW, check_ntp is deprecated. Since windows servers do not support NTP
control packets, check_ntp_peer will not work; use check_ntp_time instead.

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

iD8DBQFJiuX26dZ+Kt5BchYRAo9/AKCUpXjjj1rgVxlKylNJ67jgQtXE7QCg8TVi
tTivYTmhYSbshcv4zA6mFQc=
=ZP5r
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Nagios::StatusLog perl module issue

2009-02-04 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/02/09 03:35 PM, shadih rahman wrote:
> 
> I am trying to parse nagios log using Nagios::StatusLog perl module.  I
> am getting error while trying to parse.  I am using nagios version
> 3.0.6.  Any help will be much apreciated.  Thanks

Please to not cross-post to multiple mailing lists. Using multiple
separate emails do not make this a better practice.

Thanks

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

iD8DBQFJikD16dZ+Kt5BchYRAjYHAKDM79G6dxrDhgL5U/z+iMXfHi0b9wCgs1KX
BvrOkHTUdWHRvL5yXhuygmA=
=BpUX
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Receiving traps from an APC ups..

2009-02-03 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/02/09 06:38 AM, Jaime Ventura wrote:
> hello, I have the following problem.
> 
> I've configured a nagios service to monitor actively(to get state and
> perfdata) and passively (so it can receive snmptraps via nsca-client) an
> APC ups..
> 
> At the moment, the ups has one intermittent problem and one permanent
> problem, which result the on sending traps, the following way:
> 
> receive 'Problem 1' trap: critical  -> nagios notification CRITICAL
> receive 'Problem 2' trap : critical -> nagios does not send
> notification, because status is the same(CRITICAL)
> receive 'Problem 1' trap : ok  -> nagios notification OK (status
> changed)
> receive 'Problem 2' trap : critical -> nagios notification
> CRITICAL(status changed)
> 
> So, heres's the problem, When problem 1 is solved, the UPS still has
> problem 2 (and it keeps sending traps of the same problem). Receiving an
> OK trap, nagios will change the service status to OK while having
> another problem.
> Because of that, nagios keeps sending ok notification, even thought ups
> is not ok, and service is kept flapping.
> 
> Is there any way to solve this?
> Can I force nagios to use the active_check command every time it
> receives a trap(even if it is a ok trap).

You should use volatile services to monitor this kind of problem, though
 if you want to see recoveries you will need to send that as an alert
(warning or critical).

You could also use one passive service per trap, but the general way of
handling traps is by using volatile services.

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

iD8DBQFJiDyF6dZ+Kt5BchYRArKNAKDVLoxioYBpNzUhQCXJzQrmMAyk1wCgiyWi
pd5oMovsAaoEOMarMXz6D3k=
=ERAb
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Nagios side.html : tweaking "Unhandled service problems"

2009-02-03 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/02/09 02:39 AM, Frederik Vanhee wrote:
> Hi,
> 
> I thought it was great to have the "unhandled service problems" in the 
> sidebar.
> Earlier versions didn't have it and I really needed it, so I'm very happy.
> 
> However, I'm running a distributed setup with active and passive service 
> checks, so I'm not only interested in the active checks, but also in the 
> passive checks
> The default filter for "unhandled service problems" is :
> 
> Not in schedulded downtime & Has not been acknowledged & Active checks 
> enabled => serviceprops = 42
> 
> what I really need is :
> 
> Not in schedulded downtime & Has not been acknowledged & Active checks 
> enabled || Passive checks enabled => serviceprops = ??
> 
> I looked into the status.c source, but I can't seem to find the values 
> to compose custom filters.
> Is there anyone out there who can point me into the right direction ?

It's a bitmask. If you know what a bitmask is, have a look here for the
values you can use:

include/cgiutils.h.in - line 276: HOST AND SERVICE FILTER PROPERTIES

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

iD8DBQFJiC1i6dZ+Kt5BchYRAgCBAKCaoB7Z/T9GbXE0JUpBKRaXFqwcuACfWJTc
59mbt2Z2A49kpCSA7dw9WCk=
=VDWw
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Strategies for monitoring a generic batch script

2009-02-03 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/02/09 03:10 AM, Paolo Tealdi wrote:
> Dear all,
> 
> i'm searching for the best strategy in nagios for monitoring the 
> result of the execution for a generic batch (could be an rsync batch 
> or a backup or something else) that runs a few times in a day via 
> cron interface.
> I could create a file if all goes well and check for the existance of 
> the file and for it's creation/modification time, but this seems to 
> me a little awkward ...
> Anybody has a better idea ?

I use send_nsca and configure a passive check - the script returns OK of
no error occurred or an error status if anything went wrong. This also
has the advantage of reducing the load on your monitoring server.

You can also use freshness checking to send an alert when no results
come in after some time.

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

iD8DBQFJiC/z6dZ+Kt5BchYRAu8BAJ0X89B3P7kgAiN5IAfl43IAbXa9wQCeMJ+k
FVJ7ZfYLEFyEhorO4PW80Ho=
=ESlf
-END PGP SIGNATURE-

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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


Re: [Nagios-users] Strange problem with plugins timing out

2009-01-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 30/01/09 09:59 AM, Sean Carolan wrote:
>> Here's how my check_by_ping plugin is configured:
>>
>> command_line$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c
>> 5000.0,100% -p 5 -t 60
>>
>> Can anyone help me?  Why is it still timing out after ten seconds,
>> even when I have explicitly set the timeout at 60 seconds??
> 
> The FAQ page seems to indicate that the default timeout for most
> plugins is 10 seconds.  Why are my plugins still timing out even
> though I have "-t 60"?

Regarding your ping check, it may be trying to perform reverse DNS
lookups and when this times out it always take time. Try fixing the DNS
if you can, or use check_icmp instead (the plugin must be setuid root).

Besides the plugin timeouts, you also have the Nagios check timeouts
(nagios.cfg) and, when running plugins trough NRPE or SSH, the
check_{nrpm,ssh} timeout.

Hope this helps,

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

iD8DBQFJg+Ac6dZ+Kt5BchYRAuR9AJ4jIWQvNVSrqSZQRoxhnWK7JXrAvACfVbA+
EcecLTQ6ARSG+lrstHzVQI0=
=38+a
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Duplicates Found

2009-01-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 30/01/09 03:53 AM, Handle Thomas (LZD) wrote:
> Good Morning,
> 
>  
> 
> First of all I have to say that I´m new to Nagios, I got the project 4
> weeks ago from a resigned employee.
> 
> Two weeks ago, my firm had to move the emergency stop.
> 
> Since this moment, we´re experiencing problems like “DUPLICATES FOUND”.

I'm not too sure if I understand you, but if you're getting duplicate
object errors on Nagios startup it may be possible that the config was
broken AFTER the last Nagios restart (ex. by the former employee). The
only way to fix this is to use backups of your config or fix the errors
one by one.

In the mean time if you need to get nagios back up and still have the
objects.cache file in the var directory, you could possibly back it up
and use it as a precache file (works with nagios 3.x only): copy the
file as objects.precache and start nagios with "-u".

Once you fixed your config, you can always double-check that you didn't
messed it up by comparing the backed-up object.cache and the new one.
use "diff" or "vimdiff" for that. The only difference should be the date
in the headers.

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

iD8DBQFJg5kB6dZ+Kt5BchYRAqr+AKCm923wEXqNZNvyo9tN6kUtvqC8OgCgjf9d
dvpSx7ytlF0UO8YhFXWb5IU=
=z8sK
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Problems Compile Nagios Plugin 1.4.13

2009-01-29 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/01/09 01:43 PM, Felipe Ferreira wrote:
> 
> Problems Compile Nagios Plugin 1.4.13
> All this big mess started because I need the MySQLPerf plugin, whitch is 
> a really cool plugin, but it needs the
> source of the official plugin.
> 
> [...]
> 
> Installed both debian radius called "libradius1" and "libradius1-dev".
> 
> Still same problem!
> 2 questions,
> 1.Is it possible to do the ./Configure --.without (radiusclient) I have 
> tried many ways but it always find it then gives me errors and exits.
> 2. Is my problem with OpenSSL instead? If so how to fix it?

It should work with the libradius1 packages you installed. However if
you get the same error there might be a problem with your previous
radiusclient installation and it may still be trying to use it
(therefore not using libradius1).

Try removing every files installed by the other radiusclients and start
over from configure again.

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

iD8DBQFJgifh6dZ+Kt5BchYRAgHTAJ9jHiHOYGyXEiniOsy6+iaaRkD5YgCeJZFX
XZnw+5ipvrN3TEXL6z/xNb8=
=rk6n
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] NDOutils and Nagios startup speed

2009-01-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/01/09 08:05 PM, Mathieu Gagné wrote:
> Hi,
> 
> Marc Powell wrote:
>>> Is there a way to speed things up? Any help would be appreciated.  
>>> Thanks.
>> I'm interested in tips as well.
>>
> 
> One way to speed up Nagios start when using NDOutils is to tweak 
> "event_broker_options".
> 
> Here is my new configuration, based on constants defined in 
> include/broker.h:
> 
> # BROKER_EVERYTHING  1048575
> # -BROKER_TIMED_EVENTS   2
> # -BROKER_SERVICE_CHECKS 4
> # -BROKER_HOST_CHECKS8
> 
> event_broker_options=1048561
> 
> I personally don't care about raw host/service check results and 
> internal scheduling. It's already available in nagios.log and don't need 
> to access such data remotely. Also host/service status are already 
> available in nagios_hoststatus and nagios_servicestatus.
> 
> There's probably more to disable.

Not sure if it works already, but IMHO a good solution would be to
prepare the new database in a similar way to the precache file.

I guess it could work like this (I only have partial understanding of
the NdoDB architecture):

1. You run the precache option - an event broker (could be NDODB itself)
prepare the DB for the next run by communicating the information to the
remote end (**),
2. When you load using the precache file it sends an instruction to use
the prepared database data.

(**) Not sure which is the best way here... If preparing a SQL dump file
and loading it at once (with as many options as possible like locking,
no foreign keys extended inserts, etc) goes fast this could be the way.

Another options could be updating the DB live (data insert for deleted
objects will fail, while new objects will just wait for data to come in...

Finally it could be possible to just prepare new tables, and then
replace them all at once.


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

iD8DBQFJgTBC6dZ+Kt5BchYRAjcRAJwOxtigBMRPxilPEFU+rDxdWls1IgCg/Xd0
/vxXmPWdElCcYoy8sZACo7E=
=j7iQ
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Define notification contacts based on hostgroup

2009-01-28 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/01/09 05:16 AM, Kenneth Holter wrote:
> Hi.
>  
>  
> Is there a way to configure Nagios to define contacts based on
> hostgroups? In other words: I'd like to send all notifications for a
> hostgroup A to the contact X. Is this possible?

I use host templates that assign the hostgroup with the "hostgroups"
directive, so all I have to do is to oberride the contact group on these.

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

iD8DBQFJgFVF6dZ+Kt5BchYRAjLLAJ4mkMz/IxzPX4rVq6Tryw5Usw3r6gCeK76J
QaSnyr+qZmCM8DgLtOSwTHU=
=1KYr
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] What does the flag failure_prediction_enabled

2009-01-16 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 15/01/09 11:48 AM, Michel MAYEN wrote:
> Hi all,
> 
> I use Nagios 3.0.6
> 
> I can't find any informations on the flag "failure_prediction_enabled"
> in service definition. What is the effect of this flag ?

First result for 'nagios failure prediction' on Google:

http://www.google.com/search?btnI=&q=nagios+failure+prediction

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

iD8DBQFJcUT/6dZ+Kt5BchYRAr5cAJ4srxIpd0iDas6b97lV2HR077JZIQCgzRhW
ySwz6zDhW1W9FB4bGo81C1s=
=ekIt
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Retrieving Data from M.I.B.

2009-01-15 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 15/01/09 06:13 AM, Sean O`Brien wrote:
> Dear Mailing List,
> 
> 
> My question is regarding the check_snmp_int.pl plug-in functionality.
> 
> At present the script retrieves network information from the M.I.B.-II and 
> has the functionality to output performance 
> data in octects on specified devices.
> Using, for example:
> 
> -Soption: Include speed in performance output in bits/s as 
> '_speed_bps'
> -y option : output performance data in % of interface speed
> 
> 
> However, is there a plug-in (similar to the one above) that can calculate the 
> percentage of interface speeds of Unicast 
> and Broadcast packets?

To calculate percentage, you need a maximum value and you don't have one
for packets. Packet throughput depends mainly on average packet size and
hardware so there's no way it could be shown in percentage.

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

iD8DBQFJbxwW6dZ+Kt5BchYRAiE5AJwJg8dzHwPvd/tuSCQhV1qozw0fLgCg3tHr
1B1BP4bwPBeUVugePeRFkaA=
=mvWn
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Growing CPU utilization

2009-01-07 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/09 06:14 PM, Marc Powell wrote:
> On Jan 6, 2009, at 4:23 PM, Bryan Wann wrote:
> 
>> Through process of elimination, I think I've tracked it down to perl
>> plugins. ePN is in use.  I'm tracking 11,309 services on 1,364  
>> hosts, 26%
>> of those service checks are perl (manubulon.com's check_snmp_mem,
>> check_snmp_load) and the rest are C (check_icmp, check_snmp).
> 
> Unless those perl plugins have been designed specifically to work with  
> ePN, then I wouldn't be too surprised to see oddness. ePN transforms  
> the plugin in a way that can cause unexpected breakage if the author  
> wasn't expecting it.
> 
> http://nagios.sourceforge.net/docs/3_0/embeddedperl.html and 
> http://nagios.sourceforge.net/docs/3_0/epnplugins.html 
>   as well as most archive postings by Stanley Hopcroft can provide  
> insight as well as some troubleshooting hints (like using contrib/ 
> mini_epn for testing, though I have doubts it would show a gradual  
> problem such as this).
> 
> The simplest troubleshooting path may be to use the '# nagios: -epn'  
> flag to disable ePN processing on individual plugins (or all, then add  
> them back individually) to help identify the plugin that's causing the  
> issue.

I noticed the same thing; the system CPU time increase is directly
attributable to the memory leaks in Nagios and/or ePN.

That said, the speed at which memory leaks in Nagios 3.0 with the same
configuration and scripts is tremendously higher. There is very likely
some important leak(s) that got shipped with the 3.0.x release.

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

iD8DBQFJZYmI6dZ+Kt5BchYRAp3WAJ9SmUSQpYgGBRLk6GXIXtfHq9NU+QCgqEmY
8JaMF8NGrB0WlRACrmLW4y0=
=bYoW
-END PGP SIGNATURE-

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] 3 doubts on SMS alert system for Nagios : by kannel SMS gateway

2009-01-02 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 30/12/08 08:36 AM, KK CHN wrote:
> Hi all ;
> 
> I followed this tutorial
> http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1855.html
> 
> [...]
> 
> define command{
> command_nameservice_notify_with_sms
> command_line$USER1$/notify_sms -a   MY_MOBILE_NUMBER-u  
> MY_USER_NAME-p
> MY_PASSWORD -m \ '$NOTIFICATIONTYPE$:$HOSTNAME$ is $SERVICESTATE$
> ($SERVICEOUTPUT$)\' -t $CONTACTPAGER$
> }
> 
> 
> I have 3 doubts  
> 
> doubt 1) is the above configuration correct ?
> 
> [...]

I don't know about this tool, so all I can suggest is to dead the doc...

> doubt 2  ) why I have to add again  the following  config section ? i
> mean the purpose of the following lines ?
> 
> define command{
> 
> |  command_namehost_notify_with_sms
>   command_line/usr/lib/nagios/plugins/notify_sms -a 1012345 -u 
> myusername_for_gw -p mypassword_for_gw -m \'$NOTIFICATIONTYPE$: $HOSTNAME$ is 
> $HOSTSTATE$ ($HOSTOUTPUT$)\' -t $CONTACTPAGER$
> 
> 
> |
> 
> }

One is for service and the other for host notification, as some macros
differs. The host one (above) seems OK, but in the service one (top of
email) seems to be missing the service name macro: you will know that
something is WARNING/CRITICAL/UNKNOWN about a service of your host but
it won't tell you which service it is... which is usually kind of useful. :)

> 
> doubt 3)   if I added the 2  define command sections   in commands.cfg  
> as in the website  , can I get an sms alert ?anything else  I have to
> add in localhost.cfg   ? (where I have services to check
> ssh,ping,http   in the localhost . )

Don't forget to use the commands above in your contact definitions for
host and service alerts. If you wish to receive emails as well, you will
need the contacts twice (one for email and one for alerts). You can also
play with the notification options; for instance I receive all
WARNING/CRITICAL/OK/DOWN/UP alerts on email, but only CRITICAL/DOWN on
pager, so I don't wake up in the middle of the night for something that
doesn't require immediate attention.

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

iD8DBQFJXu4Q6dZ+Kt5BchYRAp7ZAJ4lIN87ZAKVOdt9dtfXOJfci8PiMwCdG4bQ
CxyBSh4GG2Dx0F0U4hHUGRY=
=Qu2J
-END PGP SIGNATURE-

--
___
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_ntp_time : "Offset Unknown" for any host since yesterday

2009-01-02 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/01/09 02:24 PM, Joe Hartley wrote:
> Thomas Guyot-Sionnest wrote:
>> It won't happen often anyways... Last leap second was inserted in
> 2005,
>> you'll likely have it upgraded by the time they insert a new leap
> second :)
> 
> Not true, there was one inserted 2 days ago (Dec 31, 2008).  That might
> very well have affected people with the wrong version of the plugin!

That's what I'm saying... 2005 -> 2008 is 3 years, and the last broken
version is already > 1 year old... If we get another leap second in
three years that release will be > 4 years old. Also FYI leap seconds
are only added/removed on fixed dates every 6 month (end of Dec or end
of June).

Moreover, any linux distribution that still maintain this version (i.e.
in long term supports version or similar) can get the patch in and make
a bugfix release.

I can't change the past, I'm just saying the this problem likely won't
affect many users when the next leap second is inserted.

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

iD8DBQFJXuVz6dZ+Kt5BchYRAi/tAKDMNGoypbnYzi31DZgD76lEGI7WQgCg3Ihs
fv3mBRsqPbtYCnEJ8k62yrE=
=KspN
-END PGP SIGNATURE-

--
___
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_ntp_time : "Offset Unknown" for any host since yesterday

2009-01-02 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/01/09 10:54 AM, Marc Powell wrote:
> On Jan 2, 2009, at 9:45 AM, Kenneth Holter wrote:
> 
>> We too have the same issue. Is there any way we can resolve it without
>> upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, ...
> 
> Download the plugins source code. Compile. cp check_ntp_time /path/to/ 
> nagios/plugins. =)

It won't happen often anyways... Last leap second was inserted in 2005,
you'll likely have it upgraded by the time they insert a new leap second :)

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

iD8DBQFJXlJz6dZ+Kt5BchYRAomqAJ4xi87VYrIMHgZFXwMRYxuafu+LuACgtqJX
hH6M1IrI8zJKsHDPjnvaFco=
=MEmo
-END PGP SIGNATURE-

--
___
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] Help with plugin...

2008-12-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 30/12/08 05:55 PM, Matt Nelson wrote:
> Up to now most of my checks have used a threshold for warning and
> critical that is say:
> 
> critical if above 20
> warning if above 10
> else ok
> 
> Now I am developing a plugin that will need this for most checks, but
> will also need the oposite:
> 
> ok if > 10
> critical if < 10
> 
> Does anyone have some logic that I can use, preferably in perl for this
> kind of thing?

What are you trying to do? It's hard to understand with so little
information.

Are you using Nagios::Plugin? is so, standard thresholds definitions
should allow what you want with the proper syntax; however if you want
the default meaning for a bare number to change you'll have to create
the thresholds parameter yourself. See:
http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT

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

iD8DBQFJWtSq6dZ+Kt5BchYRAhdOAKD8dgmBfDtjf7ApQWB6Cs2kjub7SwCg07oV
aMQn3zB85mZ80PqKGwH/MLc=
=HYGj
-END PGP SIGNATURE-

--
___
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_ntp_time : "Offset Unknown" for any host since yesterday

2008-12-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 30/12/08 12:44 PM, Toussaint OTTAVI wrote:
> Hi,
> 
> I've been using check_ntp_time plugin to check the time offset of all my
> time servers. It's been working perfectly for a while.
> 
> Last night (29 to 30/12 at 00:00), all the checks start having the same
> behavior quite at the same time. All of them return :
> " NTP CRITICAL: Offset unknown"
> 
> Of course, all the time servers are running, and their time is accurate.
> I can't understand why all the checks start failing all at the same time.

This is likely caused by a bug in versions 1.4.10 and 1.4.11 of
check_ntp and check_ntp_time that is triggered when a leap second is
inserted (which is the case this year). Fortunately I spotted it a while
ago and you should be OK if you upgrade to 1.4.12 or later :)

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

iD8DBQFJWn2d6dZ+Kt5BchYRAlMYAKDIy89BiVaxxeBeuLQqKUyk5EyNzgCdH9uf
YcQIMgjp0Sp4IHQnXzcZbcs=
=DtDy
-END PGP SIGNATURE-

--
___
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] Migrating from Nagios 2.0b4 to Nagios 3.03

2008-12-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/12/08 12:07 PM, Deborah Martin wrote:
> Hi,
> 
> I'm using Suse 10 / Nagios 3.03. 
> 
> I have migrated all of my .cfg files across to Nagios 3.03 and all seems to
> work well except that, I still have all the host 
> checks still pending on nagios 3.03. But on Nagios 2.0b4, all the hosts have
> a status of up. (Each version runs on it's own dedicated box.) 
> 
> I only define service checks such as an ssh check per host to ensure a host
> is up (ping isn't allowed) 
> 
> Is this a known behaviour difference between the versions ? Do I need to
> make some changes to this new version ? 
> 
> Any pointers / ideas would be much appreciated. 

Probably something wrong with your host settings like check/retry
interval, missing check command or any option that can control check
execution.

It's possible that checks weren't executing in your 2.x setup and what
you saw as "up" was a very old state.

Otherwise post your host config, including any needed template.

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

iD8DBQFJWdoz6dZ+Kt5BchYRAlxJAKDs6uI2t9xSAxjJh5hMRkWC7IoEOACeMYJ9
1dv9RkbDzk6K6Jk+48+X4ik=
=vaLJ
-END PGP SIGNATURE-

--
___
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] User-Defined Object Directives

2008-12-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/12/08 12:42 PM, Christopher Hunt wrote:
> The wish list at http://www.nagios.org/development/upcoming.php for version 3 
> lists "User-Defined Object Directives".  Was this feature incorporated into 
> version 3?  Thanks.

See http://nagios.sourceforge.net/docs/3_0/macros.html, Custom Variable
Macros

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

iD8DBQFJWdr/6dZ+Kt5BchYRApq/AKDqgV3w82YvzoK/DFFFCu3JBWXdKwCfSb3N
Lf/ZdEvoRU3O+OiA2rZ2GD8=
=4OWV
-END PGP SIGNATURE-

--
___
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] Solaris 10 check_procs

2008-12-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17/12/08 05:01 PM, Brandon Munger wrote:
> Hi again...
> 
> I was able to get nagios-plugins compiled in Solaris 10 with GCC.
> 
> The problem I now have has to do with the check_procs command.
> For every command I type I get:
> 
> Unable to read output
> 
> So I figured it was a problem with the way ps outputs its format and I
> I remembered running into a configure flag that should work.  I reran
> the configure and make with:
> 
> ./configure --prefix=/export/home/bmunger/downloads/nagios 
> --with-ps-command="/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime 
> comm args'" --with-ps-format='%s %d %d %d %d %d %f %s %s %n' 
> --with-ps-cols=10 
> --with-ps-varlist='procstat,&;procuid,&;procpid,&;procppid,&;procvsz,&;procrss,&;procpcpu,procetime,procprog,&pos'
>  

Which version of Nagios-plugins are you using? In recent version you
shouldn't have tp specify any ps arguments since we now use pst3 which
is part of the package.

Please confirm the plugins version (should be the latest) and remove any
- --with-ps arguments from configure. Make sure to also run the
"make install-root" command.

If you still have problems please send the full debug output of
check_procs (with the -vvv switch).

Thanks

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

iD8DBQFJSjn86dZ+Kt5BchYRAtVEAJ47zCzMRDdZDWH2z5sk1thkUoy58wCg+MoT
id5Tbu4MDm6anIEkivFMevU=
=WLGI
-END PGP SIGNATURE-

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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


Re: [Nagios-users] Return code of 141 is out of bounds

2008-12-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17/12/08 12:38 PM, Jack Sprat wrote:
> Problem: Trying to read a pipe delimited file to retrieve status and
> port number is resulting in an "Return code of 141 is out of
> bounds" error.
> 
> Sample file being read, in this example, assume you want to collect
> servera and a status of "running" or "stopped". If the status
> is "running", then the status should appear as ok in Nagios. If the
> status is "stopped", then an email should go out indicating
> the port is down.
> File being read has this (note: those are spaces before and after the pipes)
> -
> servera | 123 | Running   <---would show as "Port 123 is okay" in Nagios
> if working properly
> servera | 321 | Stopped   <---would show as "Port 321 is down" in Nagios
> if working properly
> servera | 456 | Running
> serverb | 123 | Stopped
> serverb | 321 | Running
> serverb | 456 | Running
> Here is the script residing in libexec called app_port_monitoring.sh
> -
> #!/bin/ksh
> #
> GREPCMD=/usr/bin/grep
> SSHCMD=/usr/local/bin/ssh
> ECHOCMD=/usr/bin/echo
> NAGIOSDIR=/apps/nagios
> STATE_OK=0
> STATE_WARNING=1
> STATE_CRITICAL=2
> STATE_UNKNOWN=3
> STATE_DEPENDENT=4
> while getopts :u:s:p:h: OPT
> do
> case $OPT in
> u|+u ) export USER=$OPTARG ;;
> s|+s ) export SERVERNAME=$OPTARG ;;
> p|+p ) export PORT=$OPTARG ;;
> : ) $ECHO "$OPTARG requires an argument"; exit $STATE_UNKNOWN;;
> \? ) $ECHO "$OPTARG: bad option, use -h for help"; exit
> $STATE_UNKNOWN;;
> h|+h ) $ECHO "Usage: `basename $0` -u USER -s SERVERNAME -p
> PORT" ; exit $STATE_UNKNOWN;;
> esac
> done
> 
> if [ -z "$SERVERNAME" ]; then
> echo "No SERVER specified"
>  exit $STATE_UNKNOWN
> fi
> SSH_STATUS=`$SSHCMD -l ${USER} ${SERVERNAME} "pwd" >/dev/null; echo $?`
> if [ $SSH_STATUS -ne 0 ]; then
> echo "Cannot ssh to $SERVER"
> exit $STATE_UNKNOWN
> fi
> 
> /usr/bin/ksh 'ssh -n -o BatchMode=yes -o StrictHostKeyChecking=no -l
> ${USER} ${SERVERNAME} "export SHELL=bash; cd EEM; . ./ldap
> -bash-traversal; . ./healthcheck; export
> LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH:/opt/app/${USER}/servers/lib\";
> export PATH=\"\$PA
> TH:/usr/local/bin:/bin\"; ldaphealth; . ./proxy_healthcheck"' |egrep -i
> 'stopped|running' | grep $USER | grep $PORT
>>/tmp/foo_output 2>&1
> 
> # File doesn't exist or doesn't have size greater than zero
> if [[ -f /tmp/foo_output ]]; then
>  echo "file exists"
> else
>  echo "file not found"
>  exit $STATE_UNKNOWN
> fi
> while read LINE; do
> echo ${LINE}
>  STATUS=$(echo ${LINE} | awk {'print $5'})
>  PORT=$(echo ${LINE} | awk {'print $3'})
>if [ -z "$STATUS" ]; then
> echo "Service check problem"
> EXITSTATUS=$STATE_UNKNOWN
> elif [ "$STATUS" = Stopped ]; then
> echo "${PORT} is down"
>EXITSTATUS=$STATE_CRITICAL
> elif [ "$STATUS" = Running ]; then
> echo "${PORT} is okay"
> EXITSTATUS=$STATE_OK
>else
> EXITSTATUS=$STATE_UNKNOWN
>fi
> 
> done < /tmp/foo_output
> 
> rm -f /tmp/foo_output
> exit $EXITSTATUS
> -
> I can place a set -x at the top of the script above and run itbelow
> is the pertinent output
> + read LINE
> + echo servera | 123 | Running
> servera | 123 | Running
> + + awk {print $5}
> + echo servera | 123 | Running
> STATUS=Running
> + + awk {print $3}
> + echo servera | 123 | Running
> PORT=123
> + [ -z Running ]
> + [ Running = Stopped ]< problem ??
> + [ Running = Running ]< problem ??
> + echo 123 is okay
> 123 is okay
> + EXITSTATUS=0
> + read LINE
> + exit 0<--- exiting normally
> 
> Please let me know if additional information (like the service file
> info) is needed.  Thanks much for any input in getting this
> resolved.

When you run your plugin for testing, are you running it as the nagios
user? Also try adding the "-T" switch to ssh as you won't have any tty
when run from Nagios.

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

iD8DBQFJSjro6dZ+Kt5BchYRAl+gAJ9xz/SOojOzdQX09l5/3sKpMqXvKwCgqthv
VXvt5FS7gkagOsoW8lgy22w=
=ZHMw
-END PGP SIGNATURE-

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin versi

Re: [Nagios-users] Unable to Commit anything

2008-12-17 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17/12/08 06:52 AM, ankit.mehro...@tcs.com wrote:
> 
> Make a file at that location and keep the ownership and permissions as
> mentioned earlier.
> It should work !

No! Nagios should create the file. If you have to create it yourself the
commands will appear to be submitted but Nagios will never process them.

If the file is missing, Nagios is probably not configured to accept
external commands (this is in nagios.cfg). It could also be that the cgi
is not looking at the right config files and it taking the wrong
parameters (ex.: if the CGI and Nagios daemon were compiled with
different configure parameters).

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

iD8DBQFJSPaX6dZ+Kt5BchYRAhW5AKDuy450rVBrQLllyiVzjzw9tjb7SQCgiG1S
gB7PUm7MaKk6qxHHJvkrvM0=
=sJZI
-END PGP SIGNATURE-

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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


Re: [Nagios-users] nohup and check_nrpe and timeout

2008-12-05 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/12/08 01:36 PM, David Shapiro wrote:
> 
> Okay, I tried to compile the setsid.c, but it wanted nls.h.  I tried
> to get nls.h, and it wanted types.h, etc etc.  I searched around for
> a version for Solaris, which is what I am using, but I had no luck.
> I

Yep... it's part of linux-utils... I'm dure there's a way on solaris
though, I unfortunately don'T have time to try right now.

> ended up abandoning this idea and tried the check_by_ssh, and this 
> worked fine, so I am good for now I think.  The one thing I am not 
> certain about is the comment that when you use the -f option, to 
> disassociate the process from a tty, it says something like if ssh is
>  successful it always returns a success.  Is it trying to say that it
>  will ignore my exit codes if I use the -f option?!?  That will not
> work for me if that is the case.

Yes, it will. You can't get the return code of a process anyway. You
could possibly try check_by_ssh the normal way to see if it behaves any
better in your case...

Although it seems to me that yore trying to perform two seperate
things... Check a service and restart it if it's down?

The proper way to do it is having a normal check, and trigger an event
handler to restart the service (or anything else?). Note though that you
must fork in your event handler before doing anything because nagios
will wait until the event handler finishes executing (teh fork option of
check_by_sse could work most of the time, but if the host does not
answer to ssh it will hang anyway).

Maybe you could describe the whole flow you want instead of the forking
problem alone ;)


> 
> Anyway, Thomas,you are absolutely great with passing me this 
> information.  I highly appreciate the fact you stepped up and did so.  I
> wish you happy holidays and the best in case I do not hear back from 
> you.

You too, thanks!

Ps,: please don't top-post (it breaks discussion flow), and try to
word-wrap your emails (otherwise I have to redo it myself...)... thanks!


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

iD8DBQFJOah46dZ+Kt5BchYRAtB6AKCelnYEbn9LHKT3x63qEmBPi3Fy8QCgt6KE
N6Lqib6sMhFOK0M7yb5Ri1M=
=IoLG
-END PGP SIGNATURE-

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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


Re: [Nagios-users] nohup and check_nrpe and timeout

2008-12-05 Thread Thomas Guyot-Sionnest
On 05/12/08 08:37 AM, David Shapiro wrote:
> Thank you Thomas, this looks like good info.  I do not seem to have an 
> executable on Solaris called setsid though.  It is listed as a c function.  
> Nrpe.cfg does in fact let you increase the timeout, but I was thinking that 
> will not help because my program remains running in a loop.  Re-iterations 
> has it check logs that it is generating.  If it is not seen as running, I 
> mentioned that it will just start it again.  However, since it is in a loop, 
> I am thinking that nrpe will timeout no matter how much my timeout is set to. 
>  The setsid idea looked interesting, but unfortunately I do not see it on my 
> server.  The last one I think was using bash to close stdout, stdin, and 
> stderr, but it also used setsid in your example (sigh).  The alarm handle 
> idea did not work.  That leaves the ssh check agent.  I will look into that 
> today.
> 

Try this maybe...

http://www.google.com/codesearch?hl=en&q=linux+setsid.c+show:SQhth2SDUWk:_rHMxvw0UiI:7BWeGpnuS2M&sa=N&cd=5&ct=rc&cs_p=ftp://ftp.kernel.org/pub/linux/utils/util-linux/testing/util-linux-2.13-pre7.tar.gz&cs_f=util-linux-2.13-pre7/sys-utils/setsid.c

-- 
Thomas

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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


Re: [Nagios-users] nohup and check_nrpe and timeout

2008-12-04 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/12/08 01:27 PM, David Shapiro wrote:
> Hello,
> 
> I wrote something that starts a python script to check weblogic that if 
> it sees it is not running starts it.  The problem is that it takes 
> several minutes to start.  I tried in my script to just nohup and 
> background the process that also says it is starting and exists with a 
> 1.  For some reason though even though I do a nohup and background, it 
> does not run with a nohup.  It times out.  Is there a way to do this?  
> Why is check_nrpe maxed for 60 seconds?  Why will it not recognize I 
> just used a nohup and background?

nrpe is definitely not the best way to do it, but here's some insights
on what you could try:

1. I think the 60 second timeout is configurable in nrpe.conf

2. You can start nohup with setsid to run it in a new session. You can
possibly avoid the use of nohup at all by closing stdin/out/err (in
bash: exec /dev/null; exec 2>/dev/null; setsid )

3. It's possible that nrpe starts the alarm handler before exec'ing the
plugin; try resetting it before running. You could do that in perl:
perl -e 'alarm(0); exec ' (actually I think exec in perl will
invoke the shell which will get the the signal, so alarm(0) is useless
anyway)

4. check_by_ssh has a mode to start the remote program/script and
return. You will need to setup an ssh keypair for this to work (don't
forget that nagios will run it as the nagios user, do you'll have to set
up the keys for that user)


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

iD8DBQFJOKow6dZ+Kt5BchYRAnxsAKDRiYNHxGkoLGLww6YG5qnGNBbrIACfW6fY
WHe4BSKXgC5AH56aTWGWpW0=
=sdKI
-END PGP SIGNATURE-

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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


Re: [Nagios-users] check_jabber

2008-11-22 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/11/08 09:28 PM, Luke Sheldrick wrote:
> Ah, excellent stuff. Cheers :)

IIRC you can also override jabber arguments, so using check_jabber and
adding only the correct -e argument should work too.

I'm not sure for jabber, but some of the bundled checks implement
options not configurable on the command line. Using check_tcp might
therefore give slightly different results.

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

iD8DBQFJKDif6dZ+Kt5BchYRAvIQAKCTFJfqhMPFimZwZFORBSpfQOwXygCfcR4t
HiwQABAZFJgAc/p6RUhane8=
=r4jf
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check snmp

2008-11-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/11/08 08:06 PM, Patrick Morris wrote:
> On Wed, 19 Nov 2008, Thomas Guyot-Sionnest wrote:
> 
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On 18/11/08 07:59 AM, Simon Kainz wrote:
>>> Melanie Pfefer wrote:
>>>> Hi
>>>>
>>>> perhaps I was not clear in my question.
>>>>
>>>> What is the OID that should be used to see if snmp service is up or down?
>>>>
>>>> thank you
> 
> At the rick of stating the obvious, if the SNMP service is down, the OID
> you're checking doesn't matter. Just pick anything your server supports,
> and if the service is down, it won't work. Pretty simple stuff.

True, although you better:

1. Get an OID that will show up on all server (Windows, Linux, BSD, etc)
2. Don't get one that may vanish
3. Ideally, get one that prints something nice ("SNMP OK - 32173980"
isn't very clear about what it's chercking)

Hence, SNMPv2-MIB::sysDescr.0 :)

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

iD8DBQFJI72S6dZ+Kt5BchYRAhz2AJ99nThQRMv0lk1xAkMgxSvzfy5XzACgpryL
Bxa5T1EIckusdF4NEbMfAzI=
=6zXO
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check snmp

2008-11-18 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/11/08 07:59 AM, Simon Kainz wrote:
> Melanie Pfefer wrote:
>> Hi
>>
>> perhaps I was not clear in my question.
>>
>> What is the OID that should be used to see if snmp service is up or down?
>>
>> thank you
> 
> Hi!
> I would suggest using snmpwalk to see which services are available
> first. This normally returns a pretty long list of values to pick one from.

An oid in SNMPv2-MIB::system (.1.3.6.1.2.1.1) is likely a good place to
start... I use SNMPv2-MIB::sysDescr.0 (.1.3.6.1.2.1.1.1.0) with negate
to return CRITICAL on failure.

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

iD8DBQFJI2Sk6dZ+Kt5BchYRAjUDAKCmgJNtXRR7WJB1Hf0z09CLoQAeMgCcC51p
hl79zDqzK+uqOO2W324DJbU=
=W/4a
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] GroundWork (Nagios) Service Checks/Host Checks

2008-11-10 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/11/08 10:51 PM, Sean O`Brien wrote:
> Dear All,
> 
> I have been studying GroundWork  monitor, with reference of course to Nagios.
> 
> I hope someone can answer my query.
> 
> Re: Nagios 2.x
> 
> It is my understanding that when all the service checks fail, Nagios performs 
> host checks; the number of which we have specified to 3. At which point 
> (after reporting that Host is in a "Non-okay" state) 
> Nagios resumes service checks. It is at this point my question lies. When 
> does Nagios perform another host check? Would it be after all the service 
> checks are reported "Okay" or will Nagios perform a 
> host check after the first service check reports "okay".
> 
> Thank you to all in advance for taking the time to read this and respond, 
> it`s highly appreciated.

I might be wrong, but as far as I know Nagios 2.x performs a host check
on each service failure, and notify for that service only if the host is
not in HARD DOWN state after the last check (when the service enter the
HARD state and the host check has already been perfiormed for that last
failure). I guess it also performs one on state changes, and possibly
not when services are already in a hard critical state, to detect host
up (haven't really read on that but that seems to be the logical thing
to do).

With Nagios 3.x, there's scheduled host checks and result caching in the
mix, so that :
1. not every service failure will result in a host check
2. Host checks are not run serially like they did in nagios 2.x, which
was by far the biggest bottleneck.

The official Nagios documentation explains the check logic in details if
you read it thoughtfully.

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

iD8DBQFJGQTS6dZ+Kt5BchYRAnOQAKDy6jYFWUSHe/+r5oPdrA4C0UM2LgCaA2Hi
oIqady/Kz99UlzxLxDNhGiw=
=kY+I
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Hysteresis anyone?

2008-11-05 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/11/08 02:23 PM, Matthias Flacke wrote:
> Maybe a check_multi solution is something for you
> (http://my-plugin.de/check_multi):
> 
> - 8< --
> # hysteresis.cmd
> # call: check_multi -f hysteresis.cmd \
> #-s LASTSERVICESTATEID=$LASTSERVICESTATEID$ \
> #-s UPPER= -s LOWER=
> #
> # 1. get temperature value
> command [ temperature ] = check_snmp ...
> 
> # 2. evaluate states
> state [ CRITICAL ] = \
>   $temperature$ >= $UPPER$ || \
> ( $temperature$ >= $LOWER$ && $LASTSERVICESTATEID$ != OK )
> - 8< --
> 
> Didn't tested it, but it should work that way ;-)
> 
> The trick is the state evaluation which allows arbitrary perl expressions.
> Nagios macros or extra parameters can be passed via -s/--set.

Interesting... I'm wondering if we could work it out in a similar
similar way as negate by passing the last state, performance data,
perfdata metric and upper/lower threshold...

Or maybe better, integrate it in the new planned thresholds, although
the former could work on 3rd party plugins too...

I'll keep that aside if some day I have time to implement it :)

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

iD8DBQFJEmtt6dZ+Kt5BchYRArT1AKCeAb/3Uk3voI+m4WxBKIHnninibwCdFT/O
ddHtC8ChsxsZCVd+gG4oKNY=
=vlIE
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] notify-html-email.sh

2008-10-19 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/10/08 10:05 AM, Nagios User wrote:
> Hello,
> I am trying to us the notify-html-email.sh mailscript on nagios 3.0.1
> with no success. Does this work with Nagios 3.0.1? if you have any
> information please let me know.
> 
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2002.html;d=1

Please do not repost multiple times the same email, even if you don't
get any answer..

You would also get more luck if you'd provide more details of what you
tried, configuration excerpts, and anything you did to investigate the
issue.

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

iD8DBQFI+1YI6dZ+Kt5BchYRAtsVAJ9GJVuPN0Xqxh2xYgAa6bYMFuUB7gCfR3k4
ZgIcyOQqT4hAzZHfou4MeMI=
=tURR
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] problem with emailing.

2008-10-16 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 16/10/08 08:28 AM, chris king wrote:
> ok heres my issue:
> 
> nagios.debug
> 
> ==> nagios.debug <==
> [1224160395.192595] [2048.1] [pid=2555]  BEGIN MACRO PROCESSING
> ***
> [1224160395.192619] [2048.1] [pid=2555] Processing: '$USER1$/check_icmp
> -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5'
> [1224160395.192638] [2048.1] [pid=2555]   Done.  Final output:
> '/usr/local/nagios/libexec/check_icmp -H 10.10.9.15 
> -w  -c  -p 5'
> [1224160395.192642] [2048.1] [pid=2555]  END MACRO PROCESSING
> *
> [1224160405.037868] [2048.1] [pid=2555]  BEGIN MACRO PROCESSING
> ***
> [1224160405.037895] [2048.1] [pid=2555] Processing: 'HOST ALERT:
> apache0;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;CRITICAL - 10.10.9.15
> : rta nan, lost 100%
> '
> [1224160405.037910] [2048.1] [pid=2555]   Done.  Final output: 'HOST
> ALERT: apache0;DOWN;SOFT;2;CRITICAL - 10.10.9.15 :
> rta nan, lost 100%
> '
> [1224160405.037914] [2048.1] [pid=2555]  END MACRO PROCESSING
> *
> 
> 
> 
> 
> 
> 
> my mail.log
> 
> Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios,
> size=226, class=0, nrcpts=1,
> msgid=<[EMAIL PROTECTED]
> >,
> [EMAIL PROTECTED]
> Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579:
> <[EMAIL PROTECTED] >... User unknown
> Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$,
> ctladdr=nagios (104/104), delay=00:00:00, xdelay=00:00:00, mailer=relay,
> pri=30226, relay=[127.0.0.1 ] [127.0.0.1
> ], dsn=5.1.1, stat=User unknown
> Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579:
> from=<[EMAIL PROTECTED] >,
> size=226, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4,
> [EMAIL PROTECTED] [127.0.0.1 ]
> 
> 
> 
> 
> 
> 
> 
> my contact-by-email command:
> 
> define command {
> command_namenotify-host-by-email
> command_line/usr/bin/printf "%b" "* Nagios
> *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
> $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
> $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert:
> $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
> }
> 
> 
> 
> 
> 
> 
> can anyone see whats wrong?

Maybe the contact definition?

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

iD8DBQFI9zhf6dZ+Kt5BchYRAu4uAJ9Mnpd8H5hOHn2U6b+KWchsN5f2xwCgiCdl
E5pXb7rS3+2XwGdfsnvIbt4=
=eW9u
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] service dependencies on a single host?

2008-10-14 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/10/08 01:29 PM, Michael W. Lucas wrote:
> Hi,
> 
> I'm currently monitoring many services on certain hosts via SNMP, and
> making extensive use of host groups to ease configuration for my
> several hundred hosts.
> 
> On occasion, the SNMP service on a host fails.  This triggers dozens
> of alarms.  I would like to have each service checked via SNMP depend
> on the base SNMP service, so that when SNMP fails I only get one
> alarm.  I investigated service dependencies, but they don't seem
> amenable to hostgroup-friendly configuration.
> 
> If I do something like:
> 
> define servicedependency {
>   hostgroup_name  NetSnmpServers
>   service_description Snmp
>   dependent_host_name NetSnmpServers
>   ...
> }
> 
> that obviously isn't going to work.
> 
> Surely other people have encountered this before?  Any suggestions?

same-host dependencies (or something similar) implemented in Nagios
v3.0. Just omit the dependent_host*_name and dependencies will only
occur within the same hosts. You can therefore apply it to hostsgroups
without having deps between hosts.

I have a patch for 2.x around if you need.

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

iD8DBQFI9ODh6dZ+Kt5BchYRAkcwAKDDmM796MpVMvwUEqMt2YjVsqH6UwCfTOQV
01Ng9QV42iJWfjG4VedN+rk=
=jDzR
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


  1   2   3   4   >