check_smartmon_ad12 NRPE: Unable to read output

March 29, 2012

Get following error when run

/usr/local/libexec/nagios/check_nrpe2 -H  -c check_smartmon_ad12

NRPE: Unable to read output

16 Rules To Operate a Business

August 25, 2011

1. Get and stay out of your comfort zone.

I believe that not much happens of any significance when we're in our comfort zone. I hear people say, "But I'm concerned about security." My response to that is simple: "Security is for cadavers." Never stop investing. Never stop improving. Never stop doing something new. The moment you stop improving your organization, it starts to die. Make it your goal to be better each and every day, in some small way. Remember the Japanese concept of Kaizen. Small daily improvements eventually result in huge advantages.

2. Never give up.

Almost nothing works the first time it's attempted.  Just because what you're doing does not seem to be working, doesn't mean it won't work. 

It just means that it might not work the way you're doing it.  If it was easy, everyone would be doing it, and you wouldn't have an opportunity.

3. When you're ready to quit, you're closer than you think.

There's an old Chinese saying that I just love, and I believe it is so true.  It goes like this: "The temptation to quit will be greatest just before you are about to succeed."

4. With regard to whatever worries you, not only accept the worst thing that could happen, but make it a point to quantify what the worst thing could be.

Very seldom will the worst consequence be anywhere near as bad as a cloud of "undefined consequences." 

My father would tell me early on, when I was struggling and losing my shirt trying to get Parsons Technology going, "Well, Robert, if it doesn't work, they can't eat you."

5. Focus on what you want to have happen.

Remember that old saying, "As you think, so shall you be."

6. Take things a day at a time.

No matter how difficult your situation is, you can get through it if you don't look too far into the future, and focus on the present moment. 

You can get through anything one day at a time.

7. Always be moving forward.

Never stop investing. Never stop improving. Never stop doing something new. The moment you stop improving your organization, it starts to die.

Make it your goal to be better each and every day, in some small way. Remember the Japanese concept of Kaizen. Small daily improvements eventually result in huge advantages.

8. Be quick to decide.

Remember what General George S. Patton said: "A good plan violently executed today is far and away better than a perfect plan tomorrow."

9. Measure everything of significance.

I swear this is true. Anything that is measured and watched, improves.

10. Anything that is not managed will deteriorate.

If you want to uncover problems you don't know about, take a few moments and look closely at the areas you haven't examined for a while.

I guarantee you problems will be there.

11. Pay attention to your competitors, but pay more attention to what you're doing.

When you look at your competitors, remember that everything looks perfect at a distance.

Even the planet Earth, if you get far enough into space, looks like a peaceful place.

12. Never let anybody push you around.

In our society, with our laws and even playing field, you have just as much right to what you're doing as anyone else, provided that what you're doing is legal.

13. Never expect life to be fair.

Life isn't fair. You make your own breaks. You'll be doing good if the only meaning fair has to you, is something that you pay when you get on a bus (i.e., fare).

14. Solve your own problems.

You'll find that by coming up with your own solutions, you'll develop a competitive edge. Masura Ibuka, the co-founder of SONY, said it best: "You never succeed in technology, business, or anything by following the others."

There's also an old Asian saying that I remind myself of frequently. It goes like this: "A wise man keeps his own counsel."

15. Don't take yourself too seriously.

Lighten up. Often, at least half of what we accomplish is due to luck. None of us are in control as much as we like to think we are.

16. There's always a reason to smile.

Find it. After all, you're really lucky just to be alive. Life is short.

More and more, I agree with my little brother. He always reminds me: "We're not here for a long time, we're here for a good time!"

How to Install Adobe Reader 8.1.1 on Debian Linux

January 30, 2008

First you need to download Adobe Reader 8.1.1 from here or here

Now you have AdobeReader_enu-8.1.1-1.i386.deb package you need to install this .deb package using the following command

#dpkg -i AdobeReader_enu-8.1.1-1.i386.deb

set up debian autofs

January 22, 2008

1. #apt-get install autofs

cat /proc/mounts  // to check the current mounting situation, mount a mount point/device twice will fail

edit /etc/auto.master

/home/myfolder     /etc/auto.myfolder         --timeout=60

vim /etc/auto.myfolder

*    -rw,intr,rsize=32768,wsize=32768,tcp server:/home/myfolder/&

/etc/init.d/autofs restart

Zune install error XML Lite couldn’t be found

January 2, 2008

When I tried to install Zune on my XP, I keep getting the error:

