Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1728372
  • 博文数量: 163
  • 博客积分: 10591
  • 博客等级: 上将
  • 技术积分: 1980
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-08 18:17
文章分类

全部博文(163)

文章存档

2018年(1)

2012年(1)

2011年(47)

2010年(58)

2009年(21)

2008年(35)

分类:

2011-05-31 14:13:16

     Solaris 8 nagios客户端部署手册

一、 首先创建用户

#mkdir /usr/local/nagios
#groupadd nagios
#useradd -g nagios -d /usr/local/nagios -s /bin/false nagios
#chmod 755 /usr/local/nagios
#chown nagios:nagios /usr/local/nagios

二、 安装nagios客户端 (此方法不用)

#gzip -d nagios-plugins-1.3.1_3-sol8-sparc-local.gz
#pkgadd -d ./nagios-plugins-1.3.1_3-sol8-sparc-local
The following packages are available:
  1  UVTngsplg     nagios-plugins
                   (all) 1.3.1_3

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

nagios-plugins
(all) 1.3.1_3
Ethan Galstad, Karl DeBisschop e.a. on SourceForge
Using as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing nagios-plugins as

## Installing part 1 of 1.
/usr/local/lib/nagios/plugins/check_breeze
/usr/local/lib/nagios/plugins/check_by_ssh
/usr/local/lib/nagios/plugins/check_disk
/usr/local/lib/nagios/plugins/check_disk_smb
/usr/local/lib/nagios/plugins/check_dns
/usr/local/lib/nagios/plugins/check_dummy
/usr/local/lib/nagios/plugins/check_flexlm
/usr/local/lib/nagios/plugins/check_http
/usr/local/lib/nagios/plugins/check_ifoperstatus
/usr/local/lib/nagios/plugins/check_ifstatus
/usr/local/lib/nagios/plugins/check_ircd
/usr/local/lib/nagios/plugins/check_load
/usr/local/lib/nagios/plugins/check_log
/usr/local/lib/nagios/plugins/check_mailq
/usr/local/lib/nagios/plugins/check_mrtg
/usr/local/lib/nagios/plugins/check_mrtgtraf
/usr/local/lib/nagios/plugins/check_nagios
/usr/local/lib/nagios/plugins/check_nt
/usr/local/lib/nagios/plugins/check_ntp
/usr/local/lib/nagios/plugins/check_nwstat
/usr/local/lib/nagios/plugins/check_oracle
/usr/local/lib/nagios/plugins/check_overcr
/usr/local/lib/nagios/plugins/check_ping
/usr/local/lib/nagios/plugins/check_procs
/usr/local/lib/nagios/plugins/check_real
/usr/local/lib/nagios/plugins/check_rpc
/usr/local/lib/nagios/plugins/check_sensors
/usr/local/lib/nagios/plugins/check_smtp
/usr/local/lib/nagios/plugins/check_ssh
/usr/local/lib/nagios/plugins/check_swap
/usr/local/lib/nagios/plugins/check_tcp
/usr/local/lib/nagios/plugins/check_time
/usr/local/lib/nagios/plugins/check_udp
/usr/local/lib/nagios/plugins/check_ups
/usr/local/lib/nagios/plugins/check_users
/usr/local/lib/nagios/plugins/check_vsz
/usr/local/lib/nagios/plugins/check_wave
/usr/local/lib/nagios/plugins/negate
/usr/local/lib/nagios/plugins/urlize
/usr/local/lib/nagios/plugins/utils.pm
/usr/local/lib/nagios/plugins/utils.sh
/usr/local/share/doc/nagios-plugins/AUTHORS
/usr/local/share/doc/nagios-plugins/COPYING
/usr/local/share/doc/nagios-plugins/ChangeLog
/usr/local/share/doc/nagios-plugins/FAQ
/usr/local/share/doc/nagios-plugins/LEGAL
/usr/local/share/doc/nagios-plugins/NEWS
/usr/local/share/doc/nagios-plugins/README
/usr/local/share/doc/nagios-plugins/SUPPORT
/usr/local/share/doc/nagios-plugins/examples/command.cfg
[ verifying class ]

Installation of was successful.


#pkgadd -d ./nrpe-1.9_5-sol8-sparc-local.gz
The following packages are available:
  1  UVTnrpe     nrpe
                 (all) 1.9_5

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

nrpe
(all) 1.9_5
Ethan Galstad, Nagios
Using as the package base directory.
## Processing package information.
## Processing system information.
   2 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of [y,n,?] y

Installing nrpe as

## Executing preinstall script.
## Installing part 1 of 1.
/etc/init.d/nrpe
/etc/rc0.d/K20nrpe
/etc/rc1.d/K20nrpe
/etc/rc2.d/S20nrpe
/etc/rc3.d/S20nrpe
/etc/rcS.d/K20nrpe
/usr/local/lib/nagios/plugins/check_nrpe
/usr/local/sbin/nrpe
/usr/local/sbin
/usr/local/share/doc/nrpe/Changelog
/usr/local/share/doc/nrpe/LEGAL
/usr/local/share/doc/nrpe/README
/usr/local/share/doc/nrpe/README.Solaris
/usr/local/share/doc/nrpe/examples/nrpe.cfg
/usr/local/share/doc/nrpe/examples
[ verifying class ]
## Executing postinstall script.
No file /usr/local/etc/nrpe.cfg present, not starting nrpe daemon. See /usr/local/share/doc/nrpe/examples/nrpe.cfg for sample config file.

Installation of was successful.

cp /usr/local/share/doc/nrpe/examples/nrpe.cfg /usr/local/nagios/nrpe.cfg
#vi /usr/local/nagos/nrpe.cfg
 allowed_hosts=127.0.0.1,10.1.37.238
 command[check_users]=/usr/local/lib/nagios/plugins/check_users -w 5 -c 10
 command[check_load]=/usr/local/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
 command[check_disk1]=/usr/local/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/hda1
 command[check_disk2]=/usr/local/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/hdb1
 command[check_zombie_procs]=/usr/local/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
 command[check_total_procs]=/usr/local/lib/nagios/plugins/check_procs -w 150 -c 200 

#/usr/local/sbin/nrpe -c /usr/local/nagios/nrpe.cfg -d


三、 配置snmp的方法(采用此种方法)

(1) 打112438-3补丁

首先确保系统已经打过这个补丁,如果没有打可以按照如下方式来做:
  # patchadd 112438-01
  # mknod /devices/pseudo/random at 0:random c 82 0
   # mknod /devices/pseudo/random at 0:urandom c 82 1
   # chgrp sys /devices/pseudo/random*
  # cd /dev
  # ln -s ../devices/pseudo/random at 0:random /dev/random
  # ln -s ../devices/pseudo/random at 0:urandom /dev/urandom
  # modload /kernel/drv/random

注:如何查看当前系统是否打过这个补丁,我是通过查看/devices/pseudo/目录下是否有和文件来判断的。

(2) 安装openssl

这里我们安装下面的包,可以去这里下载
gcc-3.4.6-sol8-sparc-local.gz
zlib-1.2.4-sol8-sparc-local.gz
openssl-1.0.0-sol8-sparc-local.gz
netsnmp-5.4.2.1-sol8-sparc-local.gz

# gzip -d gcc-3.4.6-sol8-sparc-local.gz
# gzip -d zlib-1.2.4-sol8-sparc-local.gz
# gzip -d openssl-1.0.0-sol8-sparc-local.gz
# gzip -d netsnmp-5.4.2.1-sol8-sparc-local.gz


# pkgadd -d ./gcc-3.4.6-sol8-sparc-local

The following packages are available:
  1  SMCgcc     gcc
                (sparc) 3.4.6

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

gcc
(sparc) 3.4.6
FSF
Using as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
* /usr/local/bin
* /usr/local/lib
* /usr/local/share

* - conflict with a file which does not belong to any package.

Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.

Installing gcc as

## Installing part 1 of 1.
/usr/local/bin/c++
/usr/local/bin/cpp
/usr/local/bin/g++
/usr/local/bin/g77
/usr/local/bin/gcc
/usr/local/bin/gccbug
/usr/local/bin/gcov
/usr/local/bin/sparc-sun-solaris2.8-c++
/usr/local/bin/sparc-sun-solaris2.8-g++
/usr/local/bin/sparc-sun-solaris2.8-gcc
/usr/local/bin/sparc-sun-solaris2.8-gcc-3.4.6
/usr/local/doc/gcc/ABOUT-NLS
/usr/local/doc/gcc/BUGS
/usr/local/doc/gcc/COPYING
/usr/local/doc/gcc/COPYING.LIB
/usr/local/doc/gcc/ChangeLog
/usr/local/doc/gcc/FAQ
/usr/local/doc/gcc/INSTALL/README
/usr/local/doc/gcc/INSTALL/binaries.html
/usr/local/doc/gcc/INSTALL/build.html
/usr/local/doc/gcc/INSTALL/configure.html
/usr/local/doc/gcc/INSTALL/download.html
/usr/local/doc/gcc/INSTALL/finalinstall.html
/usr/local/doc/gcc/INSTALL/gfdl.html
/usr/local/doc/gcc/INSTALL/index.html
/usr/local/doc/gcc/INSTALL/old.html
/usr/local/doc/gcc/INSTALL/prerequisites.html
/usr/local/doc/gcc/INSTALL/specific.html
/usr/local/doc/gcc/INSTALL/test.html
/usr/local/doc/gcc/LAST_UPDATED
/usr/local/doc/gcc/MAINTAINERS
/usr/local/doc/gcc/MD5SUMS
/usr/local/doc/gcc/NEWS
/usr/local/doc/gcc/README
/usr/local/doc/gcc/README.SCO
/usr/local/doc/gcc/bugs.html
/usr/local/doc/gcc/faq.html
/usr/local/include/c++/3.4.6/algorithm
/usr/local/include/c++/3.4.6/backward/algo.h
/usr/local/include/c++/3.4.6/backward/algobase.h
/usr/local/include/c++/3.4.6/backward/alloc.h
/usr/local/include/c++/3.4.6/backward/backward_warning.h
/usr/local/include/c++/3.4.6/backward/bvector.h
/usr/local/include/c++/3.4.6/backward/complex.h
/usr/local/include/c++/3.4.6/backward/defalloc.h
/usr/local/include/c++/3.4.6/backward/deque.h
/usr/local/include/c++/3.4.6/backward/fstream.h
/usr/local/include/c++/3.4.6/backward/function.h
/usr/local/include/c++/3.4.6/backward/hash_map.h
/usr/local/include/c++/3.4.6/backward/hash_set.h
/usr/local/include/c++/3.4.6/backward/hashtable.h
/usr/local/include/c++/3.4.6/backward/heap.h
/usr/local/include/c++/3.4.6/backward/iomanip.h
/usr/local/include/c++/3.4.6/backward/iostream.h
/usr/local/include/c++/3.4.6/backward/istream.h
/usr/local/include/c++/3.4.6/backward/iterator.h
/usr/local/include/c++/3.4.6/backward/list.h
/usr/local/include/c++/3.4.6/backward/map.h
/usr/local/include/c++/3.4.6/backward/multimap.h
/usr/local/include/c++/3.4.6/backward/multiset.h
/usr/local/include/c++/3.4.6/backward/new.h
/usr/local/include/c++/3.4.6/backward/ostream.h
/usr/local/include/c++/3.4.6/backward/pair.h
/usr/local/include/c++/3.4.6/backward/queue.h
/usr/local/include/c++/3.4.6/backward/rope.h
/usr/local/include/c++/3.4.6/backward/set.h
/usr/local/include/c++/3.4.6/backward/slist.h
/usr/local/include/c++/3.4.6/backward/stack.h
/usr/local/include/c++/3.4.6/backward/stream.h
/usr/local/include/c++/3.4.6/backward/streambuf.h
/usr/local/include/c++/3.4.6/backward/strstream
/usr/local/include/c++/3.4.6/backward/tempbuf.h
/usr/local/include/c++/3.4.6/backward/tree.h
/usr/local/include/c++/3.4.6/backward/vector.h
/usr/local/include/c++/3.4.6/bits/allocator.h
/usr/local/include/c++/3.4.6/bits/atomicity.h
/usr/local/include/c++/3.4.6/bits/basic_ios.h
/usr/local/include/c++/3.4.6/bits/basic_ios.tcc
/usr/local/include/c++/3.4.6/bits/basic_string.h
/usr/local/include/c++/3.4.6/bits/basic_string.tcc
/usr/local/include/c++/3.4.6/bits/boost_concept_check.h
/usr/local/include/c++/3.4.6/bits/char_traits.h
/usr/local/include/c++/3.4.6/bits/cmath.tcc
/usr/local/include/c++/3.4.6/bits/codecvt.h
/usr/local/include/c++/3.4.6/bits/concept_check.h
/usr/local/include/c++/3.4.6/bits/concurrence.h
/usr/local/include/c++/3.4.6/bits/cpp_type_traits.h
/usr/local/include/c++/3.4.6/bits/deque.tcc
/usr/local/include/c++/3.4.6/bits/fstream.tcc
/usr/local/include/c++/3.4.6/bits/functexcept.h
/usr/local/include/c++/3.4.6/bits/gslice.h
/usr/local/include/c++/3.4.6/bits/gslice_array.h
/usr/local/include/c++/3.4.6/bits/indirect_array.h
/usr/local/include/c++/3.4.6/bits/ios_base.h
/usr/local/include/c++/3.4.6/bits/istream.tcc
/usr/local/include/c++/3.4.6/bits/list.tcc
/usr/local/include/c++/3.4.6/bits/locale_classes.h
/usr/local/include/c++/3.4.6/bits/locale_facets.h
/usr/local/include/c++/3.4.6/bits/locale_facets.tcc
/usr/local/include/c++/3.4.6/bits/localefwd.h
/usr/local/include/c++/3.4.6/bits/mask_array.h
/usr/local/include/c++/3.4.6/bits/ostream.tcc
/usr/local/include/c++/3.4.6/bits/postypes.h
/usr/local/include/c++/3.4.6/bits/slice_array.h
/usr/local/include/c++/3.4.6/bits/sstream.tcc
/usr/local/include/c++/3.4.6/bits/stl_algo.h
/usr/local/include/c++/3.4.6/bits/stl_algobase.h
/usr/local/include/c++/3.4.6/bits/stl_bvector.h
/usr/local/include/c++/3.4.6/bits/stl_construct.h
/usr/local/include/c++/3.4.6/bits/stl_deque.h
/usr/local/include/c++/3.4.6/bits/stl_function.h
/usr/local/include/c++/3.4.6/bits/stl_heap.h
/usr/local/include/c++/3.4.6/bits/stl_iterator.h
/usr/local/include/c++/3.4.6/bits/stl_iterator_base_funcs.h
/usr/local/include/c++/3.4.6/bits/stl_iterator_base_types.h
/usr/local/include/c++/3.4.6/bits/stl_list.h
/usr/local/include/c++/3.4.6/bits/stl_map.h
/usr/local/include/c++/3.4.6/bits/stl_multimap.h
/usr/local/include/c++/3.4.6/bits/stl_multiset.h
/usr/local/include/c++/3.4.6/bits/stl_numeric.h
/usr/local/include/c++/3.4.6/bits/stl_pair.h
/usr/local/include/c++/3.4.6/bits/stl_queue.h
/usr/local/include/c++/3.4.6/bits/stl_raw_storage_iter.h
/usr/local/include/c++/3.4.6/bits/stl_relops.h
/usr/local/include/c++/3.4.6/bits/stl_set.h
/usr/local/include/c++/3.4.6/bits/stl_stack.h
/usr/local/include/c++/3.4.6/bits/stl_tempbuf.h
/usr/local/include/c++/3.4.6/bits/stl_threads.h
/usr/local/include/c++/3.4.6/bits/stl_tree.h
/usr/local/include/c++/3.4.6/bits/stl_uninitialized.h
/usr/local/include/c++/3.4.6/bits/stl_vector.h
/usr/local/include/c++/3.4.6/bits/stream_iterator.h
/usr/local/include/c++/3.4.6/bits/streambuf.tcc
/usr/local/include/c++/3.4.6/bits/streambuf_iterator.h
/usr/local/include/c++/3.4.6/bits/stringfwd.h
/usr/local/include/c++/3.4.6/bits/type_traits.h
/usr/local/include/c++/3.4.6/bits/valarray_after.h
/usr/local/include/c++/3.4.6/bits/valarray_array.h
/usr/local/include/c++/3.4.6/bits/valarray_array.tcc
/usr/local/include/c++/3.4.6/bits/valarray_before.h
/usr/local/include/c++/3.4.6/bits/vector.tcc
/usr/local/include/c++/3.4.6/bitset
/usr/local/include/c++/3.4.6/cassert
/usr/local/include/c++/3.4.6/cctype
/usr/local/include/c++/3.4.6/cerrno
/usr/local/include/c++/3.4.6/cfloat
/usr/local/include/c++/3.4.6/ciso646
/usr/local/include/c++/3.4.6/climits
/usr/local/include/c++/3.4.6/clocale
/usr/local/include/c++/3.4.6/cmath
/usr/local/include/c++/3.4.6/complex
/usr/local/include/c++/3.4.6/csetjmp
/usr/local/include/c++/3.4.6/csignal
/usr/local/include/c++/3.4.6/cstdarg
/usr/local/include/c++/3.4.6/cstddef
/usr/local/include/c++/3.4.6/cstdio
/usr/local/include/c++/3.4.6/cstdlib
/usr/local/include/c++/3.4.6/cstring
/usr/local/include/c++/3.4.6/ctime
/usr/local/include/c++/3.4.6/cwchar
/usr/local/include/c++/3.4.6/cwctype
/usr/local/include/c++/3.4.6/cxxabi.h
/usr/local/include/c++/3.4.6/debug/bitset
/usr/local/include/c++/3.4.6/debug/debug.h
/usr/local/include/c++/3.4.6/debug/deque
/usr/local/include/c++/3.4.6/debug/formatter.h
/usr/local/include/c++/3.4.6/debug/hash_map
/usr/local/include/c++/3.4.6/debug/hash_map.h
/usr/local/include/c++/3.4.6/debug/hash_multimap.h
/usr/local/include/c++/3.4.6/debug/hash_multiset.h
/usr/local/include/c++/3.4.6/debug/hash_set
/usr/local/include/c++/3.4.6/debug/hash_set.h
/usr/local/include/c++/3.4.6/debug/list
/usr/local/include/c++/3.4.6/debug/map
/usr/local/include/c++/3.4.6/debug/map.h
/usr/local/include/c++/3.4.6/debug/multimap.h
/usr/local/include/c++/3.4.6/debug/multiset.h
/usr/local/include/c++/3.4.6/debug/safe_base.h
/usr/local/include/c++/3.4.6/debug/safe_iterator.h
/usr/local/include/c++/3.4.6/debug/safe_iterator.tcc
/usr/local/include/c++/3.4.6/debug/safe_sequence.h
/usr/local/include/c++/3.4.6/debug/set
/usr/local/include/c++/3.4.6/debug/set.h
/usr/local/include/c++/3.4.6/debug/string
/usr/local/include/c++/3.4.6/debug/vector
/usr/local/include/c++/3.4.6/deque
/usr/local/include/c++/3.4.6/exception
/usr/local/include/c++/3.4.6/exception_defines.h
/usr/local/include/c++/3.4.6/ext/algorithm
/usr/local/include/c++/3.4.6/ext/bitmap_allocator.h
/usr/local/include/c++/3.4.6/ext/debug_allocator.h
/usr/local/include/c++/3.4.6/ext/enc_filebuf.h
/usr/local/include/c++/3.4.6/ext/functional
/usr/local/include/c++/3.4.6/ext/hash_fun.h
/usr/local/include/c++/3.4.6/ext/hash_map
/usr/local/include/c++/3.4.6/ext/hash_set
/usr/local/include/c++/3.4.6/ext/hashtable.h
/usr/local/include/c++/3.4.6/ext/iterator
/usr/local/include/c++/3.4.6/ext/malloc_allocator.h
/usr/local/include/c++/3.4.6/ext/memory
/usr/local/include/c++/3.4.6/ext/mt_allocator.h
/usr/local/include/c++/3.4.6/ext/new_allocator.h
/usr/local/include/c++/3.4.6/ext/numeric
/usr/local/include/c++/3.4.6/ext/pod_char_traits.h
/usr/local/include/c++/3.4.6/ext/pool_allocator.h
/usr/local/include/c++/3.4.6/ext/rb_tree
/usr/local/include/c++/3.4.6/ext/rope
/usr/local/include/c++/3.4.6/ext/ropeimpl.h
/usr/local/include/c++/3.4.6/ext/slist
/usr/local/include/c++/3.4.6/ext/stdio_filebuf.h
/usr/local/include/c++/3.4.6/ext/stdio_sync_filebuf.h
/usr/local/include/c++/3.4.6/fstream
/usr/local/include/c++/3.4.6/functional
/usr/local/include/c++/3.4.6/iomanip
/usr/local/include/c++/3.4.6/ios
/usr/local/include/c++/3.4.6/iosfwd
/usr/local/include/c++/3.4.6/iostream
/usr/local/include/c++/3.4.6/istream
/usr/local/include/c++/3.4.6/iterator
/usr/local/include/c++/3.4.6/limits
/usr/local/include/c++/3.4.6/list
/usr/local/include/c++/3.4.6/locale
/usr/local/include/c++/3.4.6/map
/usr/local/include/c++/3.4.6/memory
/usr/local/include/c++/3.4.6/new
/usr/local/include/c++/3.4.6/numeric
/usr/local/include/c++/3.4.6/ostream
/usr/local/include/c++/3.4.6/queue
/usr/local/include/c++/3.4.6/set
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/atomic_word.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/basic_file.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/c++allocator.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/c++config.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/c++io.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/c++locale.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/codecvt_specializations.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/ctype_base.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/ctype_inline.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/ctype_noninline.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/gthr-default.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/gthr-posix.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/gthr-single.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/gthr.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/messages_members.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/os_defines.h
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/stdc++.h.gch/O0g
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/stdc++.h.gch/O2g
/usr/local/include/c++/3.4.6/sparc-sun-solaris2.8/bits/time_members.h
/usr/local/include/c++/3.4.6/sstream
/usr/local/include/c++/3.4.6/stack
/usr/local/include/c++/3.4.6/stdexcept
/usr/local/include/c++/3.4.6/streambuf
/usr/local/include/c++/3.4.6/string
/usr/local/include/c++/3.4.6/typeinfo
/usr/local/include/c++/3.4.6/utility
/usr/local/include/c++/3.4.6/valarray
/usr/local/include/c++/3.4.6/vector
/usr/local/info/cpp.info
/usr/local/info/cppinternals.info
/usr/local/info/g77.info
/usr/local/info/gcc.info
/usr/local/info/gccinstall.info
/usr/local/info/gccint.info
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crtbegin.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crtend.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crtfastmath.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crti.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crtn.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/gcrt1.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/gmon.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/README
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/X11
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/curses.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/float.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/floatingpoint.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/g2c.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/iso646.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/limits.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/math.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/pthread.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/root/usr/openwin/include/X11/dni.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/root/usr/openwin/include/X11/nmdefs.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/rpc/auth.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/rpc/clnt.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/rpc/svc.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/rpc/xdr.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdarg.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdbool.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stddef.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio_tag.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/sys/msreg.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/sys/signal.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/sys/types.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/sys/varargs.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/syslimits.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/unwind.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/varargs.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/gsyslimits.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/README
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/float.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/iso646.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/limits.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/stdarg.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/stdbool.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/stddef.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/unwind.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/include/varargs.h
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/mkheaders.conf
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/libgcc.a
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/libgcc_eh.a
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/libgcov.a
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/crt1.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/crtbegin.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/crtend.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/crtfastmath.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/crti.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/crtn.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/gcrt1.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/gmon.o
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/libgcc.a
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/libgcc_eh.a
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/sparcv9/libgcov.a
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs
/usr/local/lib/libfrtbegin.a
/usr/local/lib/libg2c.a
/usr/local/lib/libg2c.la
/usr/local/lib/libg2c.so
/usr/local/lib/libg2c.so.0
/usr/local/lib/libg2c.so.0.0.0
/usr/local/lib/libgcc_s.so
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/libiberty.a
/usr/local/lib/libstdc++.a
/usr/local/lib/libstdc++.la
/usr/local/lib/libstdc++.so
/usr/local/lib/libstdc++.so.6
/usr/local/lib/libstdc++.so.6.0.3
/usr/local/lib/libsupc++.a
/usr/local/lib/libsupc++.la
/usr/local/lib/sparcv9/libfrtbegin.a
/usr/local/lib/sparcv9/libg2c.a
/usr/local/lib/sparcv9/libg2c.la
/usr/local/lib/sparcv9/libg2c.so
/usr/local/lib/sparcv9/libg2c.so.0
/usr/local/lib/sparcv9/libg2c.so.0.0.0
/usr/local/lib/sparcv9/libgcc_s.so.1
/usr/local/lib/sparcv9/libgcc_s_sparcv9.so
/usr/local/lib/sparcv9/libiberty.a
/usr/local/lib/sparcv9/libstdc++.a
/usr/local/lib/sparcv9/libstdc++.la
/usr/local/lib/sparcv9/libstdc++.so
/usr/local/lib/sparcv9/libstdc++.so.6
/usr/local/lib/sparcv9/libstdc++.so.6.0.3
/usr/local/lib/sparcv9/libsupc++.a
/usr/local/lib/sparcv9/libsupc++.la
/usr/local/libexec/gcc/sparc-sun-solaris2.8/3.4.6/cc1
/usr/local/libexec/gcc/sparc-sun-solaris2.8/3.4.6/cc1plus
/usr/local/libexec/gcc/sparc-sun-solaris2.8/3.4.6/collect2
/usr/local/libexec/gcc/sparc-sun-solaris2.8/3.4.6/f771
/usr/local/libexec/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/fixinc.sh
/usr/local/libexec/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/fixincl
/usr/local/libexec/gcc/sparc-sun-solaris2.8/3.4.6/install-tools/mkheaders
/usr/local/man/man1/cpp.1
/usr/local/man/man1/g++.1
/usr/local/man/man1/g77.1
/usr/local/man/man1/gcc.1
/usr/local/man/man1/gcov.1
/usr/local/man/man7/fsf-funding.7
/usr/local/man/man7/gfdl.7
/usr/local/man/man7/gpl.7
/usr/local/share/locale/be/LC_MESSAGES/gcc.mo
/usr/local/share/locale/ca/LC_MESSAGES/gcc.mo
/usr/local/share/locale/da/LC_MESSAGES/gcc.mo
/usr/local/share/locale/de/LC_MESSAGES/gcc.mo
/usr/local/share/locale/el/LC_MESSAGES/gcc.mo
/usr/local/share/locale/es/LC_MESSAGES/gcc.mo
/usr/local/share/locale/fr/LC_MESSAGES/gcc.mo
/usr/local/share/locale/ja/LC_MESSAGES/gcc.mo
/usr/local/share/locale/nl/LC_MESSAGES/gcc.mo
/usr/local/share/locale/rw/LC_MESSAGES/gcc.mo
/usr/local/share/locale/sv/LC_MESSAGES/gcc.mo
/usr/local/share/locale/tr/LC_MESSAGES/gcc.mo
[ verifying class ]

Installation of was successful.


# pkgadd -d ./zlib-1.2.4-sol8-sparc-local

The following packages are available:
  1  SMCzlib     zlib
                 (sparc) 1.2.4

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

zlib
(sparc) 1.2.4
Greg Roelofs and Jean-loup Gaillt
Using as the package base directory.
## Processing package information.
## Processing system information.
   5 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing zlib as

## Installing part 1 of 1.
/usr/local/bin/minigzip
/usr/local/bin/minigzip64
/usr/local/doc/zlib/ChangeLog
/usr/local/doc/zlib/FAQ
/usr/local/doc/zlib/INDEX
/usr/local/doc/zlib/README
/usr/local/doc/zlib/doc/algorithm.txt
/usr/local/doc/zlib/doc/rfc1950.txt
/usr/local/doc/zlib/doc/rfc1951.txt
/usr/local/doc/zlib/doc/rfc1952.txt
/usr/local/doc/zlib/doc/txtvsbin.txt
/usr/local/doc/zlib/examples/README.examples
/usr/local/doc/zlib/examples/enough.c
/usr/local/doc/zlib/examples/fitblk.c
/usr/local/doc/zlib/examples/gun.c
/usr/local/doc/zlib/examples/gzappend.c
/usr/local/doc/zlib/examples/gzjoin.c
/usr/local/doc/zlib/examples/gzlog.c
/usr/local/doc/zlib/examples/gzlog.h
/usr/local/doc/zlib/examples/zlib_how.html
/usr/local/doc/zlib/examples/zpipe.c
/usr/local/doc/zlib/examples/zran.c
/usr/local/include/zconf.h
/usr/local/include/zlib.h
/usr/local/lib/libz.a
/usr/local/lib/libz.so
/usr/local/lib/libz.so.1
/usr/local/lib/libz.so.1.2.4
/usr/local/lib/pkgconfig/zlib.pc
/usr/local/share/man/man3/zlib.3
[ verifying class ]

Installation of was successful.

#pkgadd –d ./ openssl-1.0.0-sol8-sparc-local

#pkgadd –d ./ netsnmp-5.4.2.1-sol8-sparc-local

(3) 停止Sun’s SNMP daemons

# cd /etc/rc3.d
# ./S76snmpdx stop
# ./S77dmi stop
# mv S76snmpdx s76snmpdx
# mv S77dmi s77dmi

(4) 创建NET-SNMP的配置文件

# vi /usr/local/share/snmp/snmpd.conf
 syslocation Server Room
 syscontact Sysadmin ()

 rocommunity public 127.0.0.1
 rocommunity public 192.168.1.33
 #rwcommunity public 192.168.1.33 
 trapcommunity public

# /usr/local/sbin/snmpd

(5) 添加开机启动NET-SNMPD
#vi /etc/rc3.d/S61netsnmp    写个超简单的脚本
#! /sbin/sh
/usr/local/sbin/snmpd
exit 0

#chmod a+x /etc/rc3.d/S61netsnmp

阅读(1481) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~