syslogd got me stumped (trying to log Cisco router messages)

syslogd got me stumped (trying to log Cisco router messages)

Post by Charles Kereke » Mon, 10 Aug 1998 04:00:00



I am using Slackware version 1.2.13 and can't configure the syslogd to
accept messages from my Cisco router. I believe my Cisco is configured
correctly to relay messages to the IP address of my Linux box. I have also
checked network connectivity and all seems fine.

One problem I am having is finding documentation that does more that simply
mention that syslogd exists. I did look up the on-line help on syslog.config
but did not have much luck with it. Here are some specific questions:

1) Is there more thorough documentation somewhere that explains syslog in
detail?

2) Does syslogd have it's own process or is it part of inetd? I only see
inetd when I use the ps command.

3) Is there a way to manually send a message to syslog to see if it is
working? By the way, the messages in my /var/adm/syslog seem to be old - not
logging anything new.

4) Does anyone have a Cisco configured to log to Linux? The Cisco doc
recommends the following modification to the syslog.config file:

     local7.debug                                    /var/adm/router.log

I have made this change but the /var/adm/router.log file was not created,
even though I had debug level trapping enabled on the Cisco. I then used the
touch command to create this file, in case it needed it to start logging to
it. Nothing. The file stays at 0 bytes.

Would appreciate some pointers.

--
 Please also copy my e-mail account.

 Charles Kerekes

 
 
 

syslogd got me stumped (trying to log Cisco router messages)

Post by Paul Wickha » Mon, 10 Aug 1998 04:00:00



>I am using Slackware version 1.2.13 and can't configure the syslogd to
>accept messages from my Cisco router. I believe my Cisco is configured
>correctly to relay messages to the IP address of my Linux box. I have also
>checked network connectivity and all seems fine.

>One problem I am having is finding documentation that does more that simply
>mention that syslogd exists. I did look up the on-line help on
syslog.config
>but did not have much luck with it. Here are some specific questions:

>1) Is there more thorough documentation somewhere that explains syslog in
>detail?

>2) Does syslogd have it's own process or is it part of inetd? I only see
>inetd when I use the ps command.

>3) Is there a way to manually send a message to syslog to see if it is
>working? By the way, the messages in my /var/adm/syslog seem to be old -
not
>logging anything new.

>4) Does anyone have a Cisco configured to log to Linux? The Cisco doc
>recommends the following modification to the syslog.config file:

>     local7.debug                                    /var/adm/router.log

>I have made this change but the /var/adm/router.log file was not created,
>even though I had debug level trapping enabled on the Cisco. I then used
the
>touch command to create this file, in case it needed it to start logging to
>it. Nothing. The file stays at 0 bytes.

>Would appreciate some pointers.

>--
> Please also copy my e-mail account.

> Charles Kerekes

Hmmmm... I had the same problem once, trying to log from one of our
livingston routers. It turned out that all I had to do was change the
syslogd startup script to run 'syslogd -r' which tells syslogd to log from
remote machines. I found it in the man page for syslogd, I think.

Paul

 
 
 

syslogd got me stumped (trying to log Cisco router messages)

Post by brian moo » Mon, 10 Aug 1998 04:00:00


On Sun, 9 Aug 1998 17:00:07 -0500,

Quote:> I am using Slackware version 1.2.13 and can't configure the syslogd to
> accept messages from my Cisco router. I believe my Cisco is configured
> correctly to relay messages to the IP address of my Linux box. I have also
> checked network connectivity and all seems fine.

On the Cisco:
logging trap debugging
logging 192.168.1.1        (well, your real IP here... :))

Quote:> One problem I am having is finding documentation that does more that simply
> mention that syslogd exists. I did look up the on-line help on syslog.config
> but did not have much luck with it. Here are some specific questions:

> 1) Is there more thorough documentation somewhere that explains syslog in
> detail?

Than man?  Not really.

Quote:> 2) Does syslogd have it's own process or is it part of inetd? I only see
> inetd when I use the ps command.

It's a standalone process.  It should be started (in Slack, anyway)
in /etc/rc.d/rc.M.  In newer versions, it requires a -r flag to
accept remote log entries.  It also (in newer versions, I don't remember
it being a problem with Slack3.0, which is what it sounds like you have)
was really picky about hostnames: make sure your hostname is in
/etc/hosts: if it can't resolve itself at boot, syslogd would dump
core and die.

Quote:> 3) Is there a way to manually send a message to syslog to see if it is
> working? By the way, the messages in my /var/adm/syslog seem to be old - not
> logging anything new.

Well, if you don't see it in ps, it's not running.  But 'logger' can
send it messages if it's around:

logger -p local7.debug "this should be logged"

Quote:> 4) Does anyone have a Cisco configured to log to Linux? The Cisco doc
> recommends the following modification to the syslog.config file:

>      local7.debug                                    /var/adm/router.log

Well, mine goes into /var/adm/messages which swatch watches for me,
but yep, that's it.  Make sure you use tabs between them, not spaces.

Quote:> I have made this change but the /var/adm/router.log file was not created,
> even though I had debug level trapping enabled on the Cisco. I then used the
> touch command to create this file, in case it needed it to start logging to
> it. Nothing. The file stays at 0 bytes.

As I recall, the Linux syslogd doesn't require the file to exist, though
some others certainly do.  It can't hurt, though won't do anything if
syslogd isn't actually running.

--
Brian Moore                             Kill A Spammer For Jesus
Sysadmin, C/Perl Hacker, Usenet Vandal

 
 
 

syslogd got me stumped (trying to log Cisco router messages)

Post by Charles Kereke » Wed, 12 Aug 1998 04:00:00


Thanks to those of you who posted suggestions.

I stumbled on the -d option to run syslogd in debug mode. In this mode it
gave me a Segment Failure error. I started digging in the syslog.conf file
to see why it loads part of the way and then gives me the error. This file,
by the way, is what came with the Slackware installation. The only
modification I made was the following line so my Cisco can log to it:

     local7.debug                                    /var/adm/router.log

In the file itself there was a note to use tabs only, not spaces. I decided
to delete all lines except the one above. I restarted syslogd and it started
working. My Cisco was able to log without problems. When I have some more
time I will put back the other lines to see which one was causing me
problems.

Thanks again for the help!

Charlie

 
 
 

1. syslogd failed to log message to /var/adm/messages

Hello,

I'm running Solaris 2.5.1, and I'm encountering a problem where syslogd
fails to log message to /var/adm/messages. I looked at /etc/syslog.conf,
which was not modified at all, and the syslog.conf file worked when I
copied to another machine. Checked syslog.conf and it showed the correct
pid. I stop and restart syslogd using "truss -f -a syslogd -d" and ran
logger to test, the trace output didn't show anything.. Looked like
something got stuck.

Is there anyone has an idea what is wrong? Thanks in advance.

Lam

2. identd -i problem

3. cisco routers & syslogd

4. HOT HD

5. Problems with syslogd and Cisco router

6. rcs confusion

7. Syslogd - Cisco Router

8. Question re change in tcptwreorder from 4.0D to 4.0F

9. help: Syslogd in Linux 2.0 cannot log cisco........

10. Cisco logging to syslogd

11. We are getting this error message /var/log/messages

12. Stats generator for tacacs+ logs (Cisco routers)