MRTG: ERROR: CFG Error in “Interval”: should be at least 5 Minutes (unless you use rrdtool)

Just setup MRTG the other day. And due to having some old switches to monitor, i chose to run the MRTG cron every minute, in order to be able to read traffic above 100Mbit. But even when i had specified rrdtool in the server config, i got these error messages:

ERROR: CFG Error in "Interval": should be at least 5 Minutes 
(unless you use rrdtool) at /usr/bin/../lib64/mrtg2/MRTG_<wbr>lib.pm line 739 </wbr>

The solution was pretty simple. Simply add the following line in mrtg.cfg:

Logformat: rrdtool
Interval: 1

Xerox-printer giving error code 016-799

Just figured out that some Xerox-printers when getting a job with a unknown paper format or other strange settings. The printer will simply return the error code 016-799.

The only solution i has found for this so far is to make sure that the print jobs actually have a paper format that the printer supports. (And of course, no other strange settings…)

Pdf-files for example can in some cases have print settings embedded, so it is extra smart to check those before printing them.

Samsung Galaxy S III: How to add shortcuts to the home screen

So i just got my new phone, a juicy Galaxy S III. But i quickly noticed that i did not quickly notice how i could add shortcuts to the home screen. (On HTC, it was simply to select add -> shortcut -> select shortcut).

This is how to add shortcuts on the S3:

  1. Long click a empty space on the home screen
  2. Choose “Add to home screen”
  3. Choose Apps
  4. Choose Widgets at the top right
  5. Find the app with the related shortcuts
  6. Place it on the home screen
  7. Voila, you should now be able to choose a relevant shortcut.

Installing NRPE on Red hat 6

Red Hat 6 does not natively support NRPE/Nagios with the default package manager. Luckily, DAG can save the day again, just as with Red Hat 5 🙂

Simply add the mirror spesified in the link above to your server and you get the ability to add the NRPE or other Nagios packages without too much hazzle.

In my case with a 64bit system, the way to get NRPE installed was as simple as this:

rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

yum install nagios-nrpe