ERROR OCURRED

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, December 16, 2010

Dell vostro 1520 wifi + fedora 13 + bcm4312

Posted on 4:07 AM by Unknown
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

#yum -y update
#yum -y install broadcom-wl
#yum install kmod-wl-PAE

Reboot machine ....works.
Read More
Posted in | No comments

Tuesday, November 9, 2010

Linux System/Server memory check method

Posted on 3:44 AM by Unknown
3 different ways which i tested.

1) Through memory test tool called memtest86+

you need to download ISO & boot from cd & run test

IMP:- if you dont want to run iso use this alternate

Install memtest86+ through yum

#yum install memtest86+

after that run following command

#memtest-setup

and reboot machine... now while reboot under Grub menu choose memtest & RUN.



2) Through Memtester


Here in My example.

First make sure RPM installed if not then installed use following command

[root@localhost Downloads]# yum install memtester.i686 -y

After that run test

[root@localhost Downloads]# memtester 50 1
memtester version 4.1.3 (32-bit)
Copyright (C) 2010 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 50MB (52428800 bytes)
got 50MB (52428800 bytes), trying mlock ...locked.
Loop 1/1:
Stuck Address : ok
Random Value : ok
Compare XOR : ok
Compare SUB : ok
Compare MUL : ok
Compare DIV : ok
Compare OR : ok
Compare AND : ok
Sequential Increment: ok
Solid Bits : ok
Block Sequential : ok
Checkerboard : ok
Bit Spread : ok
Bit Flip : ok
Walking Ones : ok
Walking Zeroes : ok

Done.


3) Through md5 checksum and dd command.
checksums must match, if not then their is fault in memory. Read dd command man page to understand all options. dd will create /tmp/memtest file. It will cache data in memory by filling up all memory during read operation. Using md5sum command you are reading same data from memory (as it was cached).

[root@localhost Downloads]# dd if=/dev/urandom bs=838000 of=/tmp/memtest count=1050
1050+0 records in
1050+0 records out
879900000 bytes (880 MB) copied, 140.232 s, 6.3 MB/s
[root@localhost Downloads]# md5sum /tmp/memtest; md5sum /tmp/memtest; md5sum /tmp/memtest
255e49af2668d60269efafa6487132ab /tmp/memtest
255e49af2668d60269efafa6487132ab /tmp/memtest
255e49af2668d60269efafa6487132ab /tmp/memtest


Note:-All result Passed on E6510
Read More
Posted in | No comments

Tuesday, October 12, 2010

Bacula:tape Volume purging & deletion steps.

Posted on 9:10 PM by Unknown
Select the Pool (1-2): 1
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 2 | test2 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |
| 3 | 000016L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 22 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 4 | 000018L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Enter MediaId or Volume name: test2
Volume "test2" has VolStatus Append. It must be Purged or Recycled before relabeling.


Now in this exapmle, steps how to delete volume test2

1st purged the volume name like this

*purge

This command is can be DANGEROUS!!!

It purges (deletes) all Files from a Job,
JobId, Client or Volume; or it purges (deletes)
all Jobs from a Client or Volume without regard
for retention periods. Normally you should use the
PRUNE command, which respects retention periods.
You have the following choices:
1: files
2: jobs
3: volume
Choose item to purge (1-3):3
Defined Pools:
1: Default
2: Scratch
Select the Pool (1-2):1

then type volume name or Media Id i.e test2 or 2

now in list volumes you can see test2 makred ad purged.

*list volumes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Default
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 2 | test2 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |

Pool: Scratch
No results to list.


Now time to delete test2 volume

*delete test2
In general it is not a good idea to delete either a
Pool or a Volume since they may contain data.

You have the following choices:
1: volume
2: pool
3: jobid
Choose catalog item to delete (1-3): 1
Defined Pools:
1: Default
2: Scratch
Select the Pool (1-2): 1
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 2 | test2 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |


Enter MediaId or Volume name: test2

This command will delete volume test2
and all Jobs saved on that volume from the Catalog
Are you sure you want to delete Volume "test2"? (yes/no): yes

Deleted ..now you can see in volumes test2 permantly deleted.

*list volumes
Pool: Default
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 3 | 000016L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 22 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 4 | 000018L4 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 17 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 5 | 000012L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 1 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 6 | 000011L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 8 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 7 | 000013L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 9 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 8 | 000015L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 10 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 9 | 000020L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 16 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 10 | 000019L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 20 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 11 | 000017L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 21 | 1 | LTO-3 | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Scratch
No results to list.
*
Read More
Posted in | No comments

Steps how to change VolStatus in Bacula through bonsole.

Posted on 9:07 PM by Unknown
In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged.


*list volumes
Pool: Default
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 3 | 000016L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 22 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 4 | 000018L4 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 17 | 1 | LTO-3 | 0000-00-00 00:00:00 |

SO their is the steps to change Purged to Append. Command is update.

*update
Update choice:
1: Volume parameters
2: Pool from resource
3: Slots from autochanger
Choose catalog item to update (1-3): 1
Parameters to modify:
1: Volume Status
2: Volume Retention Period
3: Volume Use Duration
4: Maximum Volume Jobs
5: Maximum Volume Files
6: Maximum Volume Bytes
7: Recycle Flag
8: Slot
9: InChanger Flag
10: Volume Files
11: Pool
12: Volume from Pool
13: All Volumes from Pool
14: Enabled
15: RecyclePool
16: Done
Select parameter to modify (1-16): 1
Defined Pools:
1: Default
2: Scratch
Select the Pool (1-2): 1
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 3 | 000016L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 22 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 4 | 000018L4 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 17 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 5 | 000012L4 | Append | 1 | 302,561,280 | 3 | 31,536,000 | 1 | 1 | 1 | LTO-3 | 2010-10-13 01:44:17 |
| 6 | 000011L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 8 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 7 | 000013L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 9 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 8 | 000015L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 10 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 9 | 000020L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 16 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 10 | 000019L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 20 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 11 | 000017L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 21 | 1 | LTO-3 | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Enter MediaId or Volume name: 000018L4
Updating Volume "000018L4"
Current Volume status is: Purged
Possible Values are:
1: Append
2: Archive
3: Disabled
4: Full
5: Used
6: Cleaning
7: Recycle
8: Read-Only
Choose new Volume Status (1-8): 1
New Volume status is: Append
Parameters to modify:
1: Volume Status
2: Volume Retention Period
3: Volume Use Duration
4: Maximum Volume Jobs
5: Maximum Volume Files
6: Maximum Volume Bytes
7: Recycle Flag
8: Slot
9: InChanger Flag
10: Volume Files
11: Pool
12: Volume from Pool
13: All Volumes from Pool
14: Enabled
15: RecyclePool
16: Done
Select parameter to modify (1-16): 16
Selection terminated.
*list volumes
Pool: Default
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 3 | 000016L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 22 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 4 | 000018L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 17 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 5 | 000012L4 | Append | 1 | 302,561,280 | 3 | 31,536,000 | 1 | 1 | 1 | LTO-3 | 2010-10-13 01:44:17 |
| 6 | 000011L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 8 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 7 | 000013L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 9 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 8 | 000015L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 10 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 9 | 000020L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 16 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 10 | 000019L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 20 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 11 | 000017L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 21 | 1 | LTO-3 | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Scratch




Enjoy....
Read More
Posted in | No comments

Monday, October 11, 2010

How to find which scsi device you have.

Posted on 8:49 PM by Unknown
Find out how to specify their control address (/dev/sg2 or /dev/sg4 ) on the Changer Device = Bacula ( my example)

1) check the command lssci if not found then install

#yum install lsscsi

#[root@inf1sysadm1 ~]# lsscsi -dg
[0:0:0:0] disk ATA WDC WD1600BEVT-7 11.0 /dev/sda [8:0] /dev/sg0[21:0]
[3:0:0:0] cd/dvd MATSHITA DVD+-RW UJ-875S D200 /dev/sr0 [11:0] /dev/sg1[21:1]


[root@inf1sysadm1 ~]# cat /proc/scsi/sg/
allow_dio def_reserved_size devices version
debug device_hdr device_strs
[root@inf1sysadm1 ~]# cat /proc/scsi/sg/device_hdr
host chan id lun type opens qdepth busy online
[root@inf1sysadm1 ~]# cat /proc/scsi/sg/devices
0 0 0 0 0 1 31 0 1
3 0 0 0 5 1 1 0 1
Read More
Posted in | No comments

Wednesday, October 6, 2010

response to SOA query was unsuccessful: solved

Posted on 11:42 PM by Unknown
check your zone file

[root@inf1sysadm1 data]# pwd
/var/named/data

# cat ind.raman.com.zone
$ORIGIN .
$TTL 3600 ; 1 hour
ind.raman.com IN SOA ns1.ind.raman.com. sysops.raman.com. (
2010106825 ; serial
3600 ; refresh (1 hour)
600 ; retry (10 minutes)
86400 ; expire (1 day)
3600 ; minimum (1 hour)
)
NS ns1.ind.raman.com.
$ORIGIN ind.raman.com.
ns1 A 127.0.0.1


match the SOA record to NS as well.. after re run
[root@inf1sysadm1 data]# nsupdate
> key dhcpupdate G***************==
> update add test.ind.raman.com 3600 IN A 10.131.11.10
> send

working fine.
Read More
Posted in | No comments

Wednesday, August 11, 2010

Have fun with chage - change user password expiry information

Posted on 4:08 AM by Unknown
1) Detail list of user

[raman@inf1sysadm1 ~]$ chage --list raman
Last password change : Jul 06, 2009
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7


2) How set password expiry date

#chage -M 15 raman

-M, --maxdays MAX_DAYS
Set the maximum number of days during which a password is valid.
When MAX_DAYS plus LAST_DAY is less than the current day, the user
will be required to change his/her password before being able to
use his/her account.


[root@inf1sysadm1 ~]# chage --list raman
Last password change : Jul 06, 2009
Password expires : Jul 21, 2009
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 15
Number of days of warning before password expires : 7



3) Force user to Change Password after Expiry Date

#ssh 10.131.11.137 -l raman
raman@10.131.11.137's password:
You are required to change your password immediately (password aged)
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user raman.
Changing password for raman.
(current) UNIX password:
New password:
Retype new password:

4) How set expiry date for user

#chage -E "2010-08-12" raman

[root@inf1sysadm1 ~]# chage --list raman
Last password change : Jul 06, 2009
Password expires : Jul 07, 2009
Password inactive : never
Account expires : Aug 12, 2010
Minimum number of days between password change : 0
Maximum number of days between password change : 1
Number of days of warning before password expires : 7


5) User account locked if inactive form last 5 days.

#chage -I 5 raman
-I, --inactive INACTIVE
Set the number of days of inactivity after a password has expired
before the account is locked. The INACTIVE option is the number of
days of inactivity

[root@inf1sysadm1 ~]# chage -l raman
Last password change : Jul 06, 2009
Password expires : Jul 07, 2009
Password inactive : Jul 12, 2009
Account expires : Aug 12, 2010
Minimum number of days between password change : 0
Maximum number of days between password change : 1
Number of days of warning before password expires : 7


6) How disable chage option from user account

#chage -m 0 -M 99999 -I -1 -E -1 raman

* -m 0 will set the minimum number of days between password change to 0
* -M 99999 will set the maximum number of days between password change to 99999
* -I -1 (number minus one) will set the “Password inactive” to never
* -E -1 (number minus one) will set “Account expires” to never.

[root@inf1sysadm1 ~]# chage -l raman
Last password change : Jul 06, 2009
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7




Enjoy.
Read More
Posted in | No comments

Monday, May 24, 2010

Linux Software Raid with mdadm

Posted on 7:52 PM by Unknown
After insatlling Dell (md3000) mutipath driver on your system, u see the devices. In my example i am able to see 6 dirve (800 + 400 + 400 ) GB each.

Now follows the below steps to create software raid.

1) Check mdamd command if not found then install through #yum install mdadm

2) command to create raid.
i) mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sde
ii) mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sdc /dev/sdf
iii) mdadm --create --verbose /dev/md2 --level=1 --raid-devices=2 /dev/sdd /dev/sdg

3) Check the status

# cat /proc/mdstat Personalities : [raid1]
md2 : active raid1 sdd[0] sdg[1]
439023552 blocks [2/2] [UU]
[=>...................] resync = 9.4% (41593920/439023552) finish=256.7min speed=25800K/sec

md1 : active raid1 sdc[0] sdf[1]
439023552 blocks [2/2] [UU]
[==>..................] resync = 11.1% (48802368/439023552) finish=222.3min speed=29248K/sec

md0 : active raid1 sdb[0] sde[1]
878047168 blocks [2/2] [UU]
[=>...................] resync = 8.1% (71613248/878047168) finish=299.9min speed=44808K/sec


or use this command.

#mdadm --detail /dev/md0

4)Now create mdadm.conf configuration file.

#mdadm --detail --scan --verbose
#mdadm --detail --scan --verbose > /etc/mdadm.conf

#cat /etc/mdadm.conf
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=0.90 UUID=2a3991ba:39a6377a:dd723100:e68056a3
devices=/dev/sdb,/dev/sde
ARRAY /dev/md1 level=raid1 num-devices=2 metadata=0.90 UUID=4f1ebc35:a3e06fe2:55e28aa2:1b96898f
devices=/dev/sdc,/dev/sdf
ARRAY /dev/md2 level=raid1 num-devices=2 metadata=0.90 UUID=78f8c8ba:a3ed13e1:a3b78f6d:79719608
devices=/dev/sdd,/dev/sdg

***added this line on top DEVICE /dev/sdb /dev/sde /dev/sdc /dev/sdf /dev/sdd /dev/sdg :in our env may be not required for any one****


5) Now you can run fdisk to show the status.

#fdisk -l
Disk /dev/md0: 899.1 GB, 899120300032 bytes
2 heads, 4 sectors/track, 219511792 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 449.5 GB, 449560117248 bytes
2 heads, 4 sectors/track, 109755888 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 449.5 GB, 449560117248 bytes
2 heads, 4 sectors/track, 109755888 cylinders
Units = cylinders of 8 * 512 = 4096 bytes


6)Now format your raid device & add entry in fstab.
some useful command.
#mdadm --assemble --scan

Enjoy
Read More
Posted in | No comments

Monday, April 12, 2010

multipath centos 5.4 (64bit ) + Dell md3000i

Posted on 8:49 PM by Unknown
My kernel
2.6.18-164.el5

Before multipath

[root@my machine ~]# fdisk -l

Disk /dev/sda: 72.7 GB, 72746008576 bytes
255 heads, 63 sectors/track, 8844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 5657 45335430 8e Linux LVM
/dev/sda3 5658 8844 25599577+ 8e Linux LVM

Disk /dev/sdc: 1499.2 GB, 1499238236160 bytes
255 heads, 63 sectors/track, 182272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdb: 1499.2 GB, 1499238236160 bytes
255 heads, 63 sectors/track, 182272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table



Then edit the configuration file.

Mine /etc/multipath.conf

[root@my machine ~]# cat /etc/multipath.conf
defaults {
udev_dir /dev
user_friendly_names yes
max_fds 8192
}

blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
devnode "^sda"
devnode "^sda[0-9]"
device {
vendor DELL
product "PERC|Universal"
}
}



devices {
device {
vendor "DELL"
product "MD3000i"
product_blacklist "Universal Xport"
features "1 queue_if_no_path"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_rdac /dev/%n"
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
hardware_handler "1 rdac"
path_checker rdac
prio "rdac"
failback immediate
}
}

multipaths {
multipath {
device {
vendor DELL
product MD3000i
}
}
}


After this run

#multipath -F

#multipath -ll

[root@my machine ~]# multipath -ll
mpath0 (36001e4f000321e0800000ee74bbd2b12) dm-3 DELL,MD3000i
[size=1.4T][features=1 queue_if_no_path][hwhandler=1 rdac][rw]
\_ round-robin 0 [prio=200][active]
\_ 54:0:0:10 sdb 8:16 [active][ready]
\_ 53:0:0:10 sdc 8:32 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 51:0:0:10 sdd 8:48 [active][ghost]
\_ 52:0:0:10 sde 8:64 [active][ghost]

