[Nagios-users] check_disk reporting incorrectly

2009-05-11 Thread Peter Doherty
The output of check_disk doesn't seem to be making any sense.  Can  
someone tell me what's going on here?  It looks like it's got it's  
gigabytes and terabytes confused, but something is clearly wrong.   
Using the -u  GB or -u MB switch doesn't help any.
Oh, and this is on a PPC XServe MAC running OS X 10.5.6.
The device that's reporting wrong is an NFS disk on another server.
Thanks for any advice.
--Peter


# /usr/local/nagios/libexec/check_disk -w 10% -c 5% -p /galactica/ 
battlestar
DISK CRITICAL - free space: /galactica/battlestar 28798 MB (4%  
inode=70%);| /galactica/battlestar=593385MB;559964;591073;0;622183


# df -h

Filesystem  Size   Used  Avail Capacity   
Mounted on
192.168.1.213:/Volumes/battlestar  8.6Ti  2.6Ti  6.0Ti30%/ 
galactica/battlestar

# df

Filesystem 512-blocks   Used   Available  
Capacity  Mounted on
192.168.1.213:/Volumes/battlestar 18454101336 5510235360  
1294386597630%/galactica/battlestar



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Acknowledgement after escalation, sends email to the escalation email?

2009-05-04 Thread Peter Doherty
Hi all,

Okay, here's the problem.  I set up nagios to send emails to our RT  
system for certain problems.  For example:


define serviceescalation{
 host_name   server
 service_description Uptime
 contact_groups  admins,rt
 first_notification  3
 last_notification   3
 notification_interval   0
 escalation_period   24x7
 escalation_options  c
 }



This worked perfectly today, 'server' failed the 'Uptime' service  
check, and on the third notification, it went into the RT system.
I logged into the Nagios web interface, and acknowledged the problem.   
Nagios then sent the acknowledgement email into RT, which opened a  
second ticket.
That shouldn't happen.  How do I disable Nagios from sending  
acknowledgement emails to the email that it escalated to.  I know I  
could have unchecked the box to send email, but I'd rather for Nagios  
to ONLY do what I told it to do, which is to send out the escalation  
on the third notification, and not try and be smart and send  
acknowledgements to that address too.


Thanks.

--Peter

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] Acknowledgement after escalation, sends email to the escalation email?

2009-05-04 Thread Peter Doherty

On May 4, 2009, at 1:46 PM, Marc Powell wrote:

 You can't. You can, however, filter out the $NOTIFICATIONTYPE$ of
 'ACKNOWLEDGMENT' in the notification script you are calling for that
 contact.

Could you provide me with more information on this?

 And where did you tell nagios what notification types to send to the
 escalated contacts; that specifically restricted acknowledgements?
 Heh. It was told by the Nagios developer to send acknowledgment
 notifications to any contact that received a prior notification. This
 is very longstanding and generally desired behavior that currently
 trumps anything you think you've told nagios to do in that regard. ;)


I understand this.  I just viewed it as I told nagios to send one  
notification at a specific point, so I was surprised when it started  
sending acknowledgement emails.
So there isn't a specific option to disable acknowledgments?


escalation_options  c

^^ implies to me, that it will ONLY send escalation emails on critical  
status.  I think there should be a field similar to this that allows  
enabling/disabling the acknowledgement email.

Either way, whether you agree that this is something that should be  
easily user-configurable or not, can you tell me specifically how to  
stop this behavior?


Cheers,
--Peter



--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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_peer unreliable on macs

2009-03-25 Thread Peter Doherty
On Mar 13, 2009, at 5:25 PM, Keith Erekson wrote:

 I found this in my mailing list archives, while looking for  
 information about check_ntp_peer. As far as I can tell, nobody ever  
 answered you...

 I was just looking into this exact problem. If you check the verbose  
 output, you will probably see something like this:

 0 candiate peers available
 warning: no synchronization source found
 warning: LI_ALARM bit is set

 I do get valid output from ntpq -p hostname, however.

 Apparently, the problems with OS X's NTP are well-known and  
 documented. For example,

 http://knol.google.com/k/dirk-h-schulz/time-synchronization-ntp-on-mac-os-x/2bcee0ik2900p/18#
 http://support.ntp.org/bin/view/Support/KnownOsIssues#Section_9.2.5

 As a way around this, I thought I would just use check_ntp_time, to  
 compare the xserve's clock against that of the nagios box. However,  
 no luck there either:

 sending request to peer 0
 response from peer 0: offset -0.9300264975
 sending request to peer 0
 response from peer 0: offset -0.9299369976
 sending request to peer 0
 response from peer 0: offset -0.9299154976
 sending request to peer 0
 response from peer 0: offset -0.9298709977
 discarding peer 0: stratum=0
 overall average offset: 0
 NTP CRITICAL: Offset unknown|


 It seems that OS X is responding as a stratum 0 server, which is a  
 no-no.

 Also, while fiddling with check_ntp_peer, I noticed that it doesn't  
 seem to accept a port (-p or --port), as the help output suggests it  
 should be able to. Am I crazy?

 -Keith


Yeah, after a little more diagnostic work I eventually concluded that  
it was just OS X's implementation of NTP that is just broke.  It seems  
to be in sync for a while, then it just forgets it for a while, and  
eventually, maybe it'll sync up again.

Maybe they'll fix that for 10.6 this year.

--Peter


--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios and email

2009-03-23 Thread Peter Doherty
Hello,

I have a kind of custom nagios setup, so maybe this is a byproduct of  
that...
I had to reboot my nagios server today, and it didn't come right back  
up.  By the time it did, it realized that the service checks weren't  
fresh, and started sending out lots of notifications.  I stopped  
sendmail to keep from flooding my inbox...so here's the question:

I just want to clear out the outgoing email queue.  mailq and sendmail  
-bp both show nothing queued up.  When I restart sendmail, it starts  
sending again.
Has nagios passed all the emails over to sendmail, and I just need to  
clear out sendmail's queue, or is nagios holding onto them while  
sendmail isn't running, and then once it sees sendmail running, it  
starts dumping email into the queue?

Which is it, and how do I clear them from the queue?

Thank you.
--Peter

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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 and email

2009-03-23 Thread Peter Doherty
On Mar 23, 2009, at 10:52 PM, Charlie Reddington wrote:

 You have checked your /var/spool/mqueue and /var/spool/clientmqueue  
 right?

 I have had a few million emails queued up there before.


They were in /var/spool/clientmqueue.

Thanks Charlie!

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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


[Nagios-users] check_ntp_peer unreliable on macs

2009-02-19 Thread Peter Doherty
I've got Nagios monitoring several Macs, and I'd like to know that NTP  
is running okay on them, since if the time drifts by a few minutes,  
Kerberos Authentication stops working.
It seems that some of the newest Macs work okay, pretty much any of  
the Intel Macs running 10.5 Leopard work, but on any of the 10.4 Tiger  
Macs, I just get
 NTP CRITICAL: Server not synchronized, Offset unknown 

I'm simply running check_ntp_peer -H localhost

Any suggestions on if this can be fixed somehow?

Thanks
--Peter

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