Monthly Archives: February 2014

How to change IP address and hostanem of a proxy server

So what all (and where) needs to change, so that our proxy (Squid) server gets a new IP address, and a new name? Changing hostname Files that need changing : /etc/hosts # hostname new.server.name /etc/sysconfig/network # hostname new.server.name # service … Continue reading

Posted in Linux | Tagged , , , | Comments Off on How to change IP address and hostanem of a proxy server

How to surf from command line

For this endeavour you will need the package named Lynx (you can also use Curl, but since I have never worked with it…..). It will work only for machines which are directly on Internet, but you can trick it by … Continue reading

Posted in Linux | Tagged , | Comments Off on How to surf from command line

Linux and AD authentication

AD – Active Directory So, how to, with least efford possible, get data from MS AD using CentOS 6U4. A good link, with a general explanation. All things considered, I chose Winbind option….. 1. Enter AD server and DNS server … Continue reading

Posted in Linux | Tagged , | Comments Off on Linux and AD authentication

Nagios and NRPE

What is NRPE : NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines. This allows you to monitor remote machine metrics (disk usage, CPU load, etc.). If, when starting NRPE, zou get something like this : # … Continue reading

Posted in Linux | Tagged , | Comments Off on Nagios and NRPE

Jaffa cakes

I had a surplus of oranges, so I searched a recipe for this. True, only one orange goes into this cake, but it was super! Batter : 3 whole eggs (4 if they are small) 2 soup spoons of seam … Continue reading

Posted in Kitchen | Tagged | Comments Off on Jaffa cakes

Nagios SNMP error

I am talking about a error like this one : # ./check_snmp_storage.pl -H 10.10.10.23 -C password -m / -w 80 -c 90 Can’t locate Net/SNMP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_snmp_storage.pl line 15. … Continue reading

Posted in Linux | Tagged , , | Comments Off on Nagios SNMP error

Procmail autoreply

If you want autoreply message with several lines in it, and have this text in a nice layout, it should be ina separate autoreply file. So to have all function properly, you need three files in user’s home directory /home/user1 … Continue reading

Posted in Linux | Tagged , | Comments Off on Procmail autoreply

Transfering old Nagios 3 configuration to new Nagios 4

Well, since service as such is working, I need to transfer configuration from old to new server. Where are the files In my old configuration (Nagios 3.2) conf files are in /etc/nagios folder. If Nagios 4.0.2 is installed as in … Continue reading

Posted in Linux | Tagged , | Comments Off on Transfering old Nagios 3 configuration to new Nagios 4

CentOS 6U4 and Nagios+Nagios-plugins

How to set up Nagios 4.0.2 on CentOS 6U4 server. A necessary starup : Apache PHP GCC compiler GD development libraries And all of this is installed like this : # yum install httpd php # yum install gcc glibc … Continue reading

Posted in Linux | Tagged , | Comments Off on CentOS 6U4 and Nagios+Nagios-plugins

Nagios 3 —> Nagios 4

I have a very rich Nagios 3 configuration, with a lot of hosts and their services, but this Nagios version is quite old, and OS version on which it functions is also quite old (RHEL 4U5, and 32 bit also). … Continue reading

Posted in Linux | Tagged | Comments Off on Nagios 3 —> Nagios 4