We started getting UNKNOWN alerts from nagios about our drupal site and doing some research I found that the nagios status line was getting corrupted:
nag....ios=WARNING, ADMIN:WARNING=Module and theme update status, CRON:OK | SAN=44;SAU=1;NOD=78;USR=13;MOD=79;THM=3
My guess is that the problem is here:
CMD="$WGET -S -T $timeout -O - -U $unique_id http://$hostname/$path"
$CMD > $temp 2>&1
by combining the streams the debug output of wget can get interleaved with the actual content, causing these sorts of issues.
I'm attaching a patch that seems to have fixed the problem for us.
Comments
Comment #1
helmo commentedYou seem to have forgotten the actual attachment.
Comment #2
helmo commentedComment #3
greg.harveyNo point keeping this open.