After multipath

[root@my machine ~]# fdisk -l

Disk /dev/sda: 72.7 GB, 72746008576 bytes
255 heads, 63 sectors/track, 8844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 5657 45335430 8e Linux LVM
/dev/sda3 5658 8844 25599577+ 8e Linux LVM

Disk /dev/sdc: 1499.2 GB, 1499238236160 bytes
255 heads, 63 sectors/track, 182272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdb: 1499.2 GB, 1499238236160 bytes
255 heads, 63 sectors/track, 182272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/dm-3: 1499.2 GB, 1499238236160 bytes
255 heads, 63 sectors/track, 182272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a Valid partition table
Read More
Posted in | No comments

Thursday, March 18, 2010

Nagios - NSCA setup details

Posted on 3:10 AM by Unknown
NSCA server configured on this sevrer ( for centralized monitoring purpose)

Following things are setup, for future refrence.


#cat /etc/nagios/nsca.cfg

server_port=5667
server_address=10.11.128.62
nsca_user=nagios
nsca_group=nagios
debug=1
password= *******
decryption_method=1


Port entry in services

#cat /etc/services | grep 5667
nsca 5667/tcp # Nagios Server check acceptor


[root@sgd1mon01 ~]# cat /etc/xinetd.d/nsca
# default: off
# description: NSCA (Nagios Service Check Acceptor)
service nsca
{
flags = REUSE
type = UNLISTED
port = 5667
socket_type = stream
wait = no
user = nagios
group = nagios
server = /usr/sbin/nsca
server_args = -c /etc/nagios/nsca.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
}

* only_from :- add ip address, seprate by space, from which the NSCA may be addressed.


Client side Configuration

The conf file send_nsca.cfg on client side must contain same parameter.

password= ******
decryption=1


Testing command from client side. ( send_nsca -H 10.131.11.142 -p 5667 -c /usr/local/nagios/etc/send_nsca.cfg )

Or we can try with script.

[root@nagios etc]# cat test_nsca
#!/bin/bash
CFG="/usr/local/nagios/etc/send_nsca.cfg"
CMD="linux01;nmbd;3;UNKNOWN - just one NSCA test"

/bin/echo $CMD | /usr/local/bin/send_nsca -H 10.131.11.142 -d ';' -c $CFG

[root@nagios etc]# ./test_nsca
1 data packet(s) sent to host successfully.

Mean connectivity through.
Read More
Posted in | No comments

Thursday, March 11, 2010

Oracle Instant Client installation

Posted on 2:10 AM by Unknown
with the oracle instant client (only available with 10g)you can connect remote oracle database, the package come with only 31MB in size. This version well work with 8i, 9i also
Now follow the steps to install on fedora 11 (which i used)

Download Instant client from oracle site. (below link)

http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html

1) instantclient-basic-linux32-10.1.0.5-20060511.zip
2) instantclient-sqlplus-linux32-10.1.0.5-20060511.zip

After download the package

Move both packages under /usr/local/oracle if dir not exist then create & move.

#mkdir /usr/local/oracle

#cd /usr/local/oracle

Then unzip the packages.

# unzip instantclient-basic-linux32-10.1.0.5-20060511.zip
# unzip instantclient-sqlplus-linux32-10.1.0.5-20060511.zip

#ls

Now you able to see the dir with name instantclient10_1, this sub-directory contain all the requird files.

Now set the environment variable like this..

# cat /root/.bash_profile
LD_LIBRARY_PATH=/usr/local/oracle/instantclient10_1
ORACL_HOME=/usr/local/oracle/instantclient10_1
PATH=$PATH:$HOME/bin:$ORACLE_HOME
export PATH ORACLE_HOME LD_LIBRARY_PATH

# cat /root/.bashrc
LD_LIBRARY_PATH=/usr/local/oracle/instantclient10_1
ORACLE_HOME=/usr/local/oracle/instantclient10_1
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

export ORACLE_HOME




After all this setting,now time to connect remote database.

command is

#sqlplus user/password@//host/database

# sqlplus ramank/rk99@//10.131.11.228:1521/XE

(in this 5121 is port )

#[root@raman oracle]# sqlplus ramank/rk99@//10.131.11.228:1521/XE

SQL*Plus: Release 10.1.0.5.0 - Production on Thu Mar 11 22:00:58 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

SQL>



Run your query and enjoy.



Raman
Read More
Posted in | No comments

Friday, February 26, 2010

Posted on 12:02 AM by Unknown
Masquerading send your mail with valid domain name, not with your hostname
like valid doamin raman@mydoamin.com not raman@inf1sysadm1.ind.bond.com

I am going to share my configuration.

Open your sendmail.mc ( /etc/mail/sendmail.mc)

FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`domaintable')dnl
FEATURE(`relay_based_on_MX')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`mydomain.com')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(allmasquerade)
MASQUERADE_DOMAIN(mydomain.com)dnl


After that

#echo inf1sysadm1.ind.my.com mydomain.com >> /etc/mail/domaintable"


Then run m4 & restart sendmail services.

## m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

# /etc/init.d/sendmail restart

Through telnet you can check your setting.
Read More
Posted in | No comments

Tuesday, February 23, 2010

multiple lines edit by Sed command.

Posted on 2:16 AM by Unknown
Suppose you have a file with 1000000 lines.. & you want to change any word. Use sed command.

