diff --git a/xCAT-rmc/resources/sn/IBM.Condition/IBSwitchLog.pm b/xCAT-rmc/resources/sn/IBM.Condition/IBSwitchLog.pm index 0c0629f0a..8e4d07776 100644 --- a/xCAT-rmc/resources/sn/IBM.Condition/IBSwitchLog.pm +++ b/xCAT-rmc/resources/sn/IBM.Condition/IBSwitchLog.pm @@ -4,7 +4,7 @@ $RES::Condition{'IBSwitchLog'} = { Name => q(IBSwitchLog), ResourceClass => q(IBM.Sensor), EventExpression => q(String != ""), - EventDescription => q(An event will be generated when an error is logged to the Syslog in the local node for IB.), + EventDescription => q(An event will be generated when errors are logged to the Syslog in the local node for IB. The errors are saved in the String attribute in the event. However, if the String attribute in the event starts with XCAT_MONAIXSYSLOG_FILE:filename, then the errors can be found in the file. In this case, it is the responsibility of the response that associates with the condition to remove the temporary file.), SelectionString => q(Name="IBSwitchLogSensor"), Severity => q(0), }; diff --git a/xCAT-rmc/resources/sn/IBM.Sensor/IBSwitchLogSensor.pm b/xCAT-rmc/resources/sn/IBM.Sensor/IBSwitchLogSensor.pm index 25019f511..de6af3d2c 100644 --- a/xCAT-rmc/resources/sn/IBM.Sensor/IBSwitchLogSensor.pm +++ b/xCAT-rmc/resources/sn/IBM.Sensor/IBSwitchLogSensor.pm @@ -11,7 +11,8 @@ else {$cmd="$::XCATROOT/sbin/rmcmon/monaixsyslog";} $RES::Sensor{'IBSwitchLogSensor'} = { Name => q(IBSwitchLogSensor), - Command => "$cmd -p local6.info", + Command => "$cmd -p local6.warn -f /var/log/xcat/syslog.fabric.warning", + Description => "This sensor monitors the errors logged by IB Switch management software. The String attribute will get updated with the IB related errors happend within the last 60 seconds. If the length of the error messages is too long, the errors will be saved into a temporary file under /var/opt/xcat_aix_syslog. And the String attrubute will be updated with the file name instead. The format is XCAT_MONAIXSYSLOG_FILE:filename.", UserName => q(root), RefreshInterval => q(60), ErrorExitValue => q(1), diff --git a/xCAT-rmc/scripts/monaixsyslog b/xCAT-rmc/scripts/monaixsyslog index de96a76f3..7346c217c 100755 --- a/xCAT-rmc/scripts/monaixsyslog +++ b/xCAT-rmc/scripts/monaixsyslog @@ -15,7 +15,7 @@ my $default_runfile = "$vardir/.monaixsyslog_run"; my $default_file = "$vardir/syslog.out"; my $default_pri = "*.warn"; -$::MAX_SENSOR_STRING = 10240; +$::MAX_SENSOR_STRING = 65535; my ($facility_priority, $logfile, $runfile) = &getArgs(); my ($syslogconf, $embedinfo); diff --git a/xCAT-rmc/scripts/monerrorlog b/xCAT-rmc/scripts/monerrorlog index 6af6f3e0e..54e1d4354 100755 --- a/xCAT-rmc/scripts/monerrorlog +++ b/xCAT-rmc/scripts/monerrorlog @@ -28,7 +28,7 @@ my $vardir = "/var/opt/$dirname"; my $default_runfile = "$vardir/.monerrorlog_run"; my $default_fifo = "$vardir/syslog_fifo"; my $default_pri = "*.warn"; -$::MAX_SENSOR_STRING = 10240; +$::MAX_SENSOR_STRING = 65535; my ($facility_priority, $fifo, $runfile) = &getArgs(); my ($syslogconf, $embedinfo);