Here's the patch to mmm-1.0, which adds FreeBSD support.
Changed files:
install.pl
lib/agent_commands.pm
lib/check_modules/ping.pm
lib/ifconfig.pm
Added files:
bin/sys/freebsd_uptime_sec (simple sh script to get uptime in seconds)
To get mmm installed on freebsd, follow these steps:
1. Patch original mmm-1.0 with provided patch :)
2. Copy attached script freebsd_uptime_sec to bin/sys
3. Recompile contrib/fping and contrib/send_arp (you may need to install
port /usr/ports/net/libnet and adjust Makefile to get send_arp compiled)
4. Make sure your perl compiled with threads support. By default it's not,
so do as root:
# cd /usr/ports/lang/perl5.8 && make WITH_THREADS=yes
# make deinstall && make install clean
# portupgrade --force /var/db/pkg/p5*
5. Run install.pl
That's it. Now configure mmm the way you want it to.
P.S. LVM related fixes are still in progress, but main functionality
(monitor and agents) should work properly.
Original issue reported on code.google.com by meph...@gmail.com on 20 Nov 2008 at 10:12
Original issue reported on code.google.com by
meph...@gmail.com
on 20 Nov 2008 at 10:12Attachments: