Pfsense on a HP Netserver LPr
-
Maybe your RAID controller is not supported by this program.
I will check it, I thought it was.
How are labeled your disks? What do you mean by this ?
-
Give me the output of 'df'
-
Give me the output of 'df'
/dev/idad0s1a 13133670 75896 12007082 1% /
devfs 1 1 0 100% /dev
/dev/md0 1710 26 1548 2% /var/run
devfs 1 1 0 100% /var/dhcpd/devBtw, I was thinking of using smartmontools. After installing this I see that libcam* is missing.
Or we have to get a full install tree, what not should be it.
-
Give me the output of 'df'
/dev/idad0s1a 13133670 75896 12007082 1% /
devfs 1 1 0 100% /dev
/dev/md0 1710 26 1548 2% /var/run
devfs 1 1 0 100% /var/dhcpd/devYour RAID controller doesn't use the amr driver, so you can't use amrstat
Btw, I was thinking of using smartmontools. After installing this I see that libcam* is missing.
Or we have to get a full install tree, what not should be it.
If you get smartmontools, how will you get notified of a failed disk?
-
Give me the output of 'df'
/dev/idad0s1a 13133670 75896 12007082 1% /
devfs 1 1 0 100% /dev
/dev/md0 1710 26 1548 2% /var/run
devfs 1 1 0 100% /var/dhcpd/devYour RAID controller doesn't use the amr driver, so you can't use amrstat
Btw, I was thinking of using smartmontools. After installing this I see that libcam* is missing.
Or we have to get a full install tree, what not should be it.
If you get smartmontools, how will you get notified of a failed disk?
Ow damn, just me… Brain Fart ? ;)
-
I think I found how to do it, using an Expect script. I haven't tried it yet 'cause I don't have the pfsense machine close, but I will as soon as I can boot it up.
Here is the script:
http://bash.cyberciti.biz/security/sshlogin.exp.php
This script is executed from a remote host, on which expect is installed. I'm just beginning with expect, so I hard-coded all my values in the script. I know this exposes the firewall root password in a file, but I think I can live with that until I find a better way to be alerted when a drive fails.
#! /bin/bash RETVAL=0 /home/user/expect_amrstat > /home/user/expect_degraded grep Degraded /home/user/expect_degraded >dev/null RETVAL=$? if [ "$RETVAL" = 0 ]; then echo "Array degraded on firewall" |mail -s "Array Degraded" me@mydomain.com fi
The script /home/user/expect_amrstat simply runs amrstat on the firewall and outputs the result.