Understanding notification_interval and state changes on free space monitors

Andrew Moran amoran at apple.com
Tue Feb 20 03:14:22 CET 2007



Warning is set to 10% and Critical is set to 0%.  I could understand  
why this would be an issue if they both were set to 0%, but they are  
not.      In both warning and critical alerts, according to logs, the  
space is returning 0 megabytes and 0%..  Even if the megabytes were  
increasing a little, I'm basing it on percentage, and the 0%  
shouldn't change.. but in this case, they both looked like they  
weren't changing.

This is with  check_disk (nagios-plugins 1.4.2) 1.57


--Andy

On Feb 19, 2007, at 3:41 PM, Josh Yost wrote:

> after looking at the source, I would suggest putting your critical  
> value
> at 1 or 2 or 5% and see if the service still flaps between warning and
> critical.
> 	It looks like it's possible that if your disk space is changing  
> between
> almost 0 and 0, then it could flap (from what I can tell) if  
> critical is
> also set to 0%.
>
> good luck,
>  - Josh
>
>
> Andrew Moran wrote:
>>
>> I setup Nagios to watch a service.  I thought I had told it to  
>> notify me
>> every 16 hours.  Over the weekend, a problem occurred and I was  
>> notified
>> every 40 minutes or so.    I can't help but think I must be missing a
>> configuration somewhere.
>>
>> The service in question is monitoring free space on a filesystem.   I
>> want it to go into warning when there is less than 10% free and  
>> become
>> critical when there is 0% free.   From the event log, it seems  
>> like the
>> state is going from CRITICAL to WARNING to CRITICAL, and every  
>> time it
>> goes to CRITICAL, it sends me email.. but I can't figure out why it's
>> going back into warning mode when the space free remained at 0%.
>>
>> Part of the event log:
>>
>> [02-17-2007 23:45:43] SERVICE ALERT: menc001;mc_vol001
>> Space;WARNING;HARD;4;DISK WARNING - free space: /Volumes/mc_vol001  
>> 0 MB
>> (0%):
>> [02-17-2007 23:20:43] SERVICE NOTIFICATION: andy;menc001;mc_vol001
>> Space;CRITICAL;notify-by-email;DISK CRITICAL - free space:
>> /Volumes/mc_vol001 0 MB (0%):
>> [02-17-2007 23:20:43] SERVICE ALERT: menc001;mc_vol001
>> Space;CRITICAL;HARD;4;DISK CRITICAL - free space: /Volumes/ 
>> mc_vol001 0
>> MB (0%):
>> [02-17-2007 23:15:43] SERVICE ALERT: menc001;mc_vol001
>> Space;WARNING;HARD;4;DISK WARNING - free space: /Volumes/mc_vol001  
>> 0 MB
>> (0%):
>> [02-17-2007 23:05:49] Auto-save of retention data completed  
>> successfully.
>> [02-17-2007 22:40:43] SERVICE NOTIFICATION: andy;menc001;mc_vol001
>> Space;CRITICAL;notify-by-email;DISK CRITICAL - free space:
>> /Volumes/mc_vol001 0 MB (0%):
>> [02-17-2007 22:40:43] SERVICE ALERT: menc001;mc_vol001
>> Space;CRITICAL;HARD;4;DISK CRITICAL - free space: /Volumes/ 
>> mc_vol001 0
>> MB (0%):
>> [02-17-2007 22:05:49] Auto-save of retention data completed  
>> successfully.
>> [02-17-2007 21:55:43] SERVICE ALERT: menc001;mc_vol001
>> Space;WARNING;HARD;4;DISK WARNING - free space: /Volumes/mc_vol001  
>> 0 MB
>> (0%):
>> [02-17-2007 21:30:43] SERVICE NOTIFICATION: andy;menc001;mc_vol001
>> Space;CRITICAL;notify-by-email;DISK CRITICAL - free space:
>> /Volumes/mc_vol001 0 MB (0%):
>>
>>
>> Relevant part of service definition:
>>
>>         notification_options            u,c,r
>>         notification_interval           960
>>         notification_period             24x7
>>         check_command
>> check_nrpe!check_disk!10%!0%!/Volumes/mc_vol001
>>         }
>>
>>
>> Ultimately I only want it to notify me when it's critical, not in
>> warning, and I want the notification to only be sent every 16  
>> hours (960
>> units, my unit is defined elsewhere as 60 seconds).        Any  
>> help as
>> to what I'm doing wrong would be appreciated.  Thanks.
>>
>> --Andy
>>
>>
>> --------------------------------------------------------------------- 
>> ---
>>
>> --------------------------------------------------------------------- 
>> ----
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>>
>>
>> --------------------------------------------------------------------- 
>> ---
>>
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070219/164b03cc/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list