Android APPs

Free or Paid Android Games,Applications,tools - www.e-infosite.tk.

E-Tricks n Tips

Free Blog tricks,Web tricks,PC tricks,Mobile tricks,Internet tricks,etc.. - www.e-infosite.tk.

Technology News

Latest News,Information,Reviews about PC,Mobile,PC games,mobile games,Pc Softwre,Android and IOS apps,etc.. - www.e-infosite.tk.

Useful Infos

Useful informations about Daily life,Health,Entertainment,Educational,Job,IT,etc.. - www.e-infosite.tk.

E-earnings

More Tricks and tips to earn from Internet,Blog,and your website... - www.e-infosite.tk.

Wednesday, 2 August 2017

Time or date issue in zabbix (solved)

First you need to check system time


#date
If it is not correct set the correct time
# sudo date --set ="2017-07-31 15:30:00"


Then check Hardware time ,


# sudo hwclock --show


If it is wrong then merge current system time to hardware time
#sudo hwclock --systohc


Then check Physical or Virtual machines bios time and time zone


Restart PC or VM and enter to BIOS and change appropriate setup




Then check php configuration, type correct time zone,


#/etc/php5/apache2/php.ini    (879 th line approx.)


Type correct time zone like Asia/Dubai


Then check Linux  OS time zone


#sudo dpkg -reconfigure tzdata
Choose correct time zone


At last check zabbix configuration


#vi /etc/apache2/conf-enabled/zabbix.conf


Cahnge time zone in under both field


<IfModule Mode_PHP5.c>
.............
..............
............
............
php_value date.timezone  Asia/Dubai
</IfModel>
and


<IfModule Mode_PHP7.c>
.............
..............
............
............
php_value date.timezone  Asia/Dubai
</IfModel>



Tuesday, 1 August 2017

zabbix snmp enable

# apt-get update
#apt-get install snmp snmp-mibs-downloader
vi /etc/snmp/snmp.conf


Make "#" befor mibs
and save :wq!


#download-mibs
#service zabbix-server restart


To check snmp working


#snmpwalk -v1 -c public 192.168.0.x


public - snmp community name
192.168.0.x  snmp enabled device IP

To add any user to do ssh login in Linux

Edit (as root) /etc/ssh/sshd_config. Append the following to it:
Port 1234
PermitRootLogin no
AllowUsers testusr





It will permit root user to login ssh but only allow the  "testusr" to login ssh.
If you want allow root ,




PermitRootLogin yes


Then restart ssh


service ssh restart





The command to find any specific word in a linux file and in which line

grep -rnw '/path/to/somewhere/' -e 'pattern'

Linux SCP - Basic Commands







Copy the file "abcd.txt" from a remote host to the local host


$ scp your_username@ remotehost.com:abcd.txt /some/local/directory


Copy the file "abcd.txt" from the local host to a remote host


$ scp abcd.txt your_username@remotehost.com:/some/remote/directory


Copy the directory "foo" from the local host to a remote host's directory "bar"


$ scp -r foo your_username@ remotehost.com:/some/remote/directory/bar


Copy the file "abcd.txt" from remote host "123.com" to remote host "456.in"