Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
bostonsean
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.
I agree with you bostonsean. It is an annoying charset encoding bug. As far as I know "Degree Symbol" for temperatures or "Masculine Ordinal Indicator" character codification may depend on your locales, encoding charset and/or keyboard layout for your system language and/or browser URL encodings. A nightmare indeed. Notice that Nagios only shows first line from plugin output. Removing the problematic char is a straightforward workaround, but I'm afraid I submitted my local codification for that char from my machine text editor, so that in your system it gets coded in some buggy way making it to not show correctly on your Nagios console. I suggest to edit the perl script and replace the "ยบ" char (Degree Symbol) with the proper codification supported by your servers and test the new modified script from both Nagios installations.
Let me know if that works! Thanks in advanced.
Before the while case loop I did:
MPS=`grep nfs /etc/fstab | grep -v '^#' | awk '{print $2}' | tr '\n' ' '`
then commented out the /*MPS line in the case block.
Version 1.6 adds the flag -a to the script, which means mountpoints are autoselected from fstab file.
So use the new version like:
check_mountpoints.sh -a