Rabu, 16 Februari 2011
photo editing straight from the web ?
install nagios
root@nmc-desktop:~/software# more install-nagios
724 apt-get install php5-gd
725 apt-get install gcc
726 apt-get install make
727 useradd -m nagios
728 sudo pass nagios
730 passwd nagios
731 groupadd nagios
732 usermod -G nagios nagios
733 groupadd nagcmd
734 usermod -a -G nagcmd nagios
735 usermod -a -G nagcmd www-data
737 wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.3.tar.gz
738 wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
739 ls
740 tar xvzf nagios-3.2.3.tar.gz
741 cd nagios-3.2.3
742 ./configure -with-command-group=nagcmd
743 make all
744 make install
745 make install-init
746 make install-config
747 make install-commandmode
748 nano /usr/local/nagios/etc/objects/contacts.cfg *edit email@anda.com
749 make install-webconf
750 htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
751 /etc/init.d/apache2 reload
752 cd ..
753 tar xvzf nagios-plugins-1.4.15.tar.gz
754 cd nagios-plugins-1.4.15
755 ./configure -with-nagios-user=nagios -with-nagios-group=nagios
756 make
757 make install
758 ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
759 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg *kalau xde error blh la start
760 /etc/init.d/nagios start
761 history
root@nmc-desktop:~/nagios-plugins-1.4.15#
WinMTR
MTR untuk windows :) . boleh didapati di portable apps plak tu .. senang tak payah install :D .
download di sini
Selasa, 15 Februari 2011
Sate Ikan
Bahan:
500 gr daging ikan tenggiri, cincang halus
10 lbr daun jeruk, iris halus
25 btg serai, ambil bagian putihnya
spices Haluskan:
6 bh cabai merah
4 siung bawang putih
10 bh bawang merah
4 cm ginger
3 cm kunyit
1 sdt ketumbar
2 btr hazelnut
1/2 sdt terasi shrimp paste
2 btg serai bagian putih, iris halus
1 sdt garam
Cara membuat:
1. Campur daging ikan dengan spices dengan rata dan halus, daun jeruk, adun rata.
2. Bentuk menjadi sebesar telur ayam, tusuk masing- masing dengan bonggol batang serai.
3. Bakarhingga matang dan harum.
monitor custom TCP port dalam nagios
depend pada cara korang setup nagios, korang kene carik nagis commands.cfg file. mcm aku nyer terletak di /etc/nagis/commands.cfg . ( ade gak orang yg setup di /usr/local/nagios/etc/objects)
gunakan command berikut
vi /etc/commands.cfg
paste seperti di bawah :-
pastu korang kene create service baru untuk host yang nak dimonitor.define command{
command_name check_tcp_2020
command_line $USER1$/check_tcp -h $HOSTADDRESS$ -p 2020 -4
}
vi /etc/nagios/hosts.cfg
kemudian paste bende ni
define host{
use generic-host ;type generic server kalau linux guna linux-host
host_name matahari ; nama server kawan aku
alias server ssh ; diskripsi server
address 192,168,1,1 ; server IP
}
pastu paste bawah ni kat services.cfg
define service{
use generic-service
host_name matahari
service_description 'check ssh port2020/tcp'
check_command check_tcp_2020
}
Verify config betul ke idak
# nagios3 -v /etc/nagios3/nagios.cfg
mcm kawan aku dia kene guna cmd ni
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
pastu korang akan dapat cam ni
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Processing object config file '/etc/nagios/hosts.cfg'...
Processing object config file '/etc/nagios/services.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 13 services.
Checking hosts...
Checked 4 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 26 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Kalau semua nya ok, boleh la restart nagios.
# /etc/init.d/nagios restart
settle.
Selasa, 8 Februari 2011
cool website
secara am, website ni membolehkan kebanyakkan software yang diperlukan selepas kita selesai "clean install". menariknya kita tidak perlu download program2 tersebut secara individu. melalui website ini, segalanya boleh di download sekali gus. memang best :D