Pandora FMS Community

tentacled permissions with rpm install

davidkazuhiro · 5 feb 2015, 16:41 · 4 mensajes · 70 visitas

  1. Inicio del debate

    Hi. I've installed the Pandora Server RPM but I'm having trouble restarting Tentacle Server Here is the error I'm getting [root@myserver ~]# /etc/init.d/tentacle_serverd restart Tentacle Server does not seem to be running Sorry, user root is not allowed to execute '/usr/bin/tentacle_server -a 0.0.0.0 -p 41121 -s /var/spool/pandora/data_in -i.*.conf:conf;.*.md5:md5;.*.zip:collections -d' as pandora on myserver. Tentacle Server could not be started. Verify that port 41121 is not used. And here is some of my system info. I'm running CentOS 6 [root@myserver bin]# yum info pandorafms_server Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: centos.mirror.secureax.com * extras: centos.mirror.secureax.com * updates: centos.mirror.secureax.com Installed Packages Name        : pandorafms_server Arch        : noarch Version    : 5.1SP1 Release    : 1 Size        : 1.3 M Repo        : installed From repo  : artica_pandorafms Summary    : Pandora FMS Server URL        : http://www.pandorafms.com License    : GPL Description : Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support             : multiple setups in HA enviroments. [root@myserver ~]# ls -l /usr/bin | grep tentacle -rwxr-xr-x    1 pandora root      22313 Sep  2 04:08 tentacle_client -rwxr-xr-x    1 pandora root      40888 Oct 31 21:28 tentacle_server [root@myserver ~]# ls -lH /etc/init.d | grep tentacle -rwxr-xr-x  1 root    root  3397 Oct 31 21:28 tentacle_serverd I read through the script /etc/init.d/tentacle_serverd and found that it's trying to do a sudo -u as pandora, so I added this line to /etc/sudoers and then it worked fine. root ALL = (pandora) NOPASSWD: /usr/bin/tentacle_server However, I wanted to check if this is really intended... I didn't find this documented anywhere and it sure is a pain to have to do this every time after instaling Pandora server. Can anybody comment?

  2. Hello Depending on how you have set up pandora on the Centos system on some ocassions you may need to update sudoers file to allow tentacle to start. vi /etc/sudoers. If you have any doubts on the content of that file take a look at the attached txt there you can find a copy of the sudoers file from a properly working centos system. Regards Ivo

    sudoers.txt

  3. So are you basically saying that this rpm assumes that root can sudo as pandora?

  4. Hello What I am saying is to make sure that the user root can run any command anywhere:

    ## Allow root to run any commands anywhere root    ALL=(ALL)      ALL

    You also need the user pandora to run tentacle. Have you created that user? Regards Ivo

Entra en tu cuenta para publicar.