satu

Gajah mati meninggalkan tulang
harimau mati meninggalkan belang
manusia mati meninggalkan nama

persiapkan klu kalian mati ingin meninggalkan apa ?
Showing posts with label troubleshooting. Show all posts
Showing posts with label troubleshooting. Show all posts

Sunday, 23 August 2020

Compare the RPM packages installed on two different servers

Setting up new servers can be a pain if you’re not able to clone them from a server that is known to be working. Many VPS providers, like Slicehost, allow you to clone a system to a new system. Without that option, you can pull a list of RPM’s without their version number for a fairly quick and basic comparison.
First, pull a list of RPM package by name only:
rpm -qa --queryformat='%{NAME}\n' | sort > server.txt
Once you’ve done that on both servers, just use diff to compare the two files:
diff serverold.txt servernew.txt

Wednesday, 27 April 2016

troubleshoot cacti graph Nan-Nan

update dan tune up rrd apabila graph tdk muncul dan putus putus di cacti



Friday, 22 April 2016

mongodb

WARNING: soft rlimits too low. rlimits set to 1024 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.


/etc/security/limits.d/90-nproc.conf

edit 1024 di uncoment

Monday, 4 April 2016

apt-get install errors

root@root:~# apt-get install
Read packets Lists ... 0%
Building dependency tree
Reading state information... Was
E: The package firefox-mozilla-build needs to be reinstalled, but I can't find an archive for it.


Wednesday, 9 March 2016

paket yang penting harus terinstall di zabbix


untuk curl
curl.x86_64                        7.19.7-46.el6                     @base
libcurl.x86_64                     7.19.7-46.el6                     @base
libcurl-devel.x86_64               7.19.7-46.el6                     @base
python-pycurl.x86_64               7.19.0-8.el6                      @anaconda-CentOS-201303020151.x86_64/6.4


Tuesday, 8 March 2016

CENTOS: Sending Email using SENDMAIL, Relay via GMAIL

on request.
To send Email from Linux (Centos) shell using simple mail commands, you need to setup sendmail and use G-MAIL as relay (comes in handy). This was also required in radius manager setup where radius system sends various alerts to user like expiry alerts, quota alerts and my own customized alerting events.
First install required items.
1
yum -y install sendmail mailutils mailx sendmail-bin sendmail-cf cyrus-sasl-plain
Now issue following command to create Gmail authentication file in a folder in which you will add Gmail user name and password.


Thursday, 3 March 2016

libgcc_s.so.1 must be installed for pthread_cancel to work

 yum install libgcc.i686

di centos drc simkpnas



link referensi : http://www.linuxquestions.org/questions/linux-newbie-8/libgcc_s-so-1-must-be-installed-for-pthread_cancel-to-work-4175474124/

How to fix /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

yum -y install glibc.i686


link referensi

http://www.howtodoityourself.org/how-to-fix-libld-linux-so-2-bad-elf-interpreter-no-such-file-or-directory.html

Tuesday, 26 January 2016

device eth0 does not seem to be present,delaying intialization



device eth0 does not seem to be present,delaying intialization
kosongkan 


echo > /etc/udev/rules.d/70-persistent-net.rules

Saturday, 23 January 2016

Zabbix unreachable hosts The solution

The problem

Every now and then, a host in your Zabbix system will turn unavailable. It results in notifications like this:
Trigger: Zabbix agent on myhost is unreachable for 5 minutes
Trigger status: PROBLEM
And logs like this:

1461:20140808:074300.517 Zabbix agent item "vfs.fs.size[/home/deploy/sites/mc/shared/voip,free]" on host "myhost" failed: first network error, wait for 15 seconds
1466:20140808:074345.134 temporarily disabling Zabbix agent checks on host "myhost": host unavailable

What could be a cause? No, it’s not because a host could not be reached. That would be too easy.
A quote from Zabbix documentation:
A host is treated as unreachable after a failed agent check (network error, timeout).
After the UnreachablePeriod ends and the host has not reappeared, the host is treated as unavailable.
Let me decipher this for you: when a single check fails, the whole host will be considered “unavailable”, and will not be monitored anymore.
An example of such check could be vfs.fs.size of a network share that has gone stale. You lose all data and all monitoring of the host until you fix that single check.
Bad design. Bad. Really bad. (I hope some Zabbix developer will read this)

The solution

There’s none, actually. A workaround is to track down such checks and replace them with more reliable UserParameters. In the example with network share something like this could be used instead of vfs.fs.size:
set +m -o pipefail; timeout -s 9 3 df -h | grep /my/mount/point | awk '{print $5}' | grep '%' | tr -d '%' || echo 100
It shall output a “Used” value in %’s within 3 seconds (or report full partition, so you’ll get an alert anyway). Not a real solution, but at least something to do



sumber : http://huyabbix.com/zabbix-unreachable-hosts/

Wednesday, 20 January 2016

linux route add dan delete

ip route add 10.38.0.0/16 via 192.168.100.1
route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0

ip route del default via 10.14.23.1
ip route add default via 10.14.20.1

Monday, 18 January 2016

tau kondisi fisik vm

(get-item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters").GetValue("HostName")

Friday, 15 January 2016

zabbix shared memory cannot allocate

http://www.zabbix.org/wiki/How_to/configure_shared_memory

How to/configure shared memory

Configuration of shared memory for zabbix_server daemon

General information

If you need to use significantly increased values of caches (CacheSize, HistoryCacheSize, HistoryTextCacheSize, TrendCacheSize) for zabbix_server daemon then you have to configure (increase) kernel parameters.
Some operating systems, like FreeBSD, require increased kernel parameters to start zabbix_server daemon even with the default configuration file. For example: zabbix_server requires 36 Mbytes total (defaulf Zabbix caches), but FreeBSD by default allows to allocate only 8192*4096 = 32 Mbytes
Note that if other programs are using shared memory as well (PostgreSQL for example), you will have to coordinate the size settings between them. Note that the amount of total size of shared memory (shmall) is measured in Pages and one page size is the value of PAGE_SIZE (normally 4096 bytes).
If zabbix_server will not be able to allocate configured memory, it will not start and will write to the zabbix_server.log these lines:
 cannot allocate shared memory of size 114085069: [22] Invalid argument
 cannot allocate shared memory for <type of cache>

Linux

Check what is the Page size:
 # getconf PAGE_SIZE
 4096

Default values for Linux depend on the distribution used. For example, recent versions of Debian, CentOS, OpenSUSE and Slackware:
 kernel.shmall = 2097152
 kernel.shmmax = 33554432
OpenSUSE 11.x i386:
 kernel.shmall = 268435200
 kernel.shmmax = 4294967295
OpenSUSE 11.x x86_64:
 kernel.shmall = 1152921504606846720
 kernel.shmmax = 18446744073709551615
Description of parameters:
 kernel.shmall: Maximum total size of shared memory in pages (normally 4096 bytes)
 kernel.shmmax: Maximum size of shared memory segment in bytes

Check current values of parameters:
 # sysctl -a | grep -E "shmall|shmmax"
 kernel.shmmax = 33554432
 kernel.shmall = 2097152
or alternative way:
# ipcs -lm
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1
Need to increase kernel.shmmax=134217728 which allows to use 128M for any cache related parameter in the zabbix server configuration.
To make the configuration persistent, need to add this line to the /etc/sysctl.conf:
 kernel.shmmax=134217728
which means 128 Mbytes
To apply changes in the /etc/sysctl.conf immediately, execute:
 # sysctl -p
 kernel.shmmax = 134217728

FreeBSD

Check what is the Page size:
 # getconf PAGE_SIZE
 4096

Default values for FreeBSD:
 kern.ipc.shmall: 8192
 kern.ipc.shmmax: 33554432

Description of parameters:
 kern.ipc.shmall: Maximum number of pages (normally 4096 bytes) available for shared memory 
 kern.ipc.shmmax: Maximum shared memory segment size in bytes

Check current values of parameters:
# sysctl -a | grep -E "shmall|shmmax"
kern.ipc.shmall: 8192
kern.ipc.shmmax: 33554432
or alternative way:
# ipcs -M
shminfo:
 shmmax:     33554432 (max shared memory segment size)
 shmmin:            1 (min shared memory segment size)
 shmmni:          192 (max number of shared memory identifiers)
 shmseg:          128 (max shared memory segments per process)
 shmall:         8192 (max amount of shared memory in pages)

Need to increase kern.ipc.shmall=2097152 which allows to allocate 8 Gbytes of shared memory for OS.
And increase kern.ipc.shmmax=134217728 which allows to use 128M for any cache related parameter in the Zabbix server configuration.
To make the configuration persistent, need to add these lines to the /etc/sysctl.conf:
 kern.ipc.shmall=2097152
 kern.ipc.shmmax=134217728
which means 2097152*4096=8 Gbytes and 128 Mbytes respectively
To apply changes in the /etc/sysctl.conf immediately, execute:
 # service sysctl restart

Thursday, 10 December 2015

cek machine info

# /usr/contrib/bin/machinfo  ketik ini di command line

sumber dan referensi

http://community.hpe.com/t5/System-Administration/HP-UX-command-need-to-display-processor-information/m-p/4916302


reset password windows

Forgetting your password is always a pain, but luckily there’s an easy way to reset your Domain Administrator password. All you need is a copy of the Windows Server 2008 R2 installation disk and one simple command line trick.

Replacing Utilman.exe

Boot off the Windows disk and select the “Repair your computer” option from the lower left-hand corner.
image
Follow through until you get to the option to open the Command Prompt, which you’ll want to select.
image
First you’ll want to type in the following command to backup the utilman.exe file:
MOVE C:\Windows\System32\Utilman.exe C:\Windows\System32\Utilman.exe.bak
image
Now you will need to copy cmd.exe and rename it Utilman.exe:
COPY C:\Windows\System32\cmd.exe C:\Windows\System32\Utilman.exe
image
Now you can go ahead and reboot your machine. When its done booting up again and you are at the Logon screen click on the Ease of access icon.
image
I bet you weren’t expecting that open a command prompt  Smile To change the password type:
net user administrator *
Once you press enter you will asked to set a new password and then confirm it, when entering your new password don’t worry if you can’t see them as you type, they are invisible, they are however being remembered.
image
Once you’re logged in again don’t forget to delete Utilman.exe and then rename Utilman.exe.bak back to plain old Utilman.exe.



referensi : http://www.howtogeek.com/106333/how-to-reset-your-forgotten-domain-admin-password-on-server-2008-r2/

Tuesday, 3 November 2015

merubah mysql password menjadi kosong

ou need to set the password for root@localhost to be blank. There are two ways:
  1. The MySQL SET PASSWORD command:
    SET PASSWORD FOR root@localhost=PASSWORD('');
  2. Using the command-line mysqladmin tool:
    mysqladmin -u root -pCURRENTPASSWORD password ''
    
    
    refernsi : http://stackoverflow.com/questions/3032054/how-to-remove-mysql-root-password

Saturday, 24 October 2015

0x000007b

E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory

For linux backtrack

sudo dpkg --configure-a
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f instal

he problem of a broken package still exist the solution is to edit the dpkg status file manually.
sudo nano /var/lib/dpkg/status  
way 3

2 down vote
first remove the libcv-dev package
sudo dpkg -r libcv-dev
then
sudo apt-get install -f
the
sudo apt-get update


E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory

if you meet the problem this


E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory



sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock

Friday, 16 October 2015

install HTOP dan troubleshootnya

configure: error: You may want to use --disable-unicode or install libncursesw
solve


yum group install "Development Tools"
yum install ncurses-devel

lalu install htop dari sini : http://ncu.dl.sourceforge.net/project/htop/htop/1.0.2/htop-1.0.2.tar.gz