Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Apr 26, 2019 10:55 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: syslog plugin - no INFO file
PostPosted: Thu Feb 07, 2019 10:10 am 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
Hi,

I'm running Cacti Version 1.1.38 on Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-43-generic x86_64)

I'm trying to load the syslog plugin so I can get logs from my Cisco devices.

I've tried to install syslog-v1.22-2.tgz from https://docs.cacti.net/plugin:syslog

I untar the file with tar -xzvf and then copied the folder and contents to /usr/share/cacti/site/plugins

From within Cacti webinterface - it says there is no INFO file and sure enough there isn't - how can I get the INFO file or create one that has the right contents or is there a different version of the plugin I can get which is compatible with my variation of Cacti and Ubuntu.

Regards,

Dave.


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Thu Feb 07, 2019 3:40 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 227
Location: Long Island, New York, USA
The versions posted on the Cacti site are legacy for the 0.8.8x branch. Go here for the 1.x version: https://github.com/Cacti/plugin_syslog

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Thu Feb 07, 2019 4:26 pm 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
Thanks for the reply!

I’ll give that a go and reply back...

Regards,

Dave.


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 08, 2019 5:36 am 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
I tried that plugin and now I get the message

Syslog Monitoring Not Compatible, Requires: Cacti >= 1.2.0 The Cacti Group 2.2


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 08, 2019 9:45 am 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 227
Location: Long Island, New York, USA
Try this


Attachments:
plugin_syslog-develop.tar [349 KiB]
Downloaded 14 times

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7
Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 08, 2019 10:24 am 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
That seems to be getting me further than before - I've got the plugin installed....

How do I then add a Cisco switch to push it logs to the syslog plugin to my Cacti server....


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 08, 2019 10:34 am 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 227
Location: Long Island, New York, USA
You're on your own here. I never finished setting up my syslog server and associated polling/logging.

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 08, 2019 10:37 am 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
:-)

OK - thanks....

I'll let you know how I get on...

It should be fairly straightforward - you'd think.


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 08, 2019 3:04 pm 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
Hi,

I’ve configured my Cisco switch to forward the logs to my Cacti server.

My Cacti server doesn’t seem to be listening on port 514

Has anyone else configured the syslog plugin and made the necessary configuration adjustments.

Regards,

Dave.


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Tue Feb 12, 2019 4:59 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2419
You need to have configured rsyslog as well as the cacti syslog plugin. I do believe that's documented in the installation instructions.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 15, 2019 6:37 am 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
I must say so far it's been a really painful exercise trying to get syslog into Cacti... surely it shouldn't be this hard.

I've Googled a lot about setting up Syslog and I've got it logging to a .log file but I haven't a clue how to connect that to the Cacti Webinterface….

Has anyone created an "idiots guide" to setting up Syslog inconjunction with the syslog plugin?

Regards,

Dave.


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 15, 2019 7:26 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2419
The problem is there are many moving parts to getting syslog working. You need a syslog daemon to receive the data, then inject that into the MySQL database, you also need to have the syslog plugin, configured and enabled so that it's poller takes the incoming messages and injects them into the main tables based off the rules that you have defined.

The syslog plugin also allows you to use a different database for its data than cacti itself because of the amount that get inserted to ensure that the core database doesn't become sluggish because of it.

So, the better bet is to try and post where you know you've managed to get up to and what problem you are having. The basics are

  • Do you have a syslog daemon listening on 514
  • Do you have the daemon processing those messages and injecting them into the syslog's syslog_incoming table (I think that's the name)
  • Do you have the poller processing syslog messages via the poller_syslog.php/ (should happen if the plugin is enabled)
  • Do you have any rules in place that may block the messages being processed?
  • Have you enabled debugging for the plugin?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 15, 2019 9:25 am 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
I've done the following pretty much in this order.

1. Installed Ubuntu 18.04
2. Performed the updates
3. Installed Cacti
4. Added devices for bandwidth monitoring via snmp
5. Installed the syslog plugin (and done basic configuration to log into the cacti db - possibly not the best option given there could be lots of syslogs)
6. Followed a guide to configure syslog - https://kifarunix.com/how-to-configure- ... ntu-18-04/
7. I can see that I'm getting logs to /var/log/devicename/xxxx.log


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 15, 2019 9:53 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2419
Then you need to follow the reset of the syslog setup, you have nothing that's injecting the data into the incoming messages table using the configuration on that linked page.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: syslog plugin - no INFO file
PostPosted: Fri Feb 15, 2019 9:55 am 
Offline

Joined: Sun Jan 20, 2019 9:04 am
Posts: 16
Do you mean reset the syslog plugin configuration?

How do I go about that ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group