[pfSense] How to monitor left (free) space on hard drive ?

2014-02-09 Thread David QuayCendre
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
___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] How to monitor left (free) space on hard drive ?

2014-02-09 Thread Moshe Katz
On Sun, Feb 9, 2014 at 3:21 PM, David QuayCendre david.quaycen...@gmail.com
 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
-- mo...@ymkatz.net
-- +1(301)867-3732
___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] How to monitor left (free) space on hard drive ?

2014-02-09 Thread Adam Thompson

On 14-02-09 02:21 PM, David QuayCendre 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 ?


1. It's displayed on the main Dashboard, down at the bottom: Disk usage
2. (I think) It's available via SNMP, if you have that turned on.
3. No, you can't send mail via the mail command, however pfSense comes 
with a different command that you *could* use if you're dead set on 
sending email from the firewall, /usr/local/bin/mail.php.  It requires 
that you have an SMTP server configured correctly under 
System-Advanced-Notifications.


--
-Adam Thompson
 athom...@athompso.net

___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list


[pfSense] Easy way to Prioritize to a handful of WAN IPs?

2014-02-09 Thread Chuck Mariotti
Configuration of a single datacenter connection, with 2 x WANs defined (two 
separate public IP sets/subnets). Both equally important... just ran out of IPs.

We are experiencing an influx of traffic for a few servers that are starting to 
introduce some problems in some VOIP traffic at times... rather than purchasing 
more bandwidth (did this last previously), I think it's time to actually fix 
the issue at hand.

Simply put, there are a handful of public IP addresses (not ours) at a few VOIP 
providers that I want to have the highest priority over all other traffic 
in/out of the datacenter. What is the easiest way to do this?

In a related question, we have some phones connecting to the datacenter via 
OpenVPN connections. Do we have to worry about prioritizing that traffic as 
well or is OpenVPN traffic higher priority already... this doesn't seem to be a 
problem at the moment, but may as well ask now.

Regards,

Chuck
___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list