?
Solved

Host display issues in Cacti Syslog Plugin

Posted on 2008-11-13
4
Medium Priority
?
913 Views
Last Modified: 2012-06-27
Hello ,
I have installed Cacti syslog plug which is helping me see all the syslog-ng messages on my syslog-ng server. But looks like there is some problem with the config file. Becasue some of the hosts are displayed as fully qualified.

for example
aixser1
aixser2
sunser1.xyzcompany.com
sunser4.xyzcompany.com

I have read this http://www.campin.net/syslog-ng/faq.html#compression but this is not helping me.Any suggestions please
options
  {
    chain_hostnames(no);
    create_dirs (yes);
    dir_perm(0755);
    dns_cache(yes);
    keep_hostname(yes);
    log_fifo_size(2048);
    log_msg_size(8192);
    long_hostnames(off);
    perm(0644);
    stats(3600);
    sync(0);
    time_reopen (10);
    use_dns(yes);
    use_fqdn(no);
  };

Open in new window

0
Comment
Question by:jdenver247
  • 2
  • 2
4 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22951153
Add the short names of the hosts in question to your /etc/hosts file. This will help
0
 

Author Comment

by:jdenver247
ID: 22951224
But I have 28 host names which are displaying sunser.xyzcompany.com. Its very strange that this is happening only for the Sun servers. I am very much interested in tweeking the option. But I will try including some in my host file..
0
 

Author Comment

by:jdenver247
ID: 22951586
Adding hosts in /etc/hosts as
sunserv1  xxx.xxx.xxx.xxx  .......   didn't help
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1500 total points
ID: 22952249
The format of an /etc/hosts entry is:

xxx.xxx.xxx.xxx sunserv1

Additionaly, in your /etc/nsswitch.conf you should have
hosts: files dns

If all the above doesn't help, I suspect your SUN hosts don't have an entry for themselves in their respective /etc/hosts, so they can't lookup their own short hostnames.

wmp


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question