diff options
author | Urban Müller | 2019-02-25 10:55:53 +0100 |
---|---|---|
committer | Urban Müller | 2019-02-25 10:55:53 +0100 |
commit | 808eca4aad0c55a5fd5a8950e2efe8a528084932 (patch) | |
tree | 00089fd2a4768a31b37a4b4a6ccb06dccac6f018 /it.class | |
parent | edc6373994744c1e304b03976c4425d46ea2ea84 (diff) | |
download | itools-808eca4aad0c55a5fd5a8950e2efe8a528084932.tar.gz itools-808eca4aad0c55a5fd5a8950e2efe8a528084932.tar.bz2 itools-808eca4aad0c55a5fd5a8950e2efe8a528084932.zip |
handle evel() parens in trace
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -272,7 +272,7 @@ static function error($p = array()) $body .= $p['id'] ? "Filter: timewindow=" . $p['graceperiod'] . "-" . ($p['graceperiod'] + $p['timewindow']) . " (previous err: " . it::date('', $errstamp) . ")\n\n" : ""; $body .= $origp['blockmail'] ? "Block-resend: " . $origp['blockmail'] . " seconds\n\n" : ""; - $body .= !$trace ? "" : "Overview: ssh " . getenv('HOSTNAME') . " 'cat /tmp/alertdata/alertlog | grep \"$trace\"'\n\n"; + $body .= !$trace ? "" : "Overview: ssh " . getenv('HOSTNAME') . " 'cat /tmp/alertdata/alertlog | fgrep \"$trace\"'\n\n"; $body .= ($trace and $t = it::exec('grep -h {0} `ls /tmp/alertdata/alertlog-*|tail -3` /dev/null 2>/dev/null | grep ^2 | cut -d : -f 1-2 | sort | uniq -c | tail -10', $trace)) ? "Histogram: (last 10 affected minutes in 3 days)\n$t\n" : ""; $body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : ""; $body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : ""; |