LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to install syslog-ng?? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-install-syslog-ng-859954/)

ziadh 02-01-2011 05:12 AM

How to install syslog-ng??
 
hello,
http://opensystems.wordpress.com/200...ith-syslog-ng/

i entered this site to see how to install syslog-ng on Solaris 10, but i encountered problems since the the first step.

Quote:

bash-3.00# svcadmn disable system-log
bash: svcadmn: command not found

so if someone can help me through the installation i would be greatful,

thanks

bathory 02-01-2011 06:18 AM

Hi,

Ask a moderator to merge this thread with this. You shouldn't open new threads for the same problem.

Regarding the error you've misspelled the command. It's svcadm not svcadmn

Regards

ziadh 02-01-2011 06:23 AM

Quote:

Originally Posted by bathory (Post 4244497)
Hi,


Regarding the error you've misspelled the command. It's svcadm not svcadmn

Regards

Code:

bash-3.00# svcadm disable system-log
bash: svcadm: command not found


bathory 02-01-2011 06:34 AM

I guess you have somehow messed your PATH.
Try:
Code:

/usr/sbin/svcadm disable system-log

ziadh 02-01-2011 06:47 AM

OK!
now the other steps... :)

Quote:

bash-3.00# svccfg
bash: svccfg: command not found
bash-3.00# /usr/sbin/svcadm svccfg
Usage: svcadm [-v] [cmd [args ... ]]

svcadm enable [-rst] <service> ... - enable and online service(s)
svcadm disable [-st] <service> ... - disable and offline service(s)
svcadm restart <service> ... - restart specified service(s)
svcadm refresh <service> ... - re-read service configuration
svcadm mark [-It] <state> <service> ... - set maintenance state
svcadm clear <service> ... - clear maintenance state
svcadm milestone [-d] <milestone> - advance to a service milestone

Services can be specified using an FMRI, abbreviation, or fnmatch(5)
pattern, as shown in these examples for svc:/network/smtp:sendmail

svcadm <cmd> svc:/network/smtp:sendmail
svcadm <cmd> network/smtp:sendmail
svcadm <cmd> network/*mail
svcadm <cmd> network/smtp
svcadm <cmd> smtp:sendmail
svcadm <cmd> smtp
svcadm <cmd> sendmail
bash-3.00# svc:> delete system-log*
bash: svc:: command not found

ziadh 02-02-2011 05:58 AM

Quote:

bash-3.00# /usr/sbin/pkgadd -d syslogng-3.1.2-sol10-sparc-local

The following packages are available:
1 SMCsyslng syslogng
(sparc) 3.1.2

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


i chose 1, then:

Quote:

Processing package instance <SMCsyslng> from </opt/local/syslogng-3.1.2-sol10-sparc-local>

syslogng(sparc) 3.1.2
BalaBit IT Ltd

This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.


The installation of this package was previously terminated and
installation was never successfully completed.

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

i chose y, then:

Quote:

Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
27 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing syslogng as <SMCsyslng>

## Installing part 1 of 1.
/usr/local/bin/loggen
ERROR: attribute verification of </usr/local/bin/loggen> failed
pathname does not exist
/usr/local/bin/pdbtool
ERROR: attribute verification of </usr/local/bin/pdbtool> failed
pathname does not exist
/usr/local/bin/update-patterndb
ERROR: attribute verification of </usr/local/bin/update-patterndb> failed
pathname does not exist
/usr/local/doc/syslogng/AUTHORS
ERROR: attribute verification of </usr/local/doc/syslogng/AUTHORS> failed
pathname does not exist
/usr/local/doc/syslogng/COPYING
ERROR: attribute verification of </usr/local/doc/syslogng/COPYING> failed
pathname does not exist
/usr/local/doc/syslogng/ChangeLog
ERROR: attribute verification of </usr/local/doc/syslogng/ChangeLog> failed
pathname does not exist
/usr/local/doc/syslogng/NEWS
ERROR: attribute verification of </usr/local/doc/syslogng/NEWS> failed
pathname does not exist

...
...
...
...


Quote:

pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/examples/syslog-ng.conf.solaris> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/man/pdbtool.1> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/man/syslog-ng.8> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/man/syslog-ng.conf.5> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/security/bof-2002-09-27.txt> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/security/dos-2000-11-22.txt> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/xsd/patterndb-1.xsd> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/xsd/patterndb-2.xsd> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/xsd/patterndb-3.xsd> failed
pathname does not exist
ERROR: attribute verification of </usr/local/sbin/syslog-ng> failed
pathname does not exist
ERROR: attribute verification of </usr/local/sbin/syslog-ng-ctl> failed
pathname does not exist
ERROR: attribute verification of </usr/local/share/man/man1/pdbtool.1> failed
pathname does not exist
ERROR: attribute verification of </usr/local/share/man/man5/syslog-ng.conf.5> failed
pathname does not exist
ERROR: attribute verification of </usr/local/share/man/man8/syslog-ng.8> failed
pathname does not exist

Installation of <SMCsyslng> partially failed.
bash-3.00#



any suggestion?

xeleema 02-03-2011 03:30 AM

Greetingz!
ziadh, I've got a few questions for you (or rather, questions you've probably asked yourself by now...)

1) Are you doing the pkgadd as root? (you kinda probably should...)
2) Does /usr/local exist?
3) Is /usr/local it's own filesystem, and is that read-only?
4) Have you tried pkgrm first, since it appears the package was partially installed?
5) Have you read the man pages for pkgadd and pkgrm?
6) Has this system been patched (ever)? There are some critical patches for the pkgadd and pkgrm commands that you might need.

And finally the big question; Why didn't you grab syslog-ng from SunFreeWare.com or BlastWave.org? I'm sure there's nothing wrong with this guy, he seems to be on the level. I'm just curious is all...

ziadh 02-03-2011 04:18 AM

Dear xeleema,
Quote:

Originally Posted by xeleema (Post 4246841)
Greetingz!
ziadh, I've got a few questions for you (or rather, questions you've probably asked yourself by now...)

1) Are you doing the pkgadd as root? (you kinda probably should...)
yes

2) Does /usr/local exist?
yes
3) Is /usr/local it's own filesystem, and is that read-only?
how can i know?
4) Have you tried pkgrm first, since it appears the package was partially installed?
haven't tried that
5) Have you read the man pages for pkgadd and pkgrm?
haven't read the man because i did not want to waste too much time on 'installing' the software, and then i still have to configure it and run some tests
6) Has this system been patched (ever)? There are some critical patches for the pkgadd and pkgrm commands that you might need.
i have no idea, 1st time using this solaris system, and its my company whi installed it and threw me in it hehe

And finally the big question; Why didn't you grab syslog-ng from SunFreeWare.com
I DID!! or BlastWave.org? I'm sure there's nothing wrong with this guy, he seems to be on the level. I'm just curious is all...


xeleema 02-03-2011 06:59 AM

Quote:

Originally Posted by ziadh (Post 4246884)
3) Is /usr/local it's own filesystem, and is that read-only?
how can i know?

Type "mount | grep local" if /usr/local is it's own filesystem, it'll show up in the output (and by filesystem, I mean that it shows up when you "df -hFufs") You could also check /etc/vfstab and see if it's set to mount read-only.

Quote:

Originally Posted by ziadh (Post 4246884)
5) Have you read the man pages for pkgadd and pkgrm?
haven't read the man because i did not want to waste too much time on 'installing' the software, and then i still have to configure it and run some tests

That's a dangerous mentality to have. If you've never read the man pages for pkgadd and pkgrm, you need to stop what you're doing and read them.
man pkgadd
man pkgrm
If you don't get out of the "I'll read the documentation later" phase, you're going to do something dangerous and blow away the system...and the documentation.

Quote:

Originally Posted by ziadh (Post 4246884)
6) Has this system been patched (ever)? There are some critical patches for the pkgadd and pkgrm commands that you might need.
i have no idea, 1st time using this solaris system, and its my company whi installed it and threw me in it hehe

Okay...case in point. Walk on eggshells. Read the man pages of commands you're unfamiliar with...before soliciting unknown strangers for help. If this is a system that your company depends on, rather than a "test box", you're going to need to get really familiar with the basics.

Let's start you off with a few basic guidelines;
Rule #1: Do not use the root account.
Rule #2: YOU do not USE the ROOT ACCOUNT, use sudo if you *really* need root! (install it if it's not present)
Rule #3: If a process halts, gives an error, or SEGFAULTs, you read the man pages.
Rule #4: Only one System Administrator to a computer.
Rule #5: One fight question at a time.
Rule #6: No "Diet" drinks, no overhead lights.
Rule #7: Fights Troubleshooting sessions will go on as long as they have to.
Rule #8: If this is your first night at FIGHT CLUB LQ, you HAVE to fight google.

Now for a few things you're going to (eventually) need to know;
How to Boot off a Solaris CD into Single User Mode
Patch Check Advance (PCA) - Great tool for patching a system. Read the docs first.
Basic Docs on Solaris (from Oracle) - This includes man pages.

So now that that's all out of the way...
Okay, "introduce" us to your system with the following commands (remeber to wrap the outputs in [code] & [/code]);

uptime
Not as important as you would think, but I don't trust anything that has the root password taped to the monitor with an uptime over 500 days.

uname -a
This will tell us the platform (sparc or x86), the revision of the kernel you're using, the version of the O.S (somewhat), and maybe the model of system you have.

cat /etc/release
This will tell us the exact version of the operating system, and what "update" it is.

prtdiag -v | head -20
This should tell us the exact make and model of system you have, and how much RAM/CPU you have.

df -hFufs
This will tell us exactly which filesystems are which, and where they're mounted at.

pkginfo -l SMCsyslng
Prints the current state of the package you installed (or attempted to).

xeleema 02-04-2011 04:52 AM

Any luck?

ziadh 02-04-2011 04:58 AM

well, actually today is my last day of training, my main mission was configuration os syslog and freeradius servers which i did on SuSe and Windows...
and the last 2 weeks i lost so much time just installing these servers on solaris10, i hope from now on i will never use any Linux/Unix system, :))
so now i leave the company and i hope that the next engineer will be able to solve these problems.
thank you for your help, if by any chances i'll work on linux again, i'll come back for sure into this site because you guys helped me more than the people in here with me in the office!!!


All times are GMT -5. The time now is 12:33 AM.