The munin.conf configuration file.
Open the file /etc/munin/munin.conf so that you can change a couple important settings.
# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s “Munin notification” somejuser@fnord.comm
#contact.anotheruser.command mail -s “Munin notification” anotheruser@blibb.comm
You can use the example above in the munin.conf as a template to add your own email notifications.
The “host tree” section of munin.conf describes the organization of any monitored nodes on munin’s overview page. Setting up one node on the same server leave the default address of 127.0.0.1 alone. You might want to change the host tree name to something more descriptive.
# a simple host tree
[localhost]
address 127.0.0.1
use_node_name yes
Open the /etc/munin/munin-node.conf file and look for an entry with “host”.
Now to restrict the node to listen to localhost only, you should change the host entry to:
# Which address to bind to;
host 127.0.0.1
start the munin-node service
sudo /etc/init.d/munin-node start
To make sure the munin-node service starts on reboot.
sudo /sbin/chkconfig munin-node on
Error: Cannot open/read repomd.xml file for repository … No more mirrors to try
This error typically indicates that the mirrors listed in your /etc/yum.repos.d/ are out of date or temporarily unavailable.
If the mirrors are in the process of syncing, this issue may correct itself after a short time. If not, you may need to update the list of mirrors Yum is using.
Instructions for deleting the swap file after import in Ensim
Eg. partition - /dev/hda3 mounted on /, swap file - /var/swapfile.
Turn off swapping for file “/var/swapfile” with the following command:
swapon, swapoff - enable/disable devices and files for paging and swapping
Swapoff disables swapping on the specified devices and files. When the -a flag is given, swapping is disabled on all known swap devices and files (as found in /proc/swaps or /etc/fstab)
Delete the file “/var/swapfile” with the following command:
Instructions to setup swap file
Select the partition where you want to create the swap file. This partition must have free disk space to create the swap file.
Create a file for swap with the following command (# is shell prompt):
#dd if=/dev/zero of=/var/swapfile bs=1024 count=[count]
where [count]= number of 1024 blocks required. If count=1024000 size of /var/swapfile will be 1024* 1024000 = 1 GB .
You can decide the size of “/var/swapfile” depending on the size of the backup tar file.
Setup an extra swap with the following command:
Enable “/var/swapfile” for swapping with the following command:
Verification: The file “/proc/swaps” must contain the entry for the swap file “/var/swapfile”. If this entry is not present, then swapping has not been enabled for the swap area.
The /etc/profile file
The /etc/profile file is the main default startup file for the bash shell. Whenever you log in to the Linux system, bash executes the commands in the /etc/profile startup file. Different Linux distributions place different commands in this file.
The /etc/profile file is the main default startup file for the bash shell on the system. Every user on the system executes this startup file when they log in.