From 589ba1cecc67c6e73c4c6de2d4f48f64c80948ff Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 1 Jun 2012 08:08:41 +0000 Subject: [PATCH] fixed defect:Summary:change all logger calls to put xcat msgs into local4 - ID: 3513525 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12986 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/scripts/updatexcatnodestatus | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-rmc/scripts/updatexcatnodestatus b/xCAT-rmc/scripts/updatexcatnodestatus index 7cfba8d5e..78eacaa3f 100755 --- a/xCAT-rmc/scripts/updatexcatnodestatus +++ b/xCAT-rmc/scripts/updatexcatnodestatus @@ -62,7 +62,7 @@ if (!$batch) { if ($attrName eq '"Status"') { $status = $attrValue; } } } else { - `logger xCAT "[mon]: updatexcatnodestatus: This script does not handle condition $cond_name"`; + `logger -t xCAT -p local4.err "[mon]: updatexcatnodestatus: This script does not handle condition $cond_name"`; exit 1; } my $status_string; @@ -82,12 +82,12 @@ if (!$batch) { my $result=`$::XCATROOT/sbin/chtab node=$node nodelist.status=$status_string nodelist.statustime="$currtime" 2>&1`; my $code=$?; if ($code) { - `logger xCAT "[mon]: Error saving node status ($node,$status_string) to xCAT:$result"`; + `logger -t xCAT -p local4.err "[mon]: Error saving node status ($node,$status_string) to xCAT:$result"`; exit $code; } } else { #batch event if ($cond_name ne "NodeReachability_Batch") { - `logger xCAT "[mon]: updatexcatnodestatus: This script does not handle condition $cond_name"`; + `logger -t xCAT -p local4.err "[mon]: updatexcatnodestatus: This script does not handle condition $cond_name"`; exit 1; } if ($ENV{ERRM_COND_BATCH_NUM} > 0) { @@ -157,7 +157,7 @@ if (!$batch) { my $result=`XCATBYPASS=Y $::XCATROOT/bin/nodech $node_string nodelist.status=active nodelist.statustime="$currtime" 2>&1`; my $code=$?; if ($code) { - `logger xCAT "[mon]: Error saving node status ($node_string,active) to xCAT:$result"`; + `logger -t xCAT -p local4.warning "[mon]: Error saving node status ($node_string,active) to xCAT:$result"`; } } if (@inactive > 0) { @@ -176,7 +176,7 @@ if (!$batch) { my $code=$?; if ($code) { - `logger xCAT "[mon]: Error saving node status ($node_string,inactive) to xCAT:$result"`; + `logger -t xCAT -p local4.warning "[mon]: Error saving node status ($node_string,inactive) to xCAT:$result"`; } } }