[Nagiosplug-devel] [ nagiosplug-Bugs-2823005 ] check_swap returns OK, if no swap activated

SourceForge.net noreply at sourceforge.net
Sun Jul 19 10:00:07 CEST 2009


Bugs item #2823005, was opened at 2009-07-17 13:12
Message generated for change (Comment added) made by ondrejj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2823005&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jan Ondrej (ondrejj)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_swap returns OK, if no swap activated

Initial Comment:
My swap was not activated on boot for unknown reason and nagios does not report this as a problem. Here is an example:

[root at kecom ~]# rpm -q nagios-plugins
nagios-plugins-1.4.13-11.fc10.i386
[root at kecom ~]# /usr/lib/nagios/plugins/check_swap -w 80% -c 40% -c 1 -w 2
SWAP CRITICAL - 100% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0

If there is no swap and users is trying to test percentage of free swap, consider 0 MB free swap space as problem, or of free/total raises division by zero, then set percentage to 0%, not to 100%.

Thank you.


----------------------------------------------------------------------

>Comment By: Jan Ondrej (ondrejj)
Date: 2009-07-19 10:00

Message:
An patch is available in redhat bugzilla. I don't know, how to attach it
here.

https://bugzilla.redhat.com/show_bug.cgi?id=512559


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2823005&group_id=29880




More information about the Devel mailing list