Solved - Cacti 1.2.6 - Permissions English/German
Moderators: Developers, Moderators
Solved - Cacti 1.2.6 - Permissions English/German
German version below. Thanks for your help!
Deutsche Version unten angehängt. Danke für eure Hilfe!
English:
Hello guys,
I have a problem with my cacti installation on my CentOS 8 machine.
It is a virtual machine on a proxmox host. (both firewalls are complety diabled for testing)
The problem is, that it is not possible for spine to create the RRDs for other systems.
I think it is a permission problem to create the RRDs in the rra-folder?
The problem I don't get why it's working for the local machine?
I installed cacti and spine both as packages from repository links.
The systems that I want to pull are perfect accessible with ping and SNMP from cacti and the system itself.
In the moment I'm stucking on this problem, I tried to give the apache user the rights, but it didn't work.
Thanks for your help!
Best regards
Johannes
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
German:
Hallo Leute,
Ich habe ein Problem mit meiner Cacti Installation auf meinem CentOS 8 System.
Es handelt sich dabei um eine virtuelle Maschine, die auf einem Proxmox Host läuft. (Zum Testen wurden auf beiden Systemen die Firewalls abgeschaltet)
Das Problem ist, dass es für Cacti nicht möglich ist für andere Systeme die RRDs und Grafiken zuerstellen.
Ich denke es handelt sich hier um ein Rechteproblem für das Erstellen von RRDs im rra-Ordner?
Was ich aber nicht verstehe ist, das Spine problemlos mit der lokalen Maschine funktioniert?
Ich habe Spine und Cacti beide als Pakete mittels Repositorys installiert.
Das System was ich erreichen möchte, kann problemlos per ping und SNMP von cacti oder System erreicht werden.
Im Moment bin ich bei diesem Problem gefangen. Ich habe versucht dem apache-user die nötigen Rechte zugeben, aber das hat nicht funktioniert.
Vielen Dank für Eure Hilfe!
Beste Grüße
Johannes
Deutsche Version unten angehängt. Danke für eure Hilfe!
English:
Hello guys,
I have a problem with my cacti installation on my CentOS 8 machine.
It is a virtual machine on a proxmox host. (both firewalls are complety diabled for testing)
The problem is, that it is not possible for spine to create the RRDs for other systems.
I think it is a permission problem to create the RRDs in the rra-folder?
The problem I don't get why it's working for the local machine?
I installed cacti and spine both as packages from repository links.
The systems that I want to pull are perfect accessible with ping and SNMP from cacti and the system itself.
In the moment I'm stucking on this problem, I tried to give the apache user the rights, but it didn't work.
Thanks for your help!
Best regards
Johannes
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
German:
Hallo Leute,
Ich habe ein Problem mit meiner Cacti Installation auf meinem CentOS 8 System.
Es handelt sich dabei um eine virtuelle Maschine, die auf einem Proxmox Host läuft. (Zum Testen wurden auf beiden Systemen die Firewalls abgeschaltet)
Das Problem ist, dass es für Cacti nicht möglich ist für andere Systeme die RRDs und Grafiken zuerstellen.
Ich denke es handelt sich hier um ein Rechteproblem für das Erstellen von RRDs im rra-Ordner?
Was ich aber nicht verstehe ist, das Spine problemlos mit der lokalen Maschine funktioniert?
Ich habe Spine und Cacti beide als Pakete mittels Repositorys installiert.
Das System was ich erreichen möchte, kann problemlos per ping und SNMP von cacti oder System erreicht werden.
Im Moment bin ich bei diesem Problem gefangen. Ich habe versucht dem apache-user die nötigen Rechte zugeben, aber das hat nicht funktioniert.
Vielen Dank für Eure Hilfe!
Beste Grüße
Johannes
Last edited by FiSiGer on Mon May 18, 2020 4:01 pm, edited 1 time in total.
Re: Cacti 1.2.6 - Permissions English/German
You might try to run it through the Data Source troubleshooter first. Its pretty good at catching exactly what is wrong.
Re: Cacti 1.2.6 - Permissions English/German
Hey cigamit,
thanks for the fast reply!
This are the results of the troubleshooting: The issues in detail shows this:
Total Poller Items: Thold Runtime: User Stats:
The functioning local machine shows this:
Do you know what I have to add to fix the issues?
Thanks & best regards!
Johannes
thanks for the fast reply!
This are the results of the troubleshooting: The issues in detail shows this:
Total Poller Items: Thold Runtime: User Stats:
The functioning local machine shows this:
Do you know what I have to add to fix the issues?
Thanks & best regards!
Johannes
Re: Cacti 1.2.6 - Permissions English/German
I would say that it sounds like you don't have a cron job to run the poller.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Cacti 1.2.6 - Permissions English/German
The log shows that the poller is running, so your cron is fine.
The Troubleshooter shows that the poller is able to write to the rra folders, so its not permissions. It might be an SELINUX issue though, so try temporarily disabling that if its not already.
It seems that you are trying to use the Cacti Stats template, you might want to try using something else (any of the host mib ones should do).
You can also change the logging mode to MEDIUM to see what results you are actually getting back from the devices.
The warning "failing back to udp ping due to setuid issues" may be the real culprit though. Kinda wierd since the poller runs as root. Can you do a "ls -al" on your spine binary.
Are the devices show as down? If that ping is failing, depending on device down settings, it will not try to poll the device.
The Troubleshooter shows that the poller is able to write to the rra folders, so its not permissions. It might be an SELINUX issue though, so try temporarily disabling that if its not already.
It seems that you are trying to use the Cacti Stats template, you might want to try using something else (any of the host mib ones should do).
You can also change the logging mode to MEDIUM to see what results you are actually getting back from the devices.
The warning "failing back to udp ping due to setuid issues" may be the real culprit though. Kinda wierd since the poller runs as root. Can you do a "ls -al" on your spine binary.
Are the devices show as down? If that ping is failing, depending on device down settings, it will not try to poll the device.
Re: Cacti 1.2.6 - Permissions English/German
I think cigamit is right, try a different graph. Or are you problems only with these special Cacti Stats graph templates?
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Cacti 1.2.6 - Permissions English/German
Hello netniV, hello cigamit,
SELINUX is disabled from the beginning, so it can't be the issue. But thanks for the advice!
I think it isn't a graph problem, because I tried it with a few different graph templates, but none of them worked.
Even graph templates didn't work, which we using in our current productive cacti machine.
CPU-Avaya: (running perfect in our machine)
NET-SNMP:
Here is a screenshot of /bin/spine:
The thing is that the spine poller works complete fine for the Local-Linux-Machine and every ICMP-Ping and SNMP request works perfect from the machine and cacti.
Best regards
Johannes
SELINUX is disabled from the beginning, so it can't be the issue. But thanks for the advice!
I think it isn't a graph problem, because I tried it with a few different graph templates, but none of them worked.
Even graph templates didn't work, which we using in our current productive cacti machine.
CPU-Avaya: (running perfect in our machine)
NET-SNMP:
Here is a screenshot of /bin/spine:
The thing is that the spine poller works complete fine for the Local-Linux-Machine and every ICMP-Ping and SNMP request works perfect from the machine and cacti.
Best regards
Johannes
Re: Cacti 1.2.6 - Permissions English/German
Spine should be owned by root and SetUID flag should be marked. That way, when the poller runs, it is switches from the polling user which cron has defined, to root (which allows us to use ICMP ping packets) and then drop back to the polling user's effective level. That said, if the polling user does not have access to the RRD folders, it will never update them.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Solved - Cacti 1.2.6 - Permissions English/German
It was a permission issue, I changed the RRD folder rights. Than cacti was able to write files in it.
Thanks for your help guys!
Thanks for your help guys!
Who is online
Users browsing this forum: No registered users and 1 guest