Jump to content
Sign in to follow this  
asklinux

Nagios

Recommended Posts

contoh?tk faham jugak nih.provider mana kt malaysia yg tawarkan perkhidmatan nih?tak pun,kalau susah sgt,sy nk buat system ni anta email je lah kt admin.blh?sebabnya kalau kna subscribe ngan provider,kang kna byr lak.sy buat nih projek praktikal je kt uitm nih

Share this post


Link to post
Share on other sites

yup.. ndak kena subscribe ngan Maxis ker... ngan Celcom ker.. tak pun ngan SMS gateway cam www.mobile365.com.... stakat praktikal baik hantar email jerk but letak ler dalam documentation dimana dia boleh diupgradekan untuk hantar SMS ataupun dial out to MIS mobile phone (provided ngko ada IVR server / IVR Gateway)

Share this post


Link to post
Share on other sites

i ader masalah lain plak.i try to install nagios kt ubuntu 5.10.then bile ./configure nrpe,die kate no ssl.what that means arr?tk phm lerr.boleh citer kan apa2 yg perlu utk mskkn nagios ni ke ubuntu 5.10 nih

Share this post


Link to post
Share on other sites

Ni untuk ubuntu 6.06:

System Requirements:

Apache2

GD Library

Nagios (currently 2.6 as of 12/28/06)

Nagios Plugins (currently 1.4.5 as of 12/28/06)

Basic Compilers

p/s: untuk ubuntu 5.10 aku tak tau la..Klik Here

Edited by Firestarter

Share this post


Link to post
Share on other sites

nih yg nrpe-2.6

root@NAGBOX:/home/ash# cd nrpe-2.6

root@NAGBOX:/home/ash/nrpe-2.6# ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking whether make sets $(MAKE)... yes

checking how to run the C preprocessor... gcc -E

checking for egrep... grep -E

checking for ANSI C header files... yes

checking whether time.h and sys/time.h may both be included... yes

checking for sys/wait.h that is POSIX.1 compatible... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking ctype.h usability... yes

checking ctype.h presence... yes

checking for ctype.h... yes

checking dirent.h usability... yes

checking dirent.h presence... yes

checking for dirent.h... yes

checking errno.h usability... yes

checking errno.h presence... yes

checking for errno.h... yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking getopt.h usability... yes

checking getopt.h presence... yes

checking for getopt.h... yes

checking grp.h usability... yes

checking grp.h presence... yes

checking for grp.h... yes

checking for inttypes.h... (cached) yes

checking netdb.h usability... yes

checking netdb.h presence... yes

checking for netdb.h... yes

checking pwd.h usability... yes

checking pwd.h presence... yes

checking for pwd.h... yes

checking signal.h usability... yes

checking signal.h presence... yes

checking for signal.h... yes

checking for stdint.h... (cached) yes

checking for strings.h... (cached) yes

checking for string.h... (cached) yes

checking syslog.h usability... yes

checking syslog.h presence... yes

checking for syslog.h... yes

checking tcpd.h usability... no

checking tcpd.h presence... no

checking for tcpd.h... no

checking for unistd.h... (cached) yes

checking arpa/inet.h usability... yes

checking arpa/inet.h presence... yes

checking for arpa/inet.h... yes

checking netinet/in.h usability... yes

checking netinet/in.h presence... yes

checking for netinet/in.h... yes

checking socket.h usability... no

checking socket.h presence... no

checking for socket.h... no

checking for sys/types.h... (cached) yes

checking sys/time.h usability... yes

checking sys/time.h presence... yes

checking for sys/time.h... yes

checking sys/resource.h usability... yes

checking sys/resource.h presence... yes

checking for sys/resource.h... yes

checking for sys/wait.h... (cached) yes

checking sys/socket.h usability... yes

checking sys/socket.h presence... yes

checking for sys/socket.h... yes

checking for sys/stat.h... (cached) yes

checking for an ANSI C-conforming const... yes

checking whether struct tm is in sys/time.h or time.h... time.h

checking for mode_t... yes

checking for pid_t... yes

checking for size_t... yes

checking return type of signal handlers... void

checking for uid_t in sys/types.h... yes

checking type of array argument to getgroups... gid_t

checking for int... yes

checking size of int... 4

checking for short... yes

checking size of short... 2

checking for long... yes

checking size of long... 4

checking for uint32_t... yes

checking for u_int32_t... yes

checking for int32_t... yes

checking for getopt_long... yes

checking for main in -lnsl... yes

checking for socket in -lsocket... no

checking for main in -lwrap... no

checking for strdup... yes

checking for strstr... yes

checking for strtoul... yes

checking for initgroups... yes

checking for closesocket... no

checking for socklen_t... yes

checking for type of socket size... size_t

checking for SSL... configure: error: Cannot find ssl libraries

root@NAGBOX:/home/ash/nrpe-2.6#

Share this post


Link to post
Share on other sites

nih yg kt nagios-plugins-1.4.6

root@NAGBOX:/home/ash/nagios-plugins-1.4.6# make && make install

make all-recursive

make[1]: Entering directory `/home/ash/nagios-plugins-1.4.6'

Making all in gl

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/gl'

make all-am

make[3]: Entering directory `/home/ash/nagios-plugins-1.4.6/gl'

make[3]: Nothing to be done for `all-am'.

make[3]: Leaving directory `/home/ash/nagios-plugins-1.4.6/gl'

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/gl'

Making all in lib

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib'

Making all in tests

make[3]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib/tests'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib/tests'

make[3]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib'

make[3]: Nothing to be done for `all-am'.

make[3]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib'

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib'

Making all in plugins

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins'

Making all in plugins-scripts

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins-scripts'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins-scripts'

Making all in plugins-root

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins-root'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins-root'

Making all in po

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/po'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/po'

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6'

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6'

make[1]: Leaving directory `/home/ash/nagios-plugins-1.4.6'

Making install in gl

make[1]: Entering directory `/home/ash/nagios-plugins-1.4.6/gl'

make install-am

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/gl'

make[3]: Entering directory `/home/ash/nagios-plugins-1.4.6/gl'

make[3]: Nothing to be done for `install-exec-am'.

make[3]: Nothing to be done for `install-data-am'.

make[3]: Leaving directory `/home/ash/nagios-plugins-1.4.6/gl'

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/gl'

make[1]: Leaving directory `/home/ash/nagios-plugins-1.4.6/gl'

Making install in lib

make[1]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib'

Making install in tests

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib/tests'

make[3]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib/tests'

make[3]: Nothing to be done for `install-exec-am'.

make[3]: Nothing to be done for `install-data-am'.

make[3]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib/tests'

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib/tests'

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib'

make[3]: Entering directory `/home/ash/nagios-plugins-1.4.6/lib'

make[3]: Nothing to be done for `install-exec-am'.

make[3]: Nothing to be done for `install-data-am'.

make[3]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib'

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib'

make[1]: Leaving directory `/home/ash/nagios-plugins-1.4.6/lib'

Making install in plugins

make[1]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins'

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins'

test -z "/usr/local/nagios/libexec" || mkdir -p -- "/usr/local/nagios/libexec"

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_apt' '/usr/local/nagios/libexec/check_apt'

/usr/bin/install -c check_apt /usr/local/nagios/libexec/check_apt

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_disk' '/usr/local/nagios/libexec/check_disk'

/usr/bin/install -c check_disk /usr/local/nagios/libexec/check_disk

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_dummy' '/usr/local/nagios/libexec/check_dummy'

/usr/bin/install -c check_dummy /usr/local/nagios/libexec/check_dummy

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_http' '/usr/local/nagios/libexec/check_http'

/usr/bin/install -c check_http /usr/local/nagios/libexec/check_http

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_load' '/usr/local/nagios/libexec/check_load'

/usr/bin/install -c check_load /usr/local/nagios/libexec/check_load

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_mrtg' '/usr/local/nagios/libexec/check_mrtg'

/usr/bin/install -c check_mrtg /usr/local/nagios/libexec/check_mrtg

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_mrtgtraf' '/usr/local/nagios/libexec/check_mrtgtraf'

/usr/bin/install -c check_mrtgtraf /usr/local/nagios/libexec/check_mrtgtraf

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_ntp' '/usr/local/nagios/libexec/check_ntp'

/usr/bin/install -c check_ntp /usr/local/nagios/libexec/check_ntp

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_nwstat' '/usr/local/nagios/libexec/check_nwstat'

/usr/bin/install -c check_nwstat /usr/local/nagios/libexec/check_nwstat

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_overcr' '/usr/local/nagios/libexec/check_overcr'

/usr/bin/install -c check_overcr /usr/local/nagios/libexec/check_overcr

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_ping' '/usr/local/nagios/libexec/check_ping'

/usr/bin/install -c check_ping /usr/local/nagios/libexec/check_ping

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_real' '/usr/local/nagios/libexec/check_real'

/usr/bin/install -c check_real /usr/local/nagios/libexec/check_real

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_smtp' '/usr/local/nagios/libexec/check_smtp'

/usr/bin/install -c check_smtp /usr/local/nagios/libexec/check_smtp

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_ssh' '/usr/local/nagios/libexec/check_ssh'

/usr/bin/install -c check_ssh /usr/local/nagios/libexec/check_ssh

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_tcp' '/usr/local/nagios/libexec/check_tcp'

