How To set permision defauld in add graph cacti?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
horasjey
Posts: 7
Joined: Tue Aug 27, 2024 1:43 am
Contact:

How To set permision defauld in add graph cacti?

Post by horasjey »

Hallo,
Please help, why is it that every time I make a new graph the results are like this, but not every time, only a few times, even though the steps I do are the same
Image

What is the impact of this permission?

Code: Select all

RRDfile Owner	root:root
because if the permission is root:root , then the result will failWhat is the impact of this permission?
because if the permission is root:root , then the result will fail

but if the permissions are like this, then there are no problems

Code: Select all

apache:apache	


Anyone who has experienced this, can you change the permissions file that failed earlier, or is there a way to make it default using apache:apache
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: How To set permision defauld in add graph cacti?

Post by macan »

you have cron record for cacti poller. This job is started as any user. This user have to have write permissions for rrd files (and /path/to/cacti/rra directory)
Let the Cacti grow!
horasjey
Posts: 7
Joined: Tue Aug 27, 2024 1:43 am
Contact:

Re: How To set permision defauld in add graph cacti?

Post by horasjey »

macan wrote: Tue Aug 27, 2024 2:37 am you have cron record for cacti poller. This job is started as any user. This user have to have write permissions for rrd files (and /path/to/cacti/rra directory)
hello thank you macan

That means I have to log in to the Ubuntu Cacti server to edit it, right?

because I don't have access to do that,

I've tried reporting it to the Ubuntu server administrator,
it's just that he gave a response,

If you do it with focus, you can do it
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: How To set permision defauld in add graph cacti?

Post by macan »

horasjey wrote: Tue Aug 27, 2024 2:49 am That means I have to log in to the Ubuntu Cacti server to edit it, right?
Yes
Let the Cacti grow!
horasjey
Posts: 7
Joined: Tue Aug 27, 2024 1:43 am
Contact:

Re: How To set permision defauld in add graph cacti?

Post by horasjey »

horasjey wrote: Tue Aug 27, 2024 1:55 am
Anyone who has experienced this, can you change the permissions file that failed earlier, or is there a way to make it default using apache:apache
but I'm confused, why some graphs can be normal with apace permission,

What are the things that make it different?
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: How To set permision defauld in add graph cacti?

Post by macan »

maybe someone changed permission? Maybe you lost write permission to rra directory and you poller cannot create new file.
Let the Cacti grow!
horasjey
Posts: 7
Joined: Tue Aug 27, 2024 1:43 am
Contact:

Re: How To set permision defauld in add graph cacti?

Post by horasjey »

macan wrote: Tue Aug 27, 2024 3:02 am maybe someone changed permission? Maybe you lost write permission to rra directory and you poller cannot create new file.
Now it works after looping
delete graph and device and create new device and graph,

I do it continuously until apache permits: apahce,


This is strange, and is there perhaps a solution?

I will try to request dl access to the server to ensure the crontab configuration
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: How To set permision defauld in add graph cacti?

Post by macan »

you should find information in cacti log. Was there any error or warning at the time the graph didn't work?
Let the Cacti grow!
horasjey
Posts: 7
Joined: Tue Aug 27, 2024 1:43 am
Contact:

Re: How To set permision defauld in add graph cacti?

Post by horasjey »

i find this in debug device
RRDtool Says:

ERROR: opening '/var/www/html/cacti/rra/horastestcacti.rrd': No such file or directory
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: How To set permision defauld in add graph cacti?

Post by macan »

you have problem only with one device or any new added devices?
Let the Cacti grow!
horasjey
Posts: 7
Joined: Tue Aug 27, 2024 1:43 am
Contact:

Re: How To set permision defauld in add graph cacti?

Post by horasjey »

macan wrote: Tue Aug 27, 2024 10:13 am any new added devices?
Any new added devices sir,
and a failure will occur if the file permission is root:root but if Apache: Apache is normal I don't know why there are differences in file permissions when creating graphs, is that normal or is there something wrong with my settings?
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: How To set permision defauld in add graph cacti?

Post by macan »

we really need know few information:
1) which user starting poller (probably in cron)
2) ls -ald /path/to/cacti/rra
3) ls -al /path/to/cacti/rra | head -10
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests