I wrote plugin for Nagios the other day. This script is just to show the current temperature values of the 3 build in ambient temp sensor in the chassis of a Dell e1000. A problem was to create the degree symbol ‘°‘. I ‘Googled’ a while and found a lot of solutions, but none of them worked for me. I don’t know if it was because of the SSH terminal or the keyboard driver. I saw loads of different symbols but none of them looked even close to what I was looking for. Finally I found a way to create that symbol.
[root@NAGIOS ~]# DEGCEL="\0260C"; echo -e $DEGCEL
°C
A Quote from qotd.org
The man of character, sensitive to the meaning of what he is doing, will know how to discover the ethical paths in the maze of possible behavior.
Earl Warren
1891 - 1974Archives
- September 2017
- June 2017
- February 2017
- June 2016
- December 2015
- September 2015
- July 2015
- June 2015
- January 2015
- November 2014
- August 2014
- June 2014
- May 2014
- April 2014
- February 2014
- January 2014
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- February 2013
- January 2013
- November 2012
- August 2012
- June 2012
- February 2012
- January 2012
- December 2011
UserOnline
Recent comments
Hi,
I just stumbled over this here. How can one use a degree-sign inside of a “check_command”, for example for the “units” option?
I tried something like:
check_command check_snmp!-C public -o upsAdvBatteryTemperature.0 -w 30 -c 40 -u ‘260C’
but that doesn’t work… Any ideas?
TIA!