monitoring-plugins / monitoring-plugins

Monitoring Plugins
https://www.monitoring-plugins.org
GNU General Public License v3.0
475 stars 281 forks source link

check_swap on HP-UX incorrect [sf#1573700] #621

Closed monitoring-user closed 10 years ago

monitoring-user commented 10 years ago

Submitted by vandenburgd on 2006-10-09 14:34:55

The command that is generated by configure for checking swap on HP-UX is "swapinfo -dfM," and it should be "swapinfo -dfM" (without trailing comma).

check_swap now always returns "SWAP WARNING - 100% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0" because it can not interpret the error message generated by the spurious ','

The error is most likely caused by a spurious "'" at line 1754 of configure.in and is propagated to line 42278 of configure in cersion 1.43 of nagios_plugins.

A quik workaround is to manually change the SWAP_COMMAND in config.h after configuration.

Dick

monitoring-user commented 10 years ago

Submitted by tonvoon on 2006-12-07 17:30:13

Dick,

Thanks for the report. Unfortunately, I can't find the line you mean as there are 1754 lines in configure.in. Can you take another look? I don't have access to a HP/UX server.

Ton

monitoring-user commented 10 years ago

Submitted by vandenburgd on 2006-12-07 20:48:37

The error is (in version 1.4.5) at line 1442 of configure.in ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM", The error is the ',' at the end of the line

monitoring-user commented 10 years ago

Submitted by tonvoon on 2006-12-07 23:39:37

Dick,

Thanks for your help. Applied to CVS (though looks like the commit emails have not been sent...)

Ton