Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

All details need to be on one line

  • Loading branch information...
commit 39831410c714cc2b023507708547d4e39ffff8a7 1 parent a87a46c
@barryo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 check_portstatus.pl
View
4 check_portstatus.pl
@@ -191,7 +191,7 @@
if( ( $sysuptime - $t_lastChange ) <= $window && ( $sysuptime - $t_lastChange ) >= 0 ) {
&setstate( 'WARNING',
- sprintf( "Port state change to $CISCO_PORT_OPER_STATES{$t_state} %0.1f mins ago for ${t_name} [DESC: ${t_alias}] [Reason: %s]",
+ sprintf( "Port state change to $CISCO_PORT_OPER_STATES{$t_state} %0.1f mins ago for ${t_name} [DESC: ${t_alias}] [Reason: %s]. ",
( $sysuptime - $t_lastChange ) / 60.0, defined( $t_changeReason ) ? $t_changeReason : ''
)
);
@@ -269,7 +269,7 @@ sub setstate {
$state = $newstate;
}
- if( $answer ) { $answer .= "<br />\n"; }
+ # if( $answer ) { $answer .= "<br />\n"; }
$answer .= $message;
}
Please sign in to comment.
Something went wrong with that request. Please try again.