LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Graphing with rrdtrool example (https://www.linuxquestions.org/questions/linux-newbie-8/graphing-with-rrdtrool-example-499129/)

meniscus 11-06-2006 10:26 AM

Graphing with rrdtrool example
 
Im at this page

http://www.lm-sensors.org/wiki/man/sensord

and im at the section where its giving

Quote:

An example of how to set up Web-accessible graphs of recent sensor readings follows:

Im getting no errors upto when i type

Code:

sensord --load-average \
  --rrd-file /var/log/sensord.rrd \
  --rrd-cgi /var/www/sensord \
  > /usr/lib/cgi-bin/sensord.cgi

When i press return i get

Code:

bash: /usr/lib/cgi-bin/sensord.cgi: Permission denied
Im logged in as root. Can anyone tell me whats wrong?

macemoneta 11-06-2006 10:51 AM

What distribution are you using (update your profile). If your distribution uses SELinux, check your /var/log/messages or /var/log/audit/audit.log for AVC messages.

meniscus 11-06-2006 10:58 AM

Im using ubuntu.

The file sensord.rrd file is being created (as in var/log/sensord.rrd)


Is it something to do with the code

Quote:

chown www-data:staff /var/www/sensord
Does
Quote:

www-data:staff
apply to me?

macemoneta 11-06-2006 11:06 AM

The terms www-data:staff mean userid=www-data and group=staff. If you don't have that userid and group, then it does not apply to you.

meniscus 11-06-2006 11:08 AM

Sorry, im receiving
Code:

sensord failed
in /var/log/messages


But before that in /var/log/messages it says
Code:

sensord starting
and i am getting a file sensord.rrd in /var/log (which i cant open)so it seems to be half working.

meniscus 11-06-2006 11:10 AM

how do i find out these ids?

meniscus 11-06-2006 11:25 AM

I typed id to get the user and group id. My userid and group id are the same(myname)

So i typed this

Code:

chown www-meniscus:meniscus /var/www/sensord
and received

Code:

chown 'www-meniscus:meniscus' : invalid user
Is it something stupid im doing wrong?


All times are GMT -5. The time now is 04:24 AM.