Random Project

Possible bug using the degree character

We have 2 different Nagios installs, one is 3.4.4 and one is 3.5.0. On 3.4.4 Check_F5_Platform.pl shows the entire return in the nagios UI, ex:

CPU-1 39?C, CPU-2 38?C, FAN-1 ok, FAN-2 ok, FAN-3 ok, POWER-SUPPLY-1 ok, POWER-SUPPLY-2 ok, Chassis-Temperature-1 28?C, Chassis-Temperature-2 32?C, Chassis-Temperature-3 33?C, Chassis-Temperature-4 30?C

On 3.5.0 it’s cut off after “CPU-1 39”. I removed those special chars from the script and Nagios now displays the output properly.