For example: i have a file with name rk.conf with 80000 lines & in this file,want to change lib word with lib64. i use sed this command & my problem RESOLVED.

Command like this.

#sed -i 's/lib/lib64/g' rk.conf

Enjoy... hope this will save your time........
Read More
Posted in | No comments

Wednesday, February 10, 2010

Sendmail (host map: lookup (domain.com): deferred

Posted on 4:19 AM by Unknown
If you get this error... on sendmail.

[root@Test_Srv ~]# mailq
/var/spool/mqueue (9 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o1RKaZr6018628 10 Wed Feb 10 21:37 abc@abc.com
(host map: lookup (abc.com): deferred)




Solution:-

Check your DNS resoulation.

Try to nslookup on domain or dig.

[root@inf1sysadm1 ~]# dig abc.com

; <<>> DiG 9.6.1-P2-RedHat-9.6.1-7.P2.fc11 <<>> abc.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7633
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3


Domain name must be resolve.
Read More
Posted in | No comments

Chkconfig command

Posted on 4:13 AM by Unknown
# chkconfig --list
With this command, you will see a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6

To check a particular service .. in my example sendmail

root@inf1sysadm1 ~]# chkconfig --list sendmail
sendmail 0:off 1:off 2:on 3:on 4:off 5:on 6:off

#chkconfig 235 on

If you found any serivce run in run level 4,6 as well... use following command to stop.
In my example only run in 4th run level.

[root@inf1sysadm1 ~]# chkconfig --list | grep sendmail
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off

[root@inf1sysadm1 ~]# chkconfig --level 4 sendmail off

[root@inf1sysadm1 ~]# chkconfig --list | grep sendmail
sendmail 0:off 1:off 2:on 3:on 4:off 5:on 6:off
Read More
Posted in | No comments

Tuesday, February 2, 2010

Xen disk image resizing.

Posted on 4:15 AM by Unknown
In My Setup....
To resize 4Gb img ( xen virtual machine) to 9Gb
Following steps perform by me & working fine. going to share with you.

1) xm list ( show current running VM)

2) xm shutdown sgd1mon1 ( to shutdown the machine)

3) For safer side .. i take the backup.
[root@sgd1vmbe09 ~]# cd /var/lib/xen/images/
#cp -a sgd1mon1.img sgd1mon1.img.bak
4) verify MD5 Sum
# md5sum sgd1mon1.img
8dfb611eacd0aa7291d1737967845688 sgd1mon1.img
# md5sum sgd1mon1.img.bak
8dfb611eacd0aa7291d1737967845688 sgd1mon1.img.bak

5) Created 5Gb temp file
[root@sgd1vmbe09 images]# dd if=/dev/zero of=tempfile bs=1024 count=5000000
5000000+0 records in
5000000+0 records out
5120000000 bytes (5.1 GB) copied, 77.1266 seconds, 66.4 MB/s

6) Appending the existing image.
[root@sgd1vmbe09 images]# cat tempfile >> sgd1mon1.img

7) Resize the space

[root@sgd1vmbe09 images]# resize2fs -f sgd1mon1.img

8) check a Linux ext2/ext3 file system
[root@sgd1vmbe09 images]# fsck.ext3 sgd1mon1.img

9) Finally start the VM
[root@sgd1vmbe09 images]# xm create sgd1mon1
Using config file "/etc/xen/sgd1mon1".
Started domain sgd1mon1

10) Login and check the partition table.
[root@sgd1mon1 ~]# fdisk -l

Disk /dev/xvda: 9314 MB, 9314304000 bytes
255 heads, 63 sectors/track, 1132 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


Next part extend the machine LVM.... :)
Read More
Posted in | No comments

Friday, January 29, 2010

ERROR: Description table : The requested table is empty or does not exist.

Posted on 4:25 AM by Unknown
If you get this error while running load.pl

root@Test_Srv libexec]# ./check_snmp_load.pl -H 172.25.21.16 -Cpublic -w 80 -c 90

ERROR: Description table : The requested table is empty or does not exist.


Resolution:-

#vi /etc/snmp/snmpd.conf

# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1


Note:- see the third line .. just add the MIB

After that restart the snmpd services.

#service snmpd restart

Now check

[root@Test libexec]# ./check_snmp_mem.pl -H 10.131.11.136 -Cpublic -w 99,20 -c 100,30
Ram : 36%, Swap : 0% : ; OK


Enjoy the setting.
Read More
Posted in | No comments

Can't locate Net/SNMP.pm in @INC (@INC contain s:

Posted on 3:06 AM by Unknown
Can't locate Net/SNMP.pm in @INC (@INC contain s: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./check_snmp_load.pl line 15.
BEGIN failed--compilation aborted at ./check_snmp_load.pl line 15


To Resolve this issue...

Download Net-SNMP-v6.0.0.tar.gz

Suppose you download under /tmp dir.

Now extract the package.

[root@Test_Srv tmp]# tar -xvzf Net-SNMP-v6.0.0.tar.gz

Now installation steps.

# cd /tmp/Net-SNMP-v6.0.0

[root@Test_Srv Net-SNMP-v6.0.0]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SNMP

[root@Test_Srv Net-SNMP-v6.0.0]# make test

t/ber....ok
t/dsp....ok
t/mp.....ok
t/usm....ok
All tests successful.
Files=4, Tests=43, 4 wallclock secs ( 0.35 cusr + 0.02 csys = 0.37 CPU)

