Welcome to Pandora FMS Community › Forums › Community support › Installing Pandora FMS Agent on Mac OS X
-
Installing Pandora FMS Agent on Mac OS X
Posted by trothen on July 6, 2015 at 14:34Hello
After having searched through various forum topics I was not able to find any information about the installation of Pandora Agents under Mac OS X. (Although it is specified as a supported operating system in the documentation and on the download page)
We installed the Pandora FMS server, console and agent on a Ubuntu LTS server which all seems to run fine.
On our Mac workstations however, I was having a difficult time installing the agents.
Although it seems to be running by now, it looks like some modules are not working properly (for example I get a free disk percentage Warning although only 20% of the disk is occupied).It seems like the Mac OS X operating system was detected as a Darwin (which should be about right?).
But once the agent was detected and displayed by the pandora console of the server, it was flagged as a windows operating system?I can’t help but to think that I might have done something wrong during the installation process.
I did it according to the instructions for Linux/Unix Agent Installations:
1. Install Perl
2. Downloaded the corresponding agent (pandorafms_agent_unix-5.1SP2.tar.gz)
3. unpacked packet
4. executed the pandora_agent_installer
5. edited .conf files to proper server IP
6. started the agent using /opt/usr/bin/pandora_agent (since the pandora_agent_daemon file was not recognized as executable file)
> checked /var/log/pandora/pandora_agent.log:
2015/07/06 12:18:47 – [setup] – server_ip is *correct IP Adress of our Pandora Server*
2015/07/06 12:18:47 – [setup] – server_path is /var/spool/pandora/data_in
2015/07/06 12:18:47 – [setup] – temporal is /tmp
2015/07/06 12:18:47 – [setup] – logfile is /var/log/pandora/pandora_agent.log
2015/07/06 12:18:47 – [setup] – interval is 300
2015/07/06 12:18:47 – [setup] – debug is 0
2015/07/06 12:18:47 – [setup] – udp_server is 0
2015/07/06 12:18:47 – [setup] – udp_server_port is 41122
2015/07/06 12:18:47 – [setup] – udp_server_auth_address is 0.0.0.0
2015/07/06 12:18:47 – [setup] – server_port is 41121
2015/07/06 12:18:47 – [setup] – transfer_mode is tentacle
2015/07/06 12:18:47 – [log] – Thread is disabled.If you could help me out or point me into the right direction that would be a relief.
Best regards and many thanks,
Tobiasantonio replied 8 years ago 3 Members · 8 Replies -
8 Replies
-
::
In the meantime I managed to install it more or less stable on other Mac OS X workstations.
In case someone else has similar problems, i followed the Instructions in the Documentation for unix based operating systems (see chapter Manual Installation from Source under Lunix / Unix).
Additionally I modified the .plist File in the folder /Darwin/ with my custom folder. (only necessary if installer –install was called with a custom path, e.g. pandora_agent_installer –install /opt/pandora/).
Then i copied the file to /Library/LaunchDaemons/ and appended it using sudo launchctl load /Library/LaunchDaemons/com.pandorafms.pandorafms.plist. After reboot this worked perfectly.As for the Windows symbol I guess the symbols are not customized by the information of the agent and Windows seems to be the standard for new agents?
Hence this post can be regarded als solved.
-
::
Hi,
This post has not been replied for 2 years, but maybe someone continues in the same situation, just like me :(…
I’ve followed the instructions for Linux/Unix Agent Installations, and I’ve also included com.pandorafms.pandorafms.plist to /Library/LaunchDaemons/ as Tobias suggested, but i’m still not able to visualize the agent on pandorafms server.
I’ve no troubles for the rest workstation agents installed on different OS (Windows/Linux), they are correctly displayed on pandorafms server.
If i read my pandora_agent.log it appears the following errors:
2017/03/27 12:23:17 – [log] – Running as user root
2017/03/27 12:23:17 – [setup] – server_ip is XX.XX.XX.XX
2017/03/27 12sar: drivepath sync code error -4
/var/spool/pandora/data_in
2017/03/27 12:23:17 – [setup] – temporal is /route/to/temp/directory
2017/03/27 12:23:17 – [setup] – logfile is /route/to/logfile/directory
2017/03/27 12:23:17 – [setup] – interval is 300
2017/03/27 12:23:17 – [setup] – debug is 0
2017/03/27 12:23:17 – [setup] – agent_name is MacMini
2017/03/27 12:23:17 – [setup] – group is Servers
2017/03/27 12:23:17 – [setup] – server_port is 41121
2017/03/27 12:23:17 – [log] – Thread is disabled.
2017/03/27 12:23:17 – [error] – Error sending file ‘route/to/temp/directory/MacMini.XXXXXXX.data’: sh: tentacle_client: command not found
2017/03/27 12:23:17 – [error] – Error sending file ‘route/to/temp/directory/MacMini.YYYYYYYY.data’: sh: tentacle_client: command not foundPandoraFMS Agent is currently running, after launch ./pandora_agent_daemon start
Could anyone help me on this?
Thanks you so much
-
::
Hello castcord,
Reading the log you’ve shared, to me it looks like your pandora agent is unable to execute tentacle_client to send the files, just as the message says.
When installing the pandora agent, tentacle client should also get installed too, so you may need to find where it is installed and move it to the /bin or the path where you system commands are stored.
To test this, you should be able to execute “tentacle_client” manually from command line in your MAC computer. If you are able to execute it successfuly, the agent should too, otherwise that may be related to permission issues.
Kind regards,
Antonio. -
-
-
-
::
It was a wrong module configuration, now it’s working.
This is a module example that is currently working in my Mac OSX:
module_begin module_name %CPU service_name module_type generic_data_string module_exec pgrep -f service_name | xargs ps -o %cpu | grep -v %CPU | head -n 1 module_description %CPU service_name module_end
The problem is that if I reboot Mac OSX, this service monitoring is not refreshed on Pandora server, even if Pandora Agent is running and service “service_name” is also up.
I have to restart Pandora Agent Daemon every time, to get this module updated on Pandora server:sudo /path/to/pandora/daemon/pandora_agent_daemon restart
Coud you help me on this?
Thanks you so much,
Aaron
-
::
Hello castcord,
I don’t know why you need to restart the agent service when you reboot you computer if when booting it is already running, first time I see this. A quick solution that should work is to execute a pandora_agent_daemon restart on system startup. I don’t know where this script is located on mac, but on a CentOS type, something like adding the restart command at the end of the /etc/rc.local file should work.
Kind regards,
Antonio.