[Nagiosplug-devel] Missing character in plugin output

Mark Clayton clayton256 at gmail.com
Mon Jan 16 23:38:43 CET 2012


I put together a bash script to use as a plugin. It is to monitor a hard
drive temperature via hddtemp on a linux box. I based the script on
check_log. The interesting bits are:

<snip>
    HDTEMP=$(/user/sbin/hddtemp $DRIVE | awk '{ print $4}' | awk -F '°' '{
print $1}')
<snip>
    /bin/echo "($DRIVE)=${HDTEMP} C."
<snip>

The command line output looks fine:

root at little-harbor:/home/mark# /usr/lib/nagios/plugins/check_hddtemp -d
/dev/sda
(/dev/sda)=36 C.

But Firefox and Safari show:
 Disk Temperature<http://little-harbor.local/cgi-bin/nagios3/extinfo.cgi?type=2&host=localhost&service=Disk+Temperature>
OK 2012-01-16 13:14:550d 4h 8m 22s 1/4(/dev/sda)= C.

The machine details are:
Ubuntu 11.10
Nagios core 3.2.3
Nagios plugins 1.4.15
Apache 2.2.20

Does anyone have any thoughts?

Thanks,
Mark
--
claytoncapers.blogspot.com
www.mark-clayton.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20120116/65bbf594/attachment.html>


More information about the Devel mailing list