Re: Missing character in plugin output
Mark Clayton <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <CAJv0My-oRRR+yzuxCsBtmx2ftkvzgOsCpsKfhWn8+vNX7NfNNQ@mail.gmail.com> |
Bret & Feri, Oh how embarrassing.. You are both right. HDTEMP is (null) because hddtemp needs root privileges. I assumed I would be rusty after all these yeas but not so much to miss something this amateurish. Thank you for your help and forgive me. Blessings, Mark Clayton -- claytoncapers.blogspot.com www.mark-clayton.com On Tue, Jan 17, 2012 at 02:14, Ferenc Wagner <[email protected]> wrote: > Mark Clayton <[email protected]> writes: > > > HDTEMP=$(/user/sbin/hddtemp $DRIVE | awk '{ print $4}' | awk -F '°' > '{ print $1}') > > > > root@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. > > /usr/sbin/hddtemp probably requires elevated privileges, which it has > when run from a root shell, but not when run by Nagios. You'll probably > have to configure passwordless sudo from the nagios user to root or disk > for this command. > -- > Regards, > Feri. > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________________ > Nagios Plugin Development Mailing List > Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > Unsubscribe at > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________________ Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null