Finally run make install.

#[root@GCash-Test_Srv Net-SNMP-v6.0.0]# make install
Manifying blib/man1/snmpkey.1

Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Net/SNMP/.packlist
Appending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
Read More
Posted in | No comments

Friday, January 22, 2010

Disk Performance Monitoring

Posted on 12:44 AM by Unknown
For Linux

Package Name is sysstat

sysstat.i586 : The sar and iostat system monitoring commands


#[root@inf1sysadm1 ~]# sar -d 1 1
Linux 2.6.30.10-105.fc11.i586 (inf1sysadm1.ind.com) 01/22/2010

02:30:57 PM DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz await svctm %util
02:30:58 PM dev8-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
02:30:58 PM dev8-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
02:30:58 PM dev8-2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
02:30:58 PM dev8-3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
02:30:58 PM dev8-4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

********** -d Report activity for each block device ***********

#[root@inf1sysadm1 ~]# sar -u 1 1
Linux 2.6.30.10-105.fc11.i586 (inf1sysadm1.ind.com) 01/22/2010

02:34:29 PM CPU %user %nice %system %iowait %steal %idle
02:34:30 PM all 6.37 0.00 2.94 0.00 0.00 90.69
Average: all 6.37 0.00 2.94 0.00 0.00 90.69

****** -u 2 5 Report CPU utilization for each 2 seconds.5lines are displayed.*****



[root@inf1sysadm1 ~]# iostat 1 1
Linux 2.6.30.10-105.fc11.i586 (inf1sysadm1.ind.com) 01/22/2010

avg-cpu: %user %nice %system %iowait %steal %idle
5.63 0.44 2.72 1.28 0.00 89.94

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 7.15 99.33 38.85 1510463 590764
sda1 0.01 0.17 0.00 2624 4
sda2 7.10 98.47 38.39 1497306 583704
sda3 0.00 0.11 0.00 1715 0
sda4 0.04 0.53 0.46 8002 7056


--------------------------For Solaris---------------------------

# iostat -xc
extended device statistics cpu
device r/s w/s kr/s kw/s wait actv svc_t %w %b us sy wt id
fd0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 8 64 27 0
sd0 51.1 0.2 6545.1 1.6 0.0 1.8 34.7 0 100
sd1 84.7 0.0 10615.1 0.0 0.0 1.6 19.0 1 98
sd4 27.6 6.8 220.5 51.6 0.0 2.9 83.0 0 98
sd6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
nfs1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0

Looks like disk 'sd0' is really busy (100% busy!). Next step is to find out what is using it.

The fields have the following meanings:

disk name of the disk
r/s reads per second
w/s writes per second
Kr/s kilobytes read per second
Kw/s kilobytes written per second
wait average number of transactions waiting for ser-
vice (queue length)
actv average number of transactions actively being
serviced (removed from the queue but not yet
completed)

%w percent of time there are transactions waiting
for service (queue non-empty)
%b percent of time the disk is busy (transactions
in progress)


---------------------For AIX --------------------------------

On AIX 5.3

mypc:/#sar -d 1 1

AIX MYDB01 3 5 00C830104C00 01/22/10

System configuration: lcpu=14 drives=22 ent=3.50 mode=Capped

15:07:32 device %busy avque r+w/s Kbs/s avwait avserv

15:07:33 hdisk0 0 0.0 0 3 0.0 7.7
hdisk1 0 0.0 0 0 0.0 0.0
hdisk2 11 0.0 14 6087 0.0 12.5
hdisk3 10 0.0 12 6087 0.0 9.0
dac0 0 0.0 1953 96713 0.3 7.1
dac0utm 0 0.0 0 0 0.0 0.0
dac1 0 0.0 752 20925 0.0 5.5
dac1utm 0 0.0 0 0 0.0 0.0
hdisk4 99 0.0 542 67378 1.2 12.6
hdisk5 93 0.0 752 20925 0.0 5.5
hdisk6 98 0.0 549 18856 0.0 5.3



MyPC:/#iostat aux 1 1
iostat: 0551-154 Disk aux is not found.

System configuration: lcpu=14 drives=22 ent=3.50 paths=4 vdisks=0

tty: tin tout avg-cpu: % user % sys % idle % iowait physc % entc
0.0 126.5 66.4 24.7 4.5 4.3 3.2 92.3

Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk0 2.9 19.6 4.9 16 4
hdisk1 1.0 3.9 1.0 0 4
hdisk2 98.0 65822.5 117.6 4660 62479
hdisk3 92.2 65771.6 106.9 5632 61455
dac0 0.0 115247.1 2169.6 83980 33572
dac0utm 0.0 0.0 0.0 0 0
dac1 0.0 21851.0 395.1 2640 19648
dac1utm 0.0 0.0 0.0 0 0


*****disk Read throughput:

# time dd if=/tmp/f66mb.out of=/dev/null bs=1024k
63+1 records in.
63+1 records out.

real 0m2.04s
user 0m0.00s
sys 0m1.05s

The 'time' command shows the amount of time it took to complete the read. The read throughput
in this example is about 33MB per second (66MB / 2.04 seconds real time)

******measure disk Write throughput

# sync; date; dd if=/dev/zero of=/tmp/1000m bs=1024k count=1000; date; sync; date
Thu Jan 5 23:02:41 PST 2006
1000+0 records in.
1000+0 records out.
Thu Jan 5 23:02:59 PST 2006
Thu Jan 5 23:02:59 PST 2006