/usr/bin/install -c check_tcp /usr/local/nagios/libexec/check_tcp

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_time' '/usr/local/nagios/libexec/check_time'

/usr/bin/install -c check_time /usr/local/nagios/libexec/check_time

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_ups' '/usr/local/nagios/libexec/check_ups'

/usr/bin/install -c check_ups /usr/local/nagios/libexec/check_ups

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_users' '/usr/local/nagios/libexec/check_users'

/usr/bin/install -c check_users /usr/local/nagios/libexec/check_users

/bin/sh ../libtool --mode=install /usr/bin/install -c 'negate' '/usr/local/nagios/libexec/negate'

/usr/bin/install -c negate /usr/local/nagios/libexec/negate

/bin/sh ../libtool --mode=install /usr/bin/install -c 'urlize' '/usr/local/nagios/libexec/urlize'

/usr/bin/install -c urlize /usr/local/nagios/libexec/urlize

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_procs' '/usr/local/nagios/libexec/check_procs'

/usr/bin/install -c check_procs /usr/local/nagios/libexec/check_procs

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_nagios' '/usr/local/nagios/libexec/check_nagios'

/usr/bin/install -c check_nagios /usr/local/nagios/libexec/check_nagios

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_dns' '/usr/local/nagios/libexec/check_dns'

/usr/bin/install -c check_dns /usr/local/nagios/libexec/check_dns

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_fping' '/usr/local/nagios/libexec/check_fping'

/usr/bin/install -c check_fping /usr/local/nagios/libexec/check_fping

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_by_ssh' '/usr/local/nagios/libexec/check_by_ssh'

/usr/bin/install -c check_by_ssh /usr/local/nagios/libexec/check_by_ssh

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_swap' '/usr/local/nagios/libexec/check_swap'

/usr/bin/install -c check_swap /usr/local/nagios/libexec/check_swap

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_dig' '/usr/local/nagios/libexec/check_dig'

/usr/bin/install -c check_dig /usr/local/nagios/libexec/check_dig

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_apt' '/usr/local/nagios/libexec/check_apt'

/usr/bin/install -c check_apt /usr/local/nagios/libexec/check_apt

/bin/sh ../libtool --mode=install /usr/bin/install -c 'check_nt' '/usr/local/nagios/libexec/check_nt'

/usr/bin/install -c check_nt /usr/local/nagios/libexec/check_nt

make install-exec-hook

make[3]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins'

cd /usr/local/nagios/libexec && \

for i in check_ftp check_imap check_nntp check_pop check_udp check_clamd ; do rm -f $i; ln -s check_tcp $i ; done ;\

if [ -x check_ldap ] ; then rm -f check_ldaps ; ln -s check_ldap check_ldaps ; fi

make[3]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins'

make[2]: Nothing to be done for `install-data-am'.

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins'

make[1]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins'

Making install in plugins-scripts

make[1]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins-scripts'

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins-scripts'

test -z "/usr/local/nagios/libexec" || mkdir -p -- "/usr/local/nagios/libexec"

/usr/bin/install -c 'check_breeze' '/usr/local/nagios/libexec/check_breeze'

/usr/bin/install -c 'check_disk_smb' '/usr/local/nagios/libexec/check_disk_smb'

/usr/bin/install -c 'check_flexlm' '/usr/local/nagios/libexec/check_flexlm'

/usr/bin/install -c 'check_ircd' '/usr/local/nagios/libexec/check_ircd'

/usr/bin/install -c 'check_log' '/usr/local/nagios/libexec/check_log'

/usr/bin/install -c 'check_oracle' '/usr/local/nagios/libexec/check_oracle'

/usr/bin/install -c 'check_rpc' '/usr/local/nagios/libexec/check_rpc'

/usr/bin/install -c 'check_sensors' '/usr/local/nagios/libexec/check_sensors'

/usr/bin/install -c 'check_wave' '/usr/local/nagios/libexec/check_wave'

/usr/bin/install -c 'check_ifstatus' '/usr/local/nagios/libexec/check_ifstatus'

/usr/bin/install -c 'check_ifoperstatus' '/usr/local/nagios/libexec/check_ifoperstatus'

/usr/bin/install -c 'check_mailq' '/usr/local/nagios/libexec/check_mailq'

/usr/bin/install -c 'check_file_age' '/usr/local/nagios/libexec/check_file_age'

/usr/bin/install -c 'utils.sh' '/usr/local/nagios/libexec/utils.sh'

/usr/bin/install -c 'utils.pm' '/usr/local/nagios/libexec/utils.pm'

make[2]: Nothing to be done for `install-data-am'.

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins-scripts'

make[1]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins-scripts'

Making install in plugins-root

make[1]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins-root'

