存档

‘OpenSource’ 分类的存档

monit 一个小巧的linux下监控/故障恢复工具

2013年11月18日 评论已被关闭

http://mmonit.com/
官方文档 http://mmonit.com/monit/documentation/monit.html

本文以监控squid为例子,主要是想实现故障检测及自动恢复的功能。

安装
yum install pam-devel
wget http://mmonit.com/monit/dist/monit-5.6.tar.gz
tar zxvf monit-5.6.tar.gz
cd monit-5.6
./configure && make && make install

阅读全文…

分类: OpenSource 标签:

nrpe Error: Could not complete SSL handshake. 5

2013年11月14日 评论已被关闭

/var/log/messages里面有非常多的日志在刷屏
Nov 14 21:18:57 2hei.net nrpe[14855]: Error: Could not complete SSL handshake. 5

把网上的说法尝试变了,什么nrpe.conf中的allowed_hosts,什么nrpe版本等全是误导,没有一个好用!

于是发现了这个nrpe端口的自检check_tcp,果断去掉就好了。

终极solution:
修改nagios配置文件:
define service{
use oupeng
host_name 2hei.net
service_description check_tcp_5666
check_command check_tcp!5666
}

分类: OpenSource 标签:

Canonical “abused trademark law” to target a site critical of Ubuntu privacy

2013年11月8日 评论已被关闭
This logo, if not used properly, could get you in trouble.

Canonical, the maker of Ubuntu, has been fending off criticism from privacy advocates because the desktop search tool in recent versions of the operating system also searches the Internet. That means if you’re searching your desktop for a file or application, you might also see results from Amazon or other websites.

One person who dislikes Canonical’s search tool is Micah Lee, a technologist at the Electronic Frontier Foundation who maintains the HTTPS Everywhere project and is CTO of the Freedom of the Press Foundation. Lee set up a website called “Fix Ubuntu,” which provides instructions for disabling the Internet search tool.

“If you’re an Ubuntu user and you’re using the default settings, each time you start typing in Dash (to open an application or search for a file on your computer), your search terms get sent to a variety of third parties, some of which advertise to you,” the website says.

Read 12 remaining paragraphs | Comments

       



分类: OpenSource 标签:

nagios check_udp 就是一残废

2013年11月3日 评论已被关闭

nagios中check_udp是链接到的check_tcp
lrwxrwxrwx 1 root root 9 Sep 23 22:01 check_udp -> check_tcp

两个例子:
./check_udp -H 2hei.net -p 161 -s “” -e “” -w 2 -c 5
No data received from host

./check_udp -H 2hei.net -p 123 -s “” -e “” -w 2 -c 5
CRITICAL – Socket timeout after 10 seconds

/usr/lib64/nagios/plugins/check_udp -h
check_udp: No arguments found
Usage:
check_udp -H host -p port [-w ] [-c ] [-s ]
[-e ] [-q ][-m ] [-d ]
[-t ] [-r ] [-M ] [-v] [-4|-6] [-j]
[-D [,]] [-S ] [-E]

需要输入[-s ] [-e ]实际上很多ndp的端口就没有返回内容,太扯淡了。
看来还得自己动手丰衣足食。
阅读全文…

分类: OpenSource 标签:

Nginx不支持https的正向代理

2013年11月2日 评论已被关闭

Nginx虽然很好,但也不是万能的,“只做自己最擅长的或许才是聪明的选择”.

最近用Nginx尝试搭建了proxy代理内部机器上网,Nginx基于http的代理确实非常不错,性能真没得说。不过访问https时问题来了,登陆不了,日志中会有很多这样的记录:

192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”
192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”
192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”
192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”

问了google大神半天,偶然看到了作者Igor Sysoev的解答:http://forum.nginx.org/read.php?2,15124,15256#msg-15256

Q:I suspect Nginx has not been designed to be used as a forward proxy. If nginx won’t foot the bill, can anyone recommend a free solution please?
A:Yes, nginx has not been disigned as a forward proxy. You should try squid
which was a forward proxy from the very start.
Q:Is there any schedule to support the feathure, forward proxy ?
A:Not in near future: there is alreay good forward proxy Squid.

看来还得继续使用Squid,proxy中的战斗机。

分类: nginx, OpenSource 标签: ,

Cisco releases free and libre H.264 code for browsers

2013年10月31日 评论已被关闭

Video codecs continue to be a problem for the Web standards community. The H.264 standard continues to be the dominant option for streaming video, both via Flash and using HTML5's <video> tag, but it has outstanding patent issues that make free and open source implementations problematic. H.264 codec implementers must license the patents that cover the specification, and that requires payment of royalties.

Though most browser developers—including Mozilla—have acknowledged that H.264 is non-negotiable for <video>, due to its abundant use and widespread hardware support, the codec question continues to be a live one. The WebRTC specification for plugin-free real-time audio and video chat from within the browser also needs video codecs. Once again, H.264 has widespread industry usage, but its patent problems remain.

