File: solaris10_install.txt

package info (click to toggle)
syslog-ng 4.8.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,572 kB
  • sloc: ansic: 177,639; python: 13,035; cpp: 11,611; makefile: 7,012; sh: 5,147; java: 3,651; xml: 3,344; yacc: 1,377; lex: 599; perl: 193; awk: 190; objc: 162
file content (138 lines) | stat: -rw-r--r-- 5,128 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
Installing syslog-ng on Sun Solaris 10

To successfully install syslog-ng, complete the following simple procedure. Lines starting with # are commands that have to be executed from a command line console.

Procedure 4.5. Installing syslog-ng on Sun Solaris 10

   1.

      Use the your username and password received together with your syslog-ng Premium Edition license to download the following binaries. Make sure to download the package specific for the processor architecture of the host.
          *

            The syslog-ng Premium Edition package (syslog-ng-premium-edition_<version>) from

            http://www.balabit.com/downloads/files/syslog-ng/binaries/premium-edition/pool/s/syslog-ng-premium-edition/
          *

            The libdbi8 package from

            http://www.balabit.com/downloads/files/syslog-ng/binaries/premium-edition/pool/l/libdbi8/
          *

            If you plan to use an SQL destination, download the package corresponding to your database from

            http://www.balabit.com/downloads/files/syslog-ng/binaries/premium-edition/pool/l/libdbi8-drivers/

            Also download the package corresponding to the database, architecture, and Solaris version you plan to use from http://www.sunfreeware.com. The Sunfreeware.com website includes details on installing the database, and any required dependencies.

            Note
            The database packages contain the full database applications, but syslog-ng does not use the databases, only the .so file. Installing the database packages does not start the database services.
   2.

      Download or copy the syslog-ng_<version_number>_sparc.pkg.gz package to your computer running Solaris.
      Download the following packages from the nearest sunfreeware.com mirrors(solaris9 packages):
      	libiconv-1.11-sol9-sparc-local.gz
	libgcc-3.4.6-sol9-sparc-local.gz

   3.

      Unpack and install the syslog-ng Premium Edition and the libdbi8 package by issuing the following commands from the command line:


      # libiconv-1.11-sol9-sparc-local.gz
      # libgcc-3.4.6-sol9-sparc-local.gz
      # gunzip syslog-ng_<version_number>_sparc.pkg.gz
      # gunzip libdbi8_<version>_<arch>.gz
      # pkgadd -d libiconv-1.11-sol9-sparc-local
      # pkgadd -d libgcc-3.4.6-sol9-sparc-local
      # pkgadd -d syslog-ng_<version_number>_sparc.pkg
      # pkgadd -d libdbi8_<version>_<arch>.pkg
                  
   4.

      If you use an SQL destination, issue the commands corresponding to the database:
          *

            For MySQL:

            Download and install the following packages from sunfreeware.com:
	    	- mysql-5.0.41-sol9-sparc-local
		- openssl-0.9.8e-sol9-sparc-local
	      # gunzip <pkg>.gz; pkgadd -d <pkg> 
            # gunzip libdbd8-mysql_<version>_<arch>.gz
            # pkgadd -d libdbd8-mysql_<version>_<arch>.pkg
                                    
          *

            For PostgreSQL:

            Make sure that the SUNWpostgr-libs package has been installed. It's on the Solaris 10 install DVD.
            # gunzip libdbd8-pgsql_<version>_<arch>.gz
            # pkgadd -d libdbd8-pgsql_<version>_<arch>.pkg
                                    
          *

            For SQLite:
	    
	    Download and install the sqlite-3.3.6-sol9-sparc-local package from sunfreeware.com.
            # gunzip sqlite-3.3.6-sol9-sparc-local.gz 
            # pkgadd -d sqlite-3.3.6-sol9-sparc-local
            # gunzip libdbd8-sqlite_<version>_<arch>.gz
            # pkgadd -d libdbd8-sqlite_<version>_<arch>.pkg
                                    

   5.

      Rename the syslog-ng.conf.sample file (located under /opt/syslog-ng/etc/) to syslog-ng.conf.


      # mv /opt/syslog-ng/etc/syslog-ng.conf.sample \ 
                      /opt/syslog-ng/etc/syslog-ng.conf
                  
   6.

      Modify the syslog-ng.conf to suit your needs. For details on how to configure syslog-ng, see The syslog-ng Administrator Guide, Chapter 3, Configuring syslog-ng.
   7.

      Disable the original syslogd application.


      # svcadm -v disable svc:/system/system-log
                  
   8.

      Copy the following files to their proper places by issuing the following commands and modify them if needed.


      # cp <sourcedir>/contrib/solaris-packaging/syslog-ng.example.xml /var/svc/manifest/system/syslog-ng.xml
      # cp <sourcedir>/contrib/solaris-packaging/syslog-ng.method /lib/svc/method/syslog-ng
      # cp <sourcedir>/contrib/solaris-packaging/syslog-ng@default /etc/default/syslog-ng@default
                  
   9.

      Validate and import the syslog-ng.xml file using svccfg.


      # svccfg
      svc:> validate /var/svc/manifest/system/syslog-ng.xml
      svc:> import /var/svc/manifest/system/syslog-ng.xml
      svc:> quit
                  
  10.

      Enable and start syslog-ng.


      # svcadm enable -t svc:/system/syslog-ng:default
                  
  11.

      Verify that syslog-ng is running.


      # svcs -a | grep syslog
                  

      You should receive a similar output: online 10:15:01 svc:/system/syslog-ng:default