Installation Media Not found, The meida for installation package 'XML Lite' couldn't be found, it might be incomplete ot corrupt Error code: 0x80070002

To solve the problem, download 'XML Lite' from Microsoft site  After I installed the XMLLite, the error goes away.

problem to eject Apple CD or DVD

November 28, 2007

If you have problem to eject Apple CD or DVD, try following:

Most Apple keyboards have an Eject key at the top-right corner of the keyboard.

Press and hold the Eject key until the eject symbol appears onscreen.

You can also eject a disc by restarting your computer and holding down the primary mouse button while the computer is starting up until the disc is ejected.

set linux boot processes with chkconfig

November 28, 2007

The  chkconfig command generates and breaks links between the directory /etc/rc.d/init.d/ and the appropriate run level directory: /etc/rc.d/rc[0-6].d/ to control boot process initiation and process shutdown.

chkconfig [--level ]  on | off | reset >
chkconfig --list
chkconfig --list
chkconfig --add

chkconfig --del chkconfig --level 0123456 off


  • chkconfig --level 345 httpd on - forces apache to be invoked for run levels 3, 4 and 5.
  • chkconfig --add httpd - Start the web server daemon upon system boot.
  • chkconfig --del sendmail - Do not start the sendmail daemon upon system boot.
  • chkconfig --list - List all services and init levels.
  • chkconfig --list | grep on - List all services to be started upon system boot.

Using chkconfig to administer xinetd processes.

  • chkconfig wu-ftpd on - Turn on FTP service managed by xinetd.
  • chkconfig ipop3 off - Turn off POP3 service managed by xinetd.

This will reconfigure the appropriate xinetd file (in directory /etc/xinetd.d/) and restart the xinetdprocess.Also see: chkconfig - Linux man page

Install python-mysql ZMySQLDA for zope plone

November 27, 2007

After I installed plone for my Suse 10.2, I found the python-mysql, ZMySQLDA are not there.

It turns out the plone 3 and zope 2.10 only supports Python 2.4, thus I download python-mysql rpm for python2.4 at

$ sudo rpm -ivh python-mysql-1.2.0-3.i586.rpm

The above will install the package to default location /usr/lib .

$rpm -ql python-mysql-1.2.0-3

This will tell you what installed by this rpm. Just copy things to the zope instance folder /opt/python24/lib/python2.4/site-packages/

$sudo cp -r /usr/local/lib/python2.4/site-packages/MySQLdb /opt/python24/lib/python2.4/site-packages/

$sudo cp /usr/local/lib/python2.4/site-packages/ /opt/python24/lib/python2.4/site-packages/

$sudo cp /usr/local/lib/python2.4/site-packages/ /opt/python24/lib/python2.4/site-packages/

$sudo cp /usr/local/lib/python2.4/site-packages/_mysql_exceptions.pyc /opt/python24/lib/python2.4/site-packages/

Try to import _mysql in python


>>>import _mysql

It should give you no error.

$tar -xzvf ZMySQLDA-2.0.8.tar.gz

Files will be untared to ./lib/python/Products/ZMySQLDA/

$sudo cp -r ./lib/python/Products/ZMySQLDA /var/opt/zope/default/Products Restart zope: sudo rczope restart

You should be able to see ZMySQLDA in Zope now.

set up a project in subversion

October 11, 2007

Assume the subversion has already been installed on your system.

1. Create Subversion Home folder

#mkdir -p /home/svn

2. Create a generic repository format

#mkdir -p /home/svn/default/trunk # mkdir /home/svn/default/branches # mkdir /home/svn/default/tags

3. Setup Blanket Access: If you wish to enable htaccess style password login to the subversion repository then use this system. This is the basic access control system, which can be extended to enable per directory access control as well.

#mkdir /home/svn/access

#touch /home/svn/access/users

#htpasswd -mb /home/svn/access/users myname mypw

4 . Extending the Blanket Access control to enable Per-Directory Access control

# touch /home/svn/access/control

example content of control file:

[/] admin = rw manager = r

[/bigproject] manager = rw commiter = r

[/bigproject/trunk] commiter = rw client = r

[/bigproject/branches] client = r

[/bigproject/trunk/manager_notes] client = commiter =

5. Build a project repository #mkdir /home/svn/repos

# svnadmin create /home/svn/repos/myproject

#svn import /home/svn/default file:///home/svn/repos/myproject -m "Initial Import"

6. check out the project to workspace

cd ~/myworkspace

svn checkout file:// home/svn/repos/myproject/trunk myproject

7. add files to myproject and do commit

svn commit -m "import initial code "

svn update