Check Exchange Mailbox Size

November 28th, 2008

Check_mboxsize.wsf

Another Nagios plugin. One of my hardest to write.
Note that this will require the Nagios Plugin Service to run as a Administrator Account (local system account) will
not work!
Script example:
…nagios/libexec# ./check_nrpe -H SERVER114 -t 90 -u -c get_top_mbox -a SERVER114 3 2000 4000
WARNING - Full Name, Mona , 2.517,00 MB - San Pil, Eric , 1.175,00 MB - Cabo Boiola, Manul , 991,00 MB

Download code

Exchane, Nagios, VbScripts

Setup Samba Howto

November 26th, 2008

Howto Setup Samba

Install the packet:

# apt-get install samba

Check your open port:

# netstat -an |grep listen

No port 139 ?

Create the user accounts and sync the password with Samba

# adduser share

# smbpasswd -a share

# smbpasswd -a nobody

Configure the smb.conf

[global] netbios name = dbox                                                                                                                                                                                                                                                                       workgroup = pratica
server string = %h server
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
#### Networking ####
# The specific set of interfaces / networks to bind to
interfaces = <YOURIP>/eth0
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine that connects
log file = /var/log/samba/log.%L
max log size = 1000
syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
#### Authentication ####
security = user
encrypt passwords = true
# password database type you are using, for encrypted passwds
passdb backend = tdbsam
obey pam restrictions = yes
guest account = nobody
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
############ Misc ############
socket options = TCP_NODELAY
#======================= Share Definitions =======================
[carp1]
comment = R/W Shared Folder
browsable = yes
writeable = yes
path = /home/carp1
locking = no
public = yes
guest ok = yes
valid users = nobody, guest
[carp2]
comment = Read Only Shared Folder
path = /home/carp2
writeable = no
browsable = yes
locking = no
guest ok = yes
public = yes
valid users = nobody, guest
[carp3]
comment = Authenticaion Required Shared Folder
path = /home/carp3
writeable = yes
browsable = yes
locking = no
guest ok = no
public = yes
valid users = share

Cool tools:

smbclient
The smbclient program implements a simple ftp-like client.  This  is
useful for accessing SMB shares on other compatible servers (such as
Windows NT). -L (just list) -U user[%passwd] -N (no passwd)

# smbclient -L  //LOCALHOST

Note: with Samba 3, it dosent come installed by default, to install do:

# apt-get install smblcient

smbstatus
The smbstatus tool provides access to information about the  current
connections to smbd.

smbpasswd
The smbpasswd command is a tool for changing LanMan and  Windows  NT
password hashes on Samba and Windows NT servers.

smbtree
The smbtree command is a text-based network neighborhood tool. Scan subnets for available share and prints a nice tree.

net
The net command is supposed  to  work  similar  to  the  DOS/Windows
NET.EXE command.

nmblookup
Does a lot of nice tricks, can be used to output same as nbtstat -an, like:

# nmblookup -M -R -S -A  127.27.101.164

swat
swat is a web-based interface to configuring smb.conf. Make life much easier! To install do:

# apt-get install swat

Then just open the browser to port 901 http://<IP>:901

HowTo, Linux

VH-X5 Remote

November 26th, 2008


VH-X5 Buggy

Just got my newest toy, a real remote control car. Its fuel is 16 % methanol. This baby can go up to 50km/h Since its my first one, it came all setup and assembled. Minimal work to be done, this way I can just enjoy it. Instead of losing hours to build it.

This Off Road Super dune Buggy RC Nitro 4WD car scales through rough terrain with ease and style. It is perfect for any backyard, dorm, race track, alley or street use.

The remote is cool:

FEATURES: * Full Function Radio Controlled * Forward, Stop, Left & Right Steering * Semi-assembled Chassis * Powerful 15CXP Engine equipped with slide carburetor and pull-starter * Original Muffler and Air filter * 4 Wheel Shaft-Drive System * Coil Spring Damped Suspension System * Racing Radial Tires and Wheels * Differential with built-in front and rear bevel gears * Double wishbone suspension arms with adjustable width * Oil filled dampers * Stiff and sturdy aluminum chassis * Full Disc brake system * Highly Detailed Polycarbonate Body Shell * Trigger Gun Type Controller * 2 Speed Auto Gearbox, Can Reach as Fast 55mph plus! * Scale: 1:10 * Dimensions: L43cm W20cm H10cm

Video: VH-X5 Buggy in action

News

The Slupr

November 26th, 2008

Amazing product called The Slupr

“At this moment I can see 8 different signals. Some are closed networks but most are open and available. I can only connect to one at a time so I tend to just pick the one with the best signal. But what if I could connect to all the networks at the same time and combine their bandwith?

Yeah, that is what I need!

A big, fat access point with a large antenna and a bunch of Wi-Fi cards that automatically connect to the strongest signals it can pick up. Then it would combine all these signals into one FreeLoading Broadband Canal for me to use.”

I wish I had the time to build my own, or at least a Linux box with 3 WLAN adapters and have a dope Internet connection!

Here it is:

There’s just one problem - the price. When it eventually ships, this baby will cost you a cool 999 Euros; $1342 in the States.

What I love about it, its quite home made. No huge companies behind it, yet. But if the Ciscos, Netgear, etc…  are smart they will place something

like this in the market.  If it gets cheap, maybe I will buy one…

News