warning and critical may be empty, so use %s not %d
authorGreg Sabino Mullane <[email protected]>
Tue, 2 Mar 2010 16:04:10 +0000 (11:04 -0500)
committerGreg Sabino Mullane <[email protected]>
Tue, 2 Mar 2010 16:04:10 +0000 (11:04 -0500)
check_postgres.pl

index 8033ba368b8c992152bfe498171975ad19b01f54..2729ce6a7efee8604323ef4d8e77aeceb4e7ec19 100755 (executable)
@@ -3975,7 +3975,7 @@ WHERE current_query <> '<IDLE>'$USERWHERECLAUSE
 
        $MRTG and do_mrtg({one => $maxtime, msg => $whodunit});
 
-       $db->{perf} .= sprintf q{'%s'=%s;%d;%d},
+       $db->{perf} .= sprintf q{'%s'=%s;%s;%s},
                        $whodunit,
                        $maxtime,
                        $warning,