In this example, dd completed after 18 seconds (23:02:59 - 23:02:41) and wrote with 55MB
per second (1GB / 18 seconds).
Read More
Posted in | No comments

Wednesday, January 20, 2010

Nagios installation steps on RHEL 4

Posted on 11:14 PM by Unknown
Tested on RHEL4 + Fedora 11 + CentOs 5.3 (in my environment)

Download latest stable release.

1)Nagios-3.2.0.tar.gz
2)Nagios-plugins-1.4.14.tar.gz

Before Installation check the Prerequisites.
like this
#rpm -qa | grep httpd

If the prerequisite not installed ..use the following steps to install.

#yum install httpd php

#yum install gcc glibc glibc-common

#yum install gd gd-devel

Once you installed then follow next steps.

*** Login as Root on the machine ***

Add Nagios user

#useradd -m nagios

#passwd nagios ( but not required)

Now add Group,Add both the nagios user and the apache user to this group.

#groupadd nagcmd

#usermod -a -G nagcmd nagios

#usermod -a -G nagcmd apache


**** Installation Begin *******

Suppose you downloaded both packages under tmp dir

#cd /tmp

Now Extract nagios package

#tar -xvzf nagios-3.2.0.tar.gz

Now enter nagios dir.

#cd nagios-3.2.0

Now Run this command to script...

#./configure --with-command-group=nagcmd

Compile the Nagios source code.

#make all


Install binaries, init script, sample config files and set permissions on the external command directory.

#make install

#make install-init

#make install-config

#make install-commandmode

Now add you email id in configuration

#vi /usr/local/nagios/etc/objects/contacts.cfg

on line number 35 you found like this
email nagios@localhost ; <<**** * CHANGE THIS TO YOUR EMAIL ADDRESS ******

Add your mail id..on which you want the alerts.

Save the file & quit.

*****Now configure web interface*******

#make install-webconf

#htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

#service httpd restart


****Now Install Nagios Plugin****

#cd /tmp

#tar -xvzf nagios-plugins-1.4.14.tar.gz

#cd nagios-plugins-1.4.14

#./configure --with-nagios-user=nagios --with-nagios-group=nagios

------------Note:-- On Red Hat machines you find message like this------------
configure: See http://nagiosplugins.org/faq/compile/configure_appears_to_hang if this next part takes a long time
checking for redhat spopen problem...

To solve this run the following command.

#./configure --with-nagios-user=nagios --with-nagios-group=nagios --enable-redhat-pthread-workaround

-------------------------------------------------------------------------------------

#make

#make install



Nagios start automatically when the reboot the system.

#chkconfig --add nagios

#chkconfig nagios on

Verify the Nagios configuration files.

#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

if there are no errors, start Nagios.

#service nagios start

------------------------------------------------------------
Make sure Selinux disable

#[root@inf1sysadm1 ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=disabled


Reboot the system after this setting.

Now login on web interface.

http://your-machine-ip/nagios/


Its time to Play with Nagios configuration........ enjoy it ...
Read More
Posted in | No comments

Monday, January 18, 2010

Wireless Issue -Dell Vostro 1520 - Fedora 11 (Broadcom corporation BCM 4312 802.11b/g (rev 01) )

Posted on 3:42 AM by Unknown
Wireless Issue -Dell Vostro 1520 - Fedora 11 (Broadcom corporation BCM 4312 802.11b/g (rev 01) )

#lspci

(with this command you can find the details)

First rum this command as a root user

# rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Now update the system.

#yum update -y

Once everything installed run this command.

#yum install wl-kmod -y

After this reboot your system.
Hope your wirelss working.

:)
Read More
Posted in | No comments

Friday, January 8, 2010

Skype in Fedora 11 audio + video sucessfully working

Posted on 2:04 AM by Unknown
After installation of Fedora 11

Run update ..like this.

#yum update -y

After this check rpm for skype.

[root@inf1sysadm1 Download]# rpm -qa | grep skype
skype-2.1.0.47-fc10.i586

Mean rpm insatlled... if not then download from this link..

http://www.skype.com/go/getskype-linux-beta-fc10

after download install like this..

[root@inf1sysadm1 Download]# rpm -ivh skype-2.1.0.47-fc10.i586.rpm
Preparing... ########################################### [100%]
1:skype ########################################### [100%]

Now create your skype account and login.

Make test call for check audio + video.

*****Troubleshooting**********

1) Right click on skype then ---> option

from left side ...choose sound device.

Microphone :-- pulseAudio Server (local)
speaker :- pulseAudio Server (local)
Ringing :- pulseAudio Server (local)


As per my hardware i.e dell vostro 1510

You can make test call & sound from this menu as well.


2) If you found you Mic not working...then go in

System > preference > sound

in 3rd tab you able to see Input ... Adjust according to yours..... (min in middle)


Now Audio + video skype calls work for you....

Cheers....
Read More
Posted in | No comments

Wednesday, January 6, 2010

vpnc: peer selected (single) DES as "encryption" method

Posted on 4:12 AM by Unknown
When you trying to vpnc and get following message

#vpnc abc

[root@inf1sysadm1 vpnc]# vpnc abc
vpnc: peer selected (single) DES as "encryption" method.
This algorithm is considered too weak today
If your vpn concentrator admin still insists on using DES
use the "--enable-1des" option



To resolve this simply use this command.

[root@inf1sysadm1 vpnc]# vpnc --enable-1des abc
VPNC started in background (pid: 9444)...


