- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remote syslog from HP-UX to Linux Server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 07:14 AM
10-20-2004 07:14 AM
On the linux server, I have enabled the -r flag:
SYSLOGD_OPTIONS="-m 0 -r"
and netstat -ln:
udp 0 0 0.0.0.0:514 0.0.0.0:*
confirms that the Redhat server is in fact, listening for syslog.
On the HP-UX side:
/etc/syslog.conf
mail.* @xxx.xxx.xxx.xxx
and the /sbin/init.d/syslog stop/start has been done.
The linux server isn't receiving remote syslog, Why?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 07:19 AM
10-20-2004 07:19 AM
Re: Remote syslog from HP-UX to Linux Server
Make sure all options, including squash are set correctly on the Linux NFS export. If not, root won't get appropriate permissions to write the file. Its possible to block NFS access by hostname or ip address, so I suggest a careful look at the /etc/exports file.
If there are problems exportfs -av to re-export the filesystems.
Most Linux boxes have a default iptables or ipchains firewall that blocks port 514 and other NFS ports.
check the /etc/sysconfig/iptables or ipchains file and see that apprioriate ports are open.
Failed write attempts should show up in the /var/log/message file on the Linux box, unless the firewall is blocking.
service iptables stop
resetart syslog on the HP box to test if the firewall is causing trouble.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 07:22 AM
10-20-2004 07:22 AM
Re: Remote syslog from HP-UX to Linux Server
http://www.cse.msu.edu/~westrant/symlink/pages/HoneynetDocs/remote-syslog.htm as the site that gave me the idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 07:24 AM
10-20-2004 07:24 AM
Re: Remote syslog from HP-UX to Linux Server
On your linux server check the location of mail.* in the /etc/syslog.conf. Is it logging the mail log to syslog or some mail log file.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 07:29 AM
10-20-2004 07:29 AM
Re: Remote syslog from HP-UX to Linux Server
mailx -s "test" email@domain.com <
EOF
and in the HP server it appears in the mail.log, nothing on the linux server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 07:49 AM
10-20-2004 07:49 AM
Re: Remote syslog from HP-UX to Linux Server
Couple of things
1) /etc/syslog.conf is little sensitive about the spacing.
mail.*
2) You need to send a HUP signal to the syslogd in the HP-UX server.
# kill -1 `cat /var/run/syslogd.pid`
Test the communication using the logger command
logger -t mail.notice "Test from HP-UX"
- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 07:56 AM
10-20-2004 07:56 AM
Re: Remote syslog from HP-UX to Linux Server
*.* @
the whitespace is 1 tab exactly
I ran the logger command you mentioned:
in /var/log on the linux site:
grep -lR "HP-UX" *
found nothing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:05 AM
10-20-2004 08:05 AM
Re: Remote syslog from HP-UX to Linux Server
*.* @
I dont see the Linux server name in there.
*.* @linux-server
did you send the HUP signal to syslogd in HP-UX ?
I would not recommend *.* to a different server, because the syslogd at the receiving end has no means of idenifying syslog messages from HP-UX, so the messages from both LINUX and HP-UX will mingle in the same log files, which I dont think you would prefer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:07 AM
10-20-2004 08:07 AM
Re: Remote syslog from HP-UX to Linux Server
*.* @ip.address
for testing purposes I want to do *.* until I see something, then I will tweak from that point.
kill -1 has been run again the syslogd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:17 AM
10-20-2004 08:17 AM
Re: Remote syslog from HP-UX to Linux Server
# Output to console
*.err;mail,kern.notice;daemon,auth.debug;user.info /dev/console
# Output to local file "messages" for local analysis
*.err;auth,daemon,mark,kern.debug;auth,mail,user.notice /var/adm/messages
On your SYSLOG "Clients", have this in addition to your customisations:
# Forward to loghost MEDUSA on Lunar Sector 123
auth.info;mark.debug;*.debug @medusa.sec23.moon.com
HUP your syslogd processes and you should be all set for centralised logging.
And adjust accordingly..
HTH..
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:29 AM
10-20-2004 08:29 AM
Re: Remote syslog from HP-UX to Linux Server
>*.err;mail,kern.notice;daemon,auth.debug;user.info /dev/console
># Output to local file "messages" for local analysis
>*.err;auth,daemon,mark,kern.debug;auth,mail,user.notice /var/adm/messages
did both entries to the config and restarted daemon
as stated earlier i have *.* @xxx.xxx.xx.xxx
and its been hupped.
would you believe I'm still not getting log entries on the linux site?
i even tried *.* @xxx.xxx.xx.xxx:514
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:33 AM
10-20-2004 08:33 AM
Re: Remote syslog from HP-UX to Linux Server
Have you inquired from some Linux sites as well?
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:39 AM
10-20-2004 08:39 AM
Re: Remote syslog from HP-UX to Linux Server
same options in the remote sites syslog.conf:
*.* @xxx.xxx.xxx.xxx
/etc/init.d/syslog restart
on the syslog server
ls /var/adm/log
messages 0 bytes
the file was created, but nothing is being written to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:40 AM
10-20-2004 08:40 AM
Re: Remote syslog from HP-UX to Linux Server
The problem I think is with the client, I just did on my HP-UX boxen (syslog server is another HP-UX boxen). There should be a TAB separator between the notifications and the @SYSLOGHOST:
# Forward to loghost MEDUSA on Lunar Sector 123
auth.info;mark.debug;*.debug
I could not earlier make it to work if the spearator were spaces...
HTH.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 01:47 PM
10-20-2004 01:47 PM
Solutionmail.* /* DOESN'T WORK */
*.debug /* SHOULD WORK */
You can run syslogd on HP-UX with debugging enabled (-d) and it should print error messages about lines in syslog.conf that it rejected.
Specifying particular level (e.g. debug) will select that level and all higher severity levels, so if you specify mail.debug in syslog.conf it will effectively select all levels (debug, info, notice, warning, err, crit, alert, emerg).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 01:31 AM
10-21-2004 01:31 AM
Re: Remote syslog from HP-UX to Linux Server
/etc/sysconfig/syslog{
SYSLOGD_OPTIONS="-m 0 -r"
}
/etc/syslog.conf{
*.* /var/adm/messages
}
kill -1 PID for syslog
On HP-UX Site:
/etc/syslog.conf{
*.debug @xxx.xxx.xxx.xxx
}
kill -1 PID for syslog
logger -t mail.notice "Test from HP-UX"
Checked the Linux site, and the logs are appearing now. Thanks for the help everybody!