print $sensor->{NAME}.": ".$sensor->{VAL}.$sensor->{UNITS};
my @info = ();
- foreach my $field qw(MIN MAX LOW_NON_CRITICAL UPPER_NON_CRITICAL LOW_CRITICAL UPPER_CRITICAL) {
+ foreach my $field (qw(MIN MAX LOW_NON_CRITICAL UPPER_NON_CRITICAL LOW_CRITICAL UPPER_CRITICAL)) {
if ($sensor->{$field} ne '') {
push @info, "${field}: ".$sensor->{$field}.$sensor->{UNITS};
}
sub spawn_gui {
my $base = shift;
+ $ENV{'AWT_TOOLKIT'} = 'MToolkit';
open(APPLET,"|appletviewer -J-Djava.security.policy=applet.policy -J-Djava.net.preferIPv4Stack=true /dev/stdin");
print APPLET '<HTML><HEAD><TITLE>RSB S2 User Interface</TITLE></HEAD>';
print APPLET '<BODY>';
if ($gui) {
spawn_gui($url);
+ exit 0;
}
login(${$Config{$hostalias}}{"user"}, ${$Config{$hostalias}}{"pass"});