On Sun, Feb 9, 2014 at 3:21 PM, David QuayCendre <[email protected] > wrote:
> Hello, > I'm looking for monitoring on the left space on my pfSense hard drive. > I found this shell script : > > http://bash.cyberciti.biz/monitoring/shell-script-monitor-unix-linux-diskspace/ > It seem works but the mail fonction not exist ! > psSense shell says : mail: not found > > I'm just looking for a little sript or solution. > > Do you have already monitor free space ? > Can we send mail in the shell ? > > Thanks a lot > David > You should be able to use `mail` by installing the "mailutils" package. For pfSense 2.1 x86: pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/mail/mailutils-2.2.tbz For pfSense 2.1 x64: pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/mail/mailutils-2.2.tbz Alternatively, you could write a small PHP script that calls " send_smtp_message" in "/etc/inc/notices.inc" to send the email using the email notification settings that are set in "System" -> "Advanced" -> "Notifications", and call that PHP script from your disk-space monitoring script. HTH, Moshe -- Moshe Katz -- [email protected] -- +1(301)867-3732
_______________________________________________ List mailing list [email protected] http://lists.pfsense.org/mailman/listinfo/list
