msmtp + Zabbix + Gmail!

My company uses Gmail for all our email accounts. We’ve found that with the limited IT budget and staffing it’s easiest for us to use google to manage all our corporate email.

I’ve been trying to get Zabbix to send emails using Gmail, of course since gmail only uses TLS it’s been a bit of a problem since Zabbix does not support this out of the box. I decided to use msmtp and a Zabbix script to handle it all.

Note: We’re using VZ servers so some commands may be different.

First thing to do was to install all the correct packages:
vzyum 103 install gnutls gnutls-devel cyrus-sasl Libidn fetchmail

After those were installed I had to download MSMTP from the sourceforge page here.

Configure, make, make install with your options. I used:
./configure --with-ssl=gnutls

Next I created an msmtp_wrapper.conf file in the Zabbix bin directory like the following:
defaults
syslog LOG_MAIL
account default
host smtp.gmail.com
port 587
tls on
auth on
user helpdesk@mydomain.net
password MYPASSWORD
auto_from on

Next I created the msmtp_wrapper file in the Zabbix bin directory :
#!/bin/bash
echo "Subject:$2+$3" | tr "+" "\n"> /tmp/message.zabbix
/usr/local/bin/msmtp -t -C /home/zabbix/bin/msmtp_wrapper.conf --tls-certcheck=off -- $1 < /tmp/message.zabbix
rm /tmp/message.zabbix

Change the owner and permissions on these files as such:
chown zabbix:zabbix msmtp_wrapper*
chmod a+x 700 msmtp_wrapper*

Next create a media type in Zabbix with the script name you used.

Lastly, setup some triggers to use it!

That should be all that you need to get started.

SiriusXM Merger – Fewer Channels!

Saw this today on Consumerist and it echos my concerns.

I was VERY unhappy when I got into my car on Wed and found that 3 of my favorite stations were GONE. They just vanished without an explanation or anything. It’s all very annoying!

I really don’t think that they handled this in the most proper way. They merged channels, they are now censoring channels which weren’t before and I have already noticed less variety on the major stations.

I hope that this is all just a temporary thing until they can get it all figured out!

Sadly, I can’t just say “I’ll switch” because they are now the only Satellite providers! :(

Yay Obama!

Yay! We have a new President! Go Obama!

I am so excited to see what the next 4 years brings us. I hope that he doesn’t disappoint the American Public!

I’m also very sad that Prop 8 passed here in California. I can’t believe that even LA county voted YES for it! What is wrong with these people. They are giving MORE rights to Chickens and taking them away from their fellow citizens! WTF!

Comon Obama! Make it right in America!

All the Props!

Soo, with all these props around and everyone saying Vote yes or Vote no! Who really knows what’s going on with them!

Last night I was at Kris’ house and read through the summaries of them all. Frist, most of the “Con” arguments sound like they were written by 12 year olds! It was horrible! But the thing that REALLY got to me was the costs!

Prop 1A: $19,400,000,000
Prop 2: No cost given other then “Reduced state and local tax revenue”
Prop 3: $2,000,000,000
Prop 4: No cost given.
Prop 5: $1,000,000,000 ANNUALLY!
Prop 6: $965,000,000 ANNUALLY!
Prop 7: $2,400,000 ANNUALLY!
Prop 8: No cost given. Notes a decrease in sales tax revenue… (How?)
Prop 9: No cost given.
Prop 10: $10,000,000,000 one time + $10,000,000 ANNUALLY.
Prop 11: No cost given.
Prop 12: $1,800,000,000

REALLY!? Are we kidding ourselves? The state of California CAN NOT afford any of this shit! I really hope that EVERY Prop is defeated.

And to be honest. I don’t understand why ANY of these are really even on the ballot. The people should not really be voting for these sorts of things. This is what we VOTE a legislature into office for. As fast as the Constitutional amendments go though, those SHOULD be on the ballot.

So get out there and Vote tomorrow!

Vote Obama and vote NO on the Props!