Cisco, actively involved in the development of WebRTC, has stepped forward with a possible solution. The company is releasing an open source, BSD-licensed implementation of the H.264 specification. It’s also releasing a compiled, freely downloadable binary version of that same source code. Cisco will pay the license fees for that binary module, and won’t pass that fee on to end users.

Read 4 remaining paragraphs | Comments

       



分类: OpenSource 标签:

CentOS6.4下GraphicsMagick安装

2013年10月29日 评论已被关闭

wget http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.18/GraphicsMagick-1.3.18.tar.bz2/download

tar jxvf GraphicsMagick-1.3.18.tar.bz2
cd GraphicsMagick-1.3.18

#install required
yum install -y libpng-devel libpng libjpeg libjpeg-devel libpng libpng-devel libtiff-devel libtiff \
libwmf-devel libwmf libxml2-devel libxml2 zlib-devel zlib gd-devel gd bzip2 bzip2-devel libzip-devel libzip

./configure –prefix=/usr/local/GraphicsMagick-1.3.18 –disable-static –enable-openmp \
–enable-shared –enable-symbol-prefix

make
make install

Edit: /etc/profile
GM_HOME=/usr/local/GraphicsMagick
PATH=$GM_HOME/bin:$PATH
export PATH CLASSPATH GM_HOME

阅读全文…

分类: OpenSource 标签:

Seagate introduces a new drive interface: Ethernet

2013年10月28日 评论已被关闭

It’s not time to say goodbye to the old storage network quite yet, but a new combination of cloud, networking, and storage technology might mark the beginning of the end for SANs—Seagate has introduced a new storage architecture that puts Ethernet directly on the disk drive.

Called the Kinetic Open Storage Platform, the new approach turns disks themselves into servers, delivering data over the network to applications using an open application interface. The Kinetic platform is a combination of an open programming interface and intelligence and a network interface installed in the storage device itself. It’s targeted mostly at companies looking to adopt the same sort of architecture in their data centers that they use to connect to cloud storage providers such as Amazon.

While the architectural approach Seagate is taking is an evolution of work already done by cloud giants such as Google and Facebook, it turns cloud-style storage into a commodity. And that could change how companies small and large think of networked storage—especially as they move toward using newer software development approaches to build their applications or move applications built on Amazon or other cloud services back within their firewalls.

Read 6 remaining paragraphs | Comments

       



分类: OpenSource 标签:

Google’s iron grip on Android: Controlling open source by any means necessary

2013年10月21日 评论已被关闭

Six years ago, in November 2007, the Android Open Source Project (AOSP) was announced. The original iPhone came out just a few months earlier, capturing people’s imaginations and ushering in the modern smartphone era. While Google was an app partner for the original iPhone, it could see what a future of unchecked iPhone competition would be like. Vic Gundotra, recalling Andy Rubin’s initial pitch for Android, stated:

He argued that if Google did not act, we faced a Draconian future, a future where one man, one company, one device, one carrier would be our only choice.

Google was terrified that Apple would end up ruling the mobile space. So, to help in the fight against the iPhone at a time when Google had no mobile foothold whatsoever, Android was launched as an open source project.

In that era, Google had nothing, so any adoption—any shred of market share—was welcome. Google decided to give Android away for free and use it as a trojan horse for Google services. The thinking went that if Google Search was one day locked out of the iPhone, people would stop using Google Search on the desktop. Android was the “moat” around the Google Search “castle”—it would exist to protect Google’s online properties in the mobile world.

Read 53 remaining paragraphs | Comments

       



分类: OpenSource 标签:

The Navy’s newest warship is powered by Linux

2013年10月18日 评论已被关闭
The USS Zumwalt getting a coat of paint at Bath Iron Works. The ship is exotic in many ways, but it runs on off-the-shelf computing technology.
General Dynamics Bath Iron Works

When the USS Zumwalt (DDG 1000) puts to sea later this year, it will be different from any other ship in the Navy’s fleet in many ways. The $3.5 billon ship is designed for stealth, survivability, and firepower, and it’s packed with advanced technology. And at the heart of its operations is a virtual data center powered by off-the-shelf server hardware, various flavors of Linux, and over 6 million lines of software code.

On October 10, I flew up to Rhode Island to visit Raytheon’s Seapower Capability Center in Portsmouth, where engineers assembled and pre-tested the systems at the heart of the Zumwalt and are preparing to do the same for the next ship in line, the USS Michael Monsoor—already well into construction. There, Raytheon’s DDG-1000 team gave me a tour of the centerpiece of the ship’s systems—a mockup of the Zumwalt’s operations center, where the ship’s commanding officer and crew will control the ship’s sensors, missile launchers, guns, and other systems.

Over 20 years ago, I learned how to be a ship watch stander a few miles from the Raytheon facility at the Navy’s Surface Warfare Officer School. But the operations center of the Zumwalt will have more in common with the fictional starship USS Enterprise’s bridge than it does with the combat information centers of the ships I went to sea on. Every console on the Zumwalt will be equipped with touch screens and software capable of taking on the needs of any operator on duty, and big screens on the forward bulkhead will display tactical plots of sea, air, and land.

Read 17 remaining paragraphs | Comments

       



分类: OpenSource 标签: