Installing Nagios on openSUSE 11.0

Scope:

Nagios is an excellent tool that can be used to monitor your systems and devices. For more detailed information check out the main Nagios site : Nagios.org

The scope of this howto is to give specific installation tips for Nagios running on openSUSE 11.x (should also work on openSUSE 10.3 and 11.1). Another aim is to give you an easy way to get graph history setup and more.

Read more

Share

Adding a virtual network interface using webmin

 

There are two situations in which you might want to add a new network interface – if your system has just had a network card installed, or if you are adding an additional virtual IP address to an existing interface. In the latter case, the new virtual interface is not associated with its own separate network card, but instead adds an additional IP address to an existing Ethernet card. Virtual addresses are often used on systems hosting multiple websites, so that each site can have its own IP address.

Read more

Share

Copy files from computer to USB using linux command prompt

Somebody lately, asked a silly simple thing- how can he copy files from his computer to usb and he’s using linux? Actually any novice can ask this simple thing- as GUI interface is already became quite mature than earlier and ppl naturally forgetting command consoles. Anyways, here goes it like this-

mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
cp yourfile /mnt/sda1
sync
umount /mnt/sda1

Share

How To Disable Linux GUI from boot?

edit the following line in /etc/inittab

id:5:initdefault: and

change it to

id:3:initdefault:

so if  you reboot the default running level is 3 which is not GUI

For Debian 8-9/Jessie-Stretch use the following command:

In order to make text boot the default under systemd (regardless of which distro, really):

systemctl set-default multi-user.target

To change back to booting to the GUI,

systemctl set-default graphical.target

 

Share

Configure Additional IP Addresses

Let’s assume our network interface is eth0. Then there is a file /etc/sysconfig/network-scripts/ifcfg-eth0 which contains the settings for eth0. We can use this as a sample for our new virtual network interface eth0:0:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0

Now we want to use the IP address 192.168.0.101 on the virtual interface eth0:0. Therefore we open the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 and modify it as follows (we can leave out the HWADDR line as it is the same physical network card):

Read more

Share