Hope this will work for you :)
Read More
Posted in | No comments

cisco VPN .pcf file run under VPNC

Posted on 2:35 AM by Unknown
Through VPNC you can connect cisco vpn (.pcf) form Linux machine.
Make sure vpnc rpm installed on your machine.

1) #rpm -qa | grep vpnc

vpnc-0.5.3-3.fc11.i586

2) configure vpnc under /etc/vpnc
like this

[root@inf1sysadm1 vpnc]# cat raman (raman connection name)
IPSec gateway my.site.com.my
IPSec ID groupOther
IPSec obfuscated secret (****mentioned in pcf file****)
# your username goes here:
Xauth username raman
Xauth password (**password**)

3) After save the file run
#vpnc raman

[root@inf1sysadm1 vpnc]# vpnc raman
Connect Banner:
| Welcome to raman Enterprise Network via VPN
|
| You are connected as raman Contractors, Consultants, Vendors, etc.
|
| Unauthorized access is prohibited
| Violators will be prosecuted
| * You have been warned *

VPNC started in background (pid: 8811)...

This message show your connection established.

You can use following command for link status

#route -n



Now connect internal machines

4) ssh root@10.0.201.102 (internal ip)


Hope this will work for you.
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Popular Posts

  • No package 'lua5.1' found
    hecking for LUA51... no checking for LUA51... configure: error: Package requirements (lua5.1 >= 5.1) were not met: No package 'lua5.1...
  • response to SOA query was unsuccessful: solved
    check your zone file [root@inf1sysadm1 data]# pwd /var/named/data # cat ind.raman.com.zone $ORIGIN . $TTL 3600 ; 1 hour ind.raman.com IN SO...
  • can't locate your x11 installation Fedora
    While install Conky, system through this error. Solution:- You need to install X11 Software Dev Package. Login on system with root user ...
  • Qmail Installation & Configuration step by step
    Tested under CentOS 5.8  64bit machine. 1)Packges which i installed for Qmail. httpd-2.2.3-76 php-5.1.6-39 perl-5.8.8 -38 gcc-4.1.2 mysql-5....
  • Dell MD3200 SAS Cabling With Diagram
    I have 2 MD3200 with SAS Ports + 2 Power Edge720. Task to connect Both DAS with Both server and make sure Both server showing  all DAS Parti...
  • It is safe to clean windows prefetch folder and registry folder ?
     It is safe to clean windows prefetch folder and registry folder ? Will this boost Windows operating system capabilities ? Many of you hav...
  • Windows 7 & Windows 8 fail to start
    Windows 7 fail to boot, what should I do? Is Windows 7 failing to boot after you installed the loader or after you just installed a fresh ne...
  • Steps how to change VolStatus in Bacula through bonsole.
    In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged. *list volumes Pool: Default +---------+------------+-----------+--...
  • Adobe Photoshop CS5 Error 16 , Adobe Photoshop CS5 Error 7
    When you install Adobe Photoshop CS5 you might get some errors. In case you get one you will see a code and a little description. Is very im...
  • X connection to localhost:10.0 broken (explicit kill or server shutdown).
    Solution:- With Xhost, you can solve this issue.

Categories

  • Adobe
  • Players
  • Reviews
  • Windows

Blog Archive

  • ►  2013 (27)
    • ►  October (3)
    • ►  August (1)
    • ►  June (1)
    • ►  April (3)
    • ►  February (10)
    • ►  January (9)
  • ►  2012 (29)
    • ►  December (2)
    • ►  November (7)
    • ►  October (10)
    • ►  September (4)
    • ►  August (1)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2011 (36)
    • ►  December (3)
    • ►  November (3)
    • ►  October (1)
    • ►  September (5)
    • ►  August (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (5)
    • ►  February (2)
    • ►  January (7)
  • ▼  2010 (24)
    • ▼  December (1)
      • Dell vostro 1520 wifi + fedora 13 + bcm4312
    • ►  November (1)
      • Linux System/Server memory check method
    • ►  October (4)
      • Bacula:tape Volume purging & deletion steps.
      • Steps how to change VolStatus in Bacula through bo...
      • How to find which scsi device you have.
      • response to SOA query was unsuccessful: solved
    • ►  August (1)
      • Have fun with chage - change user password expiry...
    • ►  May (1)
      • Linux Software Raid with mdadm
    • ►  April (1)
      • multipath centos 5.4 (64bit ) + Dell md3000i
    • ►  March (2)
      • Nagios - NSCA setup details
      • Oracle Instant Client installation
    • ►  February (5)
      • Masquerading send your mail with valid domain name...
      • multiple lines edit by Sed command.
      • Sendmail (host map: lookup (domain.com): deferred
      • Chkconfig command
      • Xen disk image resizing.
    • ►  January (8)
      • ERROR: Description table : The requested table is ...
      • Can't locate Net/SNMP.pm in @INC (@INC contain s:
      • Disk Performance Monitoring
      • Nagios installation steps on RHEL 4
      • Wireless Issue -Dell Vostro 1520 - Fedora 11 (Broa...
      • Skype in Fedora 11 audio + video sucessfully working
      • vpnc: peer selected (single) DES as "encryption" m...
      • cisco VPN .pcf file run under VPNC
  • ►  2009 (18)
    • ►  December (6)
    • ►  November (3)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (5)
    • ►  April (2)
    • ►  February (1)
    • ►  January (5)
  • ►  2007 (4)
    • ►  July (3)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile