Error Starting nagios : Permission denied


Error Starting nagios : Permission denied

Error Starting nagios : Permission denied

root@titik.org [/home/nagios]# /etc/init.d/nagios start

Starting nagios:su: warning: cannot change directory to /home/nagios: Permission denied

-bash: /home/nagios/.bash_profile: Permission denied

 done.

Read the rest of this entry »

Tags: ,

Filed under:Error

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (38)


[root@ibm /var/db/mysql]# uname -a
FreeBSD ibm.jc 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

[root@ibm /var/db/mysql]# mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (38)

[root@ibm /var/db/mysql]# ls -al /tmp/mysql.sock
-rw-r–r–  1 root  wheel  0 Dec  4 10:15 /tmp/mysql.sock

Just delete file /tmp/mysql.sock and restart mysql-server Read the rest of this entry »

Tags: , , , ,

Filed under:Error

Setting Modem Router SMC7904BRA2 Barricade ADSL2/2+ Telkom Speedy Yogyakarta


Start web browser lalu akses modem melalui http://192.168.2.1 dengan password default smcadmin

Setting

* Time Zone
* Password Setting, ganti password default (smcadmin)
* Configure ATM VC parameters
* Melalui menu WAN pilih sub menu ATM PVC, lalu Edit VC1
- Protocol : PPPoE
- VPI : 8
- VCI : 81
- Encapsulation : LLC
- IP assigned by ISP : Yes
- Connect Type : Auto
- Username : tanyatelkomspeedy@telkom.net
- password : tanyatelkomspeedy147
- MTU : 1492

* ADSL Parameters Operation Mode : G.992.1 (G.DMT) Read the rest of this entry »

Tags: , , , , , , ,

Filed under:How To

INKASO


INKASO adalah layanan untuk menagih pembayaran atas surat/dokumen berharga kepada pihak ketiga di tempat/kota lain di dalam negeri. Surat/dokumen berharga yang dapat diinkasokan adalah wesel/draft, cek bilyet giro, kuitansi, surat promes/aksep dan hadiah undian.

Manfaat

* Membantu lebih efektif dan efisien dalam penyelesaian tagihan antar kota.
* Lebih bonafid dan nasabah memiliki reputasi yang lebih jelas.

Contoh kasus pencairan cek dari google adsense ke Bank Niaga.
Read the rest of this entry »

Tags: , ,

Filed under:Tips

Don’t Try This At Home


top - 12:53:54 up 27 days, 15:29,  3 users,  load average: 695.28, 439.47, 201.41
Tasks: 150 total,   1 running, 146 sleeping,   0 stopped,   3 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 98.2%id,  1.4%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:   2074224k total,   158648k used,  1915576k free,     4852k buffers
Swap:  2096472k total,   206592k used,  1889880k free,    38460k cached

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
4261 root      15   0  2320 1052  796 R    0  0.1   0:00.02 top
1 root      18   0  2064  552  528 S    0  0.0   1:06.84 init
2 root      RT   0     0    0    0 S    0  0.0   0:01.91 migration/0
3 root      34  19     0    0    0 S    0  0.0   0:02.33 ksoftirqd/0

<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 1024
MaxRequestsPerChild 0
</IfModule>

[root@titik ~]# ps axuww | grep http | wc -l
805

Because too high MaxClients value

OS : CENTOS Enterprise 5.2 i686
PHP Version 4.4.8
Server version: Apache/2.0.63
MySql

Suggestion  :

  • Set Lower MaxClients value
  • Upgrade Ram

Tags: , ,

Filed under:Error

Install Nagios Plugins and NRPE Addon


Nagios® is an Open Source host, service and network monitoring program. Where can you get it? Right here. Can you get support for it? Yes! Get more answers to some of your basic questions about Nagios here.

root@titik [~/herman]# wget http://transact.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.12.tar.gz
–10:41:05–  http://transact.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.12.tar.gz
Resolving transact.dl.sourceforge.net… 202.55.147.10
Connecting to transact.dl.sourceforge.net|202.55.147.10|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1831377 (1.7M) [application/x-gzip]
Saving to: `nagios-plugins-1.4.12.tar.gz’

100%[=======================================>] 1,831,377    218K/s   in 9.2s

10:41:15 (195 KB/s) - `nagios-plugins-1.4.12.tar.gz’ saved [1831377/1831377]

root@titik [~/herman]# wget http://transact.dl.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz
–10:42:18–  http://transact.dl.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz
Resolving transact.dl.sourceforge.net… 202.55.147.10
Connecting to transact.dl.sourceforge.net|202.55.147.10|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 405725 (396K) [application/x-gzip]
Saving to: `nrpe-2.12.tar.gz’

100%[=======================================>] 405,725      166K/s   in 2.4s

10:42:21 (166 KB/s) - `nrpe-2.12.tar.gz’ saved [405725/405725]
Read the rest of this entry »

Tags: , , , , ,

Filed under:How To

Install PhpMyadmin on CentOS


Logo PhpMyAdmin

Logo PhpMyAdmin

1. $ su -
2. # cd /var/html/www/
3. Download Phpmyadmin
# wget -c http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.3-english.tar.gz?download
4. Extract
# tar xvfz phpMyAdmin-2.11.3-english.tar.gz
5. # mv phpMyAdmin-2.11.3-english phpmyadmin
6. # cd phpmyadmin
7. # cp config.sample.inc.php config.inc.php
8. edit config
# vi config.inc.php
at :line 29
/* Authentication type */
change default Authentication type cookies to http

$cfg['Servers'][$i]['auth_type'] = ‘http’;

$cfg[’Servers’][$i][’auth_type’] = ‘http‘; # default is cookies
:
9. Restart http service
# service httpd restart

You can test by open phpmyadmin by this link :
http://yourdomain.com/phpmyadmin/
You should be find pop up for insert your user name and password.

Tags: , ,

Filed under:How To

Install SNMP Centos (Yum)


CenOS Logo

CenOS Logo

[root@titik ~]# yum install net-snmp net-snmp-libs net-snmp-utils
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for net-snmp to pack into transaction set.
net-snmp-5.1.2-11.el4_6.1 100% |=========================| 36 kB 00:01
—> Package net-snmp.i386 0:5.1.2-11.el4_6.11.2 set to be updated
—> Downloading header for net-snmp-utils to pack into transaction set.
net-snmp-utils-5.1.2-11.e 100% |=========================| 26 kB 00:00
—> Package net-snmp-utils.i386 0:5.1.2-11.el4_6.11.2 set to be updated
–> Running transaction check
–> Processing Dependency: libsensors.so.3 for package: net-snmp
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for lm_sensors to pack into transaction set.
lm_sensors-2.8.7-2.40.5.i 100% |=========================| 23 kB 00:01
—> Package lm_sensors.i386 0:2.8.7-2.40.5 set to be updated
–> Running transaction check
Read the rest of this entry »

Tags: , , ,

Filed under:How To

Error Starting up NRPE daemon


root@titik [/usr/local/nagios/etc]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
root@titik [/usr/local/nagios/etc]# tail -f /var/log/messages
May 23 22:19:57 titik nrpe[3306]: Starting up daemon
May 23 22:19:57 titik nrpe[3306]: Network server bind failure (99: Cannot assign requested address)

Solusi :

edit /usr/local/nagios/etc/nrpe.conf
correct server_address

and try again

root@titik [/usr/local/nagios/etc]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
root@titik [/usr/local/nagios/etc]# tail -f /var/log/messages
May 23 22:40:53 titik nrpe[22116]: Starting up daemon
May 23 22:40:53 titik nrpe[22116]: Listening for connections on port 5666
May 23 22:40:53 titik nrpe[22116]: Allowing connections from: 64.233.187.99

Tags: , ,

Filed under:Error

Plesk Backup Process Error


Operating System : MS WIndows Server 2003 Standart Edition
Plesk Version : 7.5.6

The operation you were performing failed. You can retry the operation with or without changing its parameters. You may also want to report this problem to our support so that we could help you as soon as possible.

Backup process has failed for domain ‘titik.org’
Item has already been added. Key in dictionary: “username@domainametitik.org” Key being added: “username@domainnametitik.org”

———————- Debug Info ——————————-
0: C:\Program Files\SWsoft\Plesk\admin\htdocs\domains\backup\download.php:145 psaerror(string “Backup process has failed for domain ‘titik.org’
Item has already been added. Key in dictionary: “username@domainametitik.org” Key being added: “username@domainametitik.org”
“)

Solution :
Most probably this issue is related to Plesk database inconsistency. Try to login to MySQL and correct database recoreds in the following way:

Login to Mysql :
C:\Program Files\SWsoft\Plesk\Databases\MySQL\bin>mysql.exe -uadmin -p"pleskadminpasswd" -P8306 psa

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 816 to server version: 4.1.12-nt

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql>

This query should return a several records with the same value ‘mailname’. You should remove duplicate records manually:

mysql> SELECT * from psa.sa_conf where mailname like 'username@domainametitik.org';

+——+————————–+————-+—————-+————–
-+————-+
| id | mailname | flt_enabled | rw_subject_tag | hits_required
| spam_action |
+——+————————–+————-+—————-+————–
-+————-+
| 1471 | username@domainametitik.org | | *****SPAM***** | 7
| save |
| 1472 | username@domainametitik.org | | *****SPAM***** | 7
| save |
+——+————————–+————-+—————-+————–
-+————-+
2 rows in set (0.08 sec)

mysql> delete from psa.sa_conf where id = ‘1471′;
Query OK, 1 row affected (0.44 sec)

Do not forget to left the original record in this table as this is the only one that should not be erased

Tags: , , , ,

Filed under:Error