make[2]: Entering directory `/home/ash/nagios-plugins-1.4.6/plugins-root'

/usr/bin/install -c check_dhcp /usr/local/nagios/libexec/check_dhcp

chown root /usr/local/nagios/libexec/check_dhcp

chmod 4550 /usr/local/nagios/libexec/check_dhcp

/usr/bin/install -c check_icmp /usr/local/nagios/libexec/check_icmp

chown root /usr/local/nagios/libexec/check_icmp

chmod 4550 /usr/local/nagios/libexec/check_icmp

make[2]: Nothing to be done for `install-data-am'.

make[2]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins-root'

make[1]: Leaving directory `/home/ash/nagios-plugins-1.4.6/plugins-root'

Making install in po

make[1]: Entering directory `/home/ash/nagios-plugins-1.4.6/po'

/bin/sh @MKINSTALLDIRS@ /usr/local/nagios/share

/bin/sh: @MKINSTALLDIRS@: No such file or directory

make[1]: *** [install-data-yes] Error 127

make[1]: Leaving directory `/home/ash/nagios-plugins-1.4.6/po'

make: *** [install-recursive] Error 1

root@NAGBOX:/home/ash/nagios-plugins-1.4.6#

Share this post


Link to post
Share on other sites

nih error kt gd-2.0.33

root@NAGBOX:/home/ash/gd-2.0.33# make && make install

make all-recursive

make[1]: Entering directory `/home/ash/gd-2.0.33'

Making all in config

make[2]: Entering directory `/home/ash/gd-2.0.33/config'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/ash/gd-2.0.33/config'

Making all in test

make[2]: Entering directory `/home/ash/gd-2.0.33/test'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/ash/gd-2.0.33/test'

make[2]: Entering directory `/home/ash/gd-2.0.33'

/bin/sh ./libtool --mode=link gcc -g -O2 -o gdparttopng gdparttopng.o ./libgd.la -lm

gcc -g -O2 -o .libs/gdparttopng gdparttopng.o ./.libs/libgd.so -lm -Wl,--rpath -Wl,/usr/local/lib

gdparttopng.o: In function `main':

/home/ash/gd-2.0.33/gdparttopng.c:42: undefined reference to `gdImageCreateFromGd2Part'

collect2: ld returned 1 exit status

make[2]: *** [gdparttopng] Error 1

make[2]: Leaving directory `/home/ash/gd-2.0.33'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/ash/gd-2.0.33'

make: *** [all] Error 2

root@NAGBOX:/home/ash/gd-2.0.33#

Share this post


Link to post
Share on other sites

awak pnah install kt ubuntu 5.10 tak?mslh nih sy dpt sebab install kt ubuntu5.10.nak update,tp keadaan tenet umah tak mengizinkan.tujuan sy ialah nk install kt linux2 yg sy ada.kwn sy kate keje tkde pekdah,tp tatau nape sy buat gak.salah ke ek...tadi sy tanye kwn satu ofis ngan mslh2 nih,tp dia tatau nk jwb,so die mcm mrh2.huuhuuu...takutnyee(kecik ati siottt).

kesimpulannya sy patut cr cd ubuntu yg latest atau ada package yg patut di cari?dr error tuh,mcm mslh ssl.tp sy pun tatau mana nak cr ssl tuh.kwn kt ym ader bg satu links pasal tuh,tp still tk jalan.

Share this post


Link to post
Share on other sites

better install Ubuntu version baru (6.10), dan nak senang guna package manager utk download sume compiler2 tuh, tapi kalo pakai yg 5.10 pun boleh jugak, but pasti kan sume compiler tu da di install sebelum install nagios, kalao x error seperti diatas akan berlaku.

Share this post


Link to post
Share on other sites

huiyo, rajin ko install from source ye.

biasakan la guna make clean sebelum run balik ./configure tu.

gd - kene tengok betul2 output ./configure tu. mungkin ade pkg2 yg diperlukan tapi tak ada. cth. png, jpeg, zlib.

nrpe - mungkin perlukan pakej openssl

nagio-plugins - abaikan je. sume plugin dah install tu, tinggal po je. kalau nak jugak guna option ni

make clean && ./configure --disable-nls

Share this post


Link to post
Share on other sites

aku dah add host.aku dh install nsclient kt windows yg aku nk monitor tuh.check disk blh,tp ping je yg tk blh.service lain ok,ijau je.pastu satu lg mslh ngan email notificatian.tkder ke tutorial utk setting nagios nih send email kt aku.plizz

Share this post


Link to post
Share on other sites

ping - cuba login kat server nagios tu, dan ping dari situ? boleh ke tidak?

email notification - edit /usr/local/nagios/etc/contacts.cfg <-- masukkan/ganti alamat e-mail kau dlm ni (comma seperated)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...