Syslog Plugin Issue

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
jagmeetbhinder
Posts: 40
Joined: Sun Oct 21, 2012 10:42 pm

Syslog Plugin Issue

Post by jagmeetbhinder »

I have installed syslog plugins, everything run smooth however when i am trying to upgrade the syslog tab from cacti console I am getting error: -


The requested URL /cacti/plugins/syslog/plugins.php was not found on this server.

I am using rsyslog and Cacti database syslog.

Any help on this will be helpful.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Syslog Plugin Issue

Post by cigamit »

What version of Cacti and what version of the syslog plugin?

Also, can you explain what you mean by this "when i am trying to upgrade the syslog tab"
jagmeetbhinder
Posts: 40
Joined: Sun Oct 21, 2012 10:42 pm

Re: Syslog Plugin Issue

Post by jagmeetbhinder »

Thanks for looking into this.

I am using Cacti 0.8.8a and syslog-V1.22-2

After configuring rsyslog and cacti database, imported database in .sql, configure config.php then I am trying to upgrade syslog option from cacti console/syslog tab and it gave me error.

Please let me know if you got it otherwise I will add snapshots.

Once again thanks for your time.
jagmeetbhinder
Posts: 40
Joined: Sun Oct 21, 2012 10:42 pm

Re: Syslog Plugin Issue

Post by jagmeetbhinder »

Please find the error snapshot in attachment. Hope this will help you to understand my problem.
Attachments
Cacti-error.jpg
Cacti-error.jpg (26.62 KiB) Viewed 3152 times
Cacti.jpg
Cacti.jpg (269.45 KiB) Viewed 3152 times
jagmeetbhinder
Posts: 40
Joined: Sun Oct 21, 2012 10:42 pm

Re: Syslog Plugin Issue

Post by jagmeetbhinder »

I am not able to figure out this.
Any hint or idea will be great help.

syslog/config.php
=============

$use_cacti_db = false;

if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'cactiuser';
$syslogdb_password = 'cactiuser';
$syslogdb_port = 3306;
}else{
$syslogdb_type = $database_type;
$syslogdb_default = $database_default;
$syslogdb_hostname = $database_hostname;
$syslogdb_username = $database_username;
$syslogdb_password = $database_password;
$syslogdb_port = $database_port;
}

/* field in the incomming table */
$syslog_incoming_config['dateField'] = 'date';
$syslog_incoming_config['timeField'] = 'time';
$syslog_incoming_config['priorityField'] = 'priority';
$syslog_incoming_config['facilityField'] = 'facility';
$syslog_incoming_config['hostField'] = 'host';
$syslog_incoming_config['textField'] = 'message';
$syslog_incoming_config['id'] = 'seq';

?>

syslog-ng.conf
============


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

source s_sys {
file ("/proc/kmsg" log_prefix("kernel: "));
unix-stream ("/dev/log");
internal();
};


source net {
udp();
};

destination d_mysql {
pipe("/tmp/mysql.pipe"
template("INSERT INTO syslog_incoming (host, facility, priority, date, time, message) VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC', '$MSG' );\n")
template-escape(yes)
);
};

log { source(net); destination(d_mysql); };
log { source(s_sys); destination(d_mysql); };
jagmeetbhinder
Posts: 40
Joined: Sun Oct 21, 2012 10:42 pm

Re: Syslog Plugin Issue

Post by jagmeetbhinder »

I am able to fix this now :)
use cacti DB in config.php and injecting logs directly into cacti.syslog database.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest