Syslog error

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
root426
Posts: 1
Joined: Sat Dec 15, 2012 12:54 am

Syslog error

Post by root426 »

dear all,

i just installed cacti Version 0.8.8a,
and syslog does not work, udp port 514 is open, how do i check or repair my cacti, these following error came in Syslog tab :

Code: Select all

  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:41229->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:37334->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:48720->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:35240->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:44613->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:35558->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:54863->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:60043->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:60156->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:46719->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:44663->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:41242->[127.0.0.1]	3	6
  	localhost	2012-12-15 09:27:02	 Connection from UDP: [127.0.0.1]:52629->[127.0.0.1]	3	6
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Syslog error

Post by gandalf »

You will have to configure snmpd to suppress logging for incoming snmp requests
R.
anar1120
Posts: 8
Joined: Sun Jun 17, 2012 2:11 am

Re: Syslog error

Post by anar1120 »

Hi,

May I ask on how it was fixed? I ran into the same problem and fairly new to Cacti, so please, forgive me.

Thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Syslog error

Post by gandalf »

This is a net-snmpd configuration issue. My /etc/sysconfig/snmpd looks like

Code: Select all

# snmpd command line options
# '-f' is implicitly added by snmpd systemd unit file
# OPTIONS="-LS0-6d"
OPTIONS="-LS0-5d -Lf /dev/null"
R.
anar1120
Posts: 8
Joined: Sun Jun 17, 2012 2:11 am

Re: Syslog error

Post by anar1120 »

Hello,

Mine looks like this...

# snmpd command line options
# OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid"

If I'm not wrong the # symbol excludes the command to be used, correct?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Syslog error

Post by gandalf »

That's why I appended the last line :wink:
R.
anar1120
Posts: 8
Joined: Sun Jun 17, 2012 2:11 am

Re: Syslog error

Post by anar1120 »

Hi,

I have changed it, but my cacti still does not collect syslog. Please, bear in mind that I am using the latest CactiEZ release.
What might be the problem?

Kind Regards
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Syslog error

Post by gandalf »

anar1120 wrote:I have changed it, but my cacti still does not collect syslog.
The hint I gave you was related to the SNMPD log line found in syslog. That should be fixed right now. If other issues persist, let's start to talk about them
R.
anar1120
Posts: 8
Joined: Sun Jun 17, 2012 2:11 am

Re: Syslog error

Post by anar1120 »

Hi,

I have gave cacti a day to start collecting syslog, but it still only collects its own syslog and not from other devices...
Anything else I should check?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Syslog error

Post by gandalf »

You are talking about the SYSLOG plugin?
R.
anar1120
Posts: 8
Joined: Sun Jun 17, 2012 2:11 am

Re: Syslog error

Post by anar1120 »

Yes, please, refer to attached photo.
Attachments
Screen Shot 2013-01-22 at 4.15.57 PM.png
Screen Shot 2013-01-22 at 4.15.57 PM.png (199.07 KiB) Viewed 4707 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Syslog error

Post by gandalf »

Moving to Plugins; this is a plugin issue
R.
anar1120
Posts: 8
Joined: Sun Jun 17, 2012 2:11 am

Re: Syslog error

Post by anar1120 »

Hi,

So, how can I fix this? Sorry for asking so many things I am new to Cacti
anar1120
Posts: 8
Joined: Sun Jun 17, 2012 2:11 am

Re: Syslog error

Post by anar1120 »

Dear Gandalf,

I googled a lot and still not able to figure out what the problem is. Can you help me?

Kind Regards,
CeeKing
Posts: 1
Joined: Mon Aug 10, 2015 5:08 am

Re: Syslog error

Post by CeeKing »

The problem is that snmpd is set to generate messages for priorities 0 - 6

The trick that you need to modify /etc/init.d/snmpd so when snmpd starts is doesn't log priorities 5 & 6.

Change the LS0-6d to LS0-4d

#OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid"
OPTIONS="-LS0-4d -Lf /dev/null -p /var/run/snmpd.pid"

See this page for further information (It's where I got it)

https://raetsel.wordpress.com/2008/02/1 ... gmessages/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests