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

helmo’s picture

You seem to have forgotten the actual attachment.

helmo’s picture

Status: Active » Postponed (maintainer needs more info)
greg.harvey’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No point keeping this open.