[Nagiosplug-devel] [ nagiosplug-Bugs-1082791 ] check_swap on hpux shows negative value

SourceForge.net noreply at sourceforge.net
Thu Jan 20 16:27:40 CET 2005


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

Category: None
Group: snapshot tarball
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Martin (mroeh)
Assigned to: Ton Voon (tonvoon)
Summary: check_swap on hpux shows negative value

Initial Comment:
Hi,

I'm using nagios-plugins-HEAD-200412080547 on hpux
11.00. Compiling works fine, but when I try to use the
check_swap I get the following error:
./check_swap -vvv -w90% -c80%
Command: /usr/sbin/swapinfo -dfM,
Format: %*s %d %*d %d
SWAP CRITICAL: -2147483547% free (0 MB out of 0 MB)
|swap=0MB;0;0;0;0

Output of /usr/sbin/swapinfo -dfM is
 Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE 
PRI  NAME
dev     2097152       0 2097152    0%       0       - 
  1  /dev/vg00/lvol2
dev     17776640       0 17776640    0%       0       -
   1  /dev/vgswap/lvol1
memory  3217700 2425360  792340   75%

The same happened if the swap is used.

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

>Comment By: Ton Voon (tonvoon)
Date: 2005-01-21 00:26

Message:
Logged In: YES 
user_id=664364

Martin,

Looks like you have added an output file. Is this still a problem? Can you 
also give a check_swap -v -v -v -w90% -c80% output too?

Ton

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

Comment By: Ton Voon (tonvoon)
Date: 2005-01-13 18:30

Message:
Logged In: YES 
user_id=664364

There have been some changes to the use of floating point 
variables in check_swap. Can you please try with the latest 
snapshot (updated in check_swap v 1.46). 

If it is still a problem, please attach an output of swapinfo -
dfM. 

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

Comment By: Ton Voon (tonvoon)
Date: 2005-01-01 16:41

Message:
Logged In: YES 
user_id=664364

Martin,

Can you attach the output from swapinfo -dfM in a file please, so I can 
test parsing with that?

Ton

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

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




More information about the Devel mailing list