(SOLVED) Syslog NG Cacti Plugin - DNS bug

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

(SOLVED) Syslog NG Cacti Plugin - DNS bug

Post by zarahel »

Good afternoon to you all

I need your help


I´ve installed syslog-ng and it´s cacti plugin and it´s working fine, except for it´s name resolution.

For some reason it resolves some names, and doesn´t resolve others. I´m able to ping my hosts by their names without any problem, and I´ve set use_dns(yes) in syslog-ng.conf

I´ve done nslookup, and everything´s as it should.

Does anybody have any idea why syslog (or cacti) is resolving only some of my hosts names?

Any help is very apreciated.

Thkx
Last edited by zarahel on Mon May 19, 2008 11:55 am, edited 2 times in total.
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

Anybody has any idea?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, this is a syslog-ng configuration issue. Please google it. I don't have the information off hand, or do I. Hold on...checking...checking...

Edit:

/etc/syslog-ng/syslog-ng.conf

Look for

Code: Select all

options {
    sync (0);
    time_reopen (10);
    log_fifo_size (1000);
    long_hostnames (off);
    use_dns (yes);
    use_fqdn (no);
    create_dirs (no);
    keep_hostname (yes);
};
Do the obvious. Then

Code: Select all

service syslog-ng restart
TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

TheWitness

No good...I´ve tried putting the settings same as you´ve posted, but no luck. I´m still having the same problem: for some hosts I get their names resolved, and for others I don´t.
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

Ok, I figured out the problem.

The problem wasn´t in my syslog-ng, but in my DNS Server: syslog-ng does not resolve names of hosts set in reverse lookup zones.

If you have hosts in foward lookup zones it resolves the names with no problem, but if they are in reverse lookup zone, it only shows you the IP.

Solved.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest