#97 check_swap 1.4beta1 on AIX: crit,warn args swapped

Release (specify)
closed-fixed
Ton Voon
7
2003-12-24
2003-12-05
No

on AIX 3.4, using nagios-plugins-1.4beta1 tarball:

check_swap -a -w 50% -c 75%

Yields:

Warning percentage should be more than critical
percentage

on Solaris and Linux, the command works as expected.

Discussion

  • Ton Voon

    Ton Voon - 2003-12-05

    Logged In: YES
    user_id=664364

    I've just tried this on Solaris and I get "Warning percentage
    should be more than critical percentage". Have you done a
    make clean on Solaris and Linux?

     
  • Ton Voon

    Ton Voon - 2003-12-05
    • assigned_to: nobody --> tonvoon
     
  • - 2003-12-07

    Logged In: YES
    user_id=18504

    Mea culpa. The problem exists on Solaris as well. I imagine
    Linux will have the problem as well.

     
  • Ton Voon

    Ton Voon - 2003-12-11
    • priority: 5 --> 2
    • status: open --> pending
     
  • Ton Voon

    Ton Voon - 2003-12-11

    Logged In: YES
    user_id=664364

    I don't think this is a problem; check_swap checks the
    amount of free space so critical must be lower than warning,
    hence the error message.

    Unless I am missing something?

    I will mark this call into pending state.

     
  • - 2003-12-17
    • status: pending --> open
     
  • - 2003-12-17

    Logged In: YES
    user_id=18504

    I thought so too, but the same command under version 1.3 of
    check_swap on Solaris executes just fine. Syntax change? Bug?

     
  • Ton Voon

    Ton Voon - 2003-12-18
    • priority: 2 --> 7
     
  • Ton Voon

    Ton Voon - 2003-12-18

    Logged In: YES
    user_id=664364

    Ahh, I finally understand. There was a change to check_swap
    to make it more consistent. The old 1.3 release help says this:

    ---
    -w, --warning=INTEGER
    Exit with WARNING status if less than INTEGER bytes of
    swap space are free
    -w, --warning=PERCENT%
    Exit with WARNING status if more than PERCENT of swap
    space has been used
    ---

    Note the switch between checking against free swap for
    absolute numbers, but against used for %. So the new 1.4
    release considers the thresholds the same way. This also
    makes it more consistent with check_disk.

    I've also noticed that the help file for check_swap is wrong,
    so I'll update that now.

    You are right in pointing this out. Will get some text put
    together about the significant changes between 1.3 and 1.4,
    including syntax breakages like this.

    I'll leave this open for now.

    P.S. What is your full name? I can then add it to our list of
    people to thank.

     
  • Ton Voon

    Ton Voon - 2003-12-24
    • status: open --> closed-fixed
     
  • Ton Voon

    Ton Voon - 2003-12-24

    Logged In: YES
    user_id=664364

    Updated help text for check_swap in v1.15. Have created a
    CHANGES file to list major differences between releases.
    Credited Gunnar Hellekson - thanks.

    Closing this call.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks