Syslog 1.0 Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Post by noname »

Of course I'd be happy to.
But at first, I'll have to install syslog plugin because I've never used this... :oops:
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Today, I released 1.05. See the README for the ChangeLog.

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?
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

Hi

Post by joseme »

Hi The Witness:
I installed syslog 1.04 a week ago and It's working , how can I update to 1.05?. I think uninstalling the 1.04 version from "Plugin management"? Then replacing for the new plugin and reinstall from "Plugin management"?. is it right?

Thanks

Jose
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Just copy 1.05 to the plugins directory and navigate to plugin management and your done.

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?
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

Done!

Post by joseme »

Hi:
1.05 Syslog works perfectly !!.. , clean installation :D
Thanks

Jose
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

Priority- Level

Post by joseme »

Hi Witness:
I realize the syslog messages from my Cisco Routers appears in Syslog Plugin with numbers (not text, for example "warnings" appears as "4" ), and for this reason the colors don't work.

I've checked the table "syslog_priorities" :
mysql> select * from syslog_priorities;
+-------------+----------+---------------------+
| priority_id | priority | last_updated |
+-------------+----------+---------------------+
| 1 | emer | 2010-08-29 21:21:17 |
| 2 | crit | 2010-08-29 21:21:17 |
| 3 | alert | 2010-08-29 21:21:17 |
| 4 | err | 2010-08-29 21:21:17 |
| 5 | warn | 2010-08-29 21:21:17 |
| 6 | notice | 2010-08-29 21:21:17 |
| 7 | info | 2010-08-29 21:21:17 |
| 8 | debug | 2010-08-29 21:21:17 |
| 9 | other | 2010-08-29 21:21:17 |
| 10 | 4 | 2010-08-29 21:25:04 |
| 11 | 6 | 2010-08-29 21:25:04 |
| 12 | 3 | 2010-08-29 21:25:04 |
+-------------+----------+---------------------+

tha last three ones (4,6 and 3), come from my Cisco Routers, I attach a capture.

I'm using rsyslog (according the instructions on the plugin cacti web). I read at rsyslog web page, too:

"...rsyslog provides message properties for the priority. These are called "PRI", "syslogfacility" and "syslogpriority" (case is important!). They are numerical values..."
http://www.rsyslog.com/doc/rsyslog_recording_pri.html

Thanks
Jose
Attachments
syslog_priorities.jpg
syslog_priorities.jpg (58.88 KiB) Viewed 9340 times
michaelzhao
Posts: 10
Joined: Sun Jul 11, 2010 1:00 am

Post by michaelzhao »

Hi I see this in clog, everything seems working fine.

CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"INSERT INTO settings VALUES ('syslog_last_total','131')'

I am not using cacti db, my config.php like this:

global $config, $database_type, $database_default, $database_hostname;
global $database_username, $database_password, $database_port;

/* revert if you dont use the Cacti database */
$use_cacti_db = false;

if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'cactiuser';
$syslogdb_password = 'xxxxxx';
$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';
michaelzhao
Posts: 10
Joined: Sun Jul 11, 2010 1:00 am

Post by michaelzhao »

A small issue. (not related with ver 1.05)

I can't see that "!" (inside a triangle) icon beside the graphs.
But it is working fine on my anothere cacti server.

Which file should I look at?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

michaelzhao wrote:A small issue. (not related with ver 1.05)

I can't see that "!" (inside a triangle) icon beside the graphs.
But it is working fine on my anothere cacti server.

Which file should I look at?
Permissions. A fix was made to remove the option for users that are not entitled to access that area.

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

michaelzhao wrote:Hi I see this in clog, everything seems working fine.

CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"INSERT INTO settings VALUES ('syslog_last_total','131')'

I am not using cacti db, my config.php like this:

global $config, $database_type, $database_default, $database_hostname;
global $database_username, $database_password, $database_port;

/* revert if you dont use the Cacti database */
$use_cacti_db = false;

if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'cactiuser';
$syslogdb_password = 'xxxxxx';
$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';
Can you please open a bug report at http://bugs.cacti.net

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Priority- Level

Post by TheWitness »

joseme wrote:Hi Witness:
I realize the syslog messages from my Cisco Routers appears in Syslog Plugin with numbers (not text, for example "warnings" appears as "4" ), and for this reason the colors don't work.

I've checked the table "syslog_priorities" :
mysql> select * from syslog_priorities;
+-------------+----------+---------------------+
| priority_id | priority | last_updated |
+-------------+----------+---------------------+
| 1 | emer | 2010-08-29 21:21:17 |
| 2 | crit | 2010-08-29 21:21:17 |
| 3 | alert | 2010-08-29 21:21:17 |
| 4 | err | 2010-08-29 21:21:17 |
| 5 | warn | 2010-08-29 21:21:17 |
| 6 | notice | 2010-08-29 21:21:17 |
| 7 | info | 2010-08-29 21:21:17 |
| 8 | debug | 2010-08-29 21:21:17 |
| 9 | other | 2010-08-29 21:21:17 |
| 10 | 4 | 2010-08-29 21:25:04 |
| 11 | 6 | 2010-08-29 21:25:04 |
| 12 | 3 | 2010-08-29 21:25:04 |
+-------------+----------+---------------------+

tha last three ones (4,6 and 3), come from my Cisco Routers, I attach a capture.

I'm using rsyslog (according the instructions on the plugin cacti web). I read at rsyslog web page, too:

"...rsyslog provides message properties for the priority. These are called "PRI", "syslogfacility" and "syslogpriority" (case is important!). They are numerical values..."
http://www.rsyslog.com/doc/rsyslog_recording_pri.html

Thanks
Jose
I suspect that this is a rsyslog configuration option.

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?
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

No colors in Syslog

Post by joseme »

Hi Witness:
I change the %syslogpriority% to '%syslogpriority-text%' (I found this in rsyslog web), In rsyslog.conf, now I get Err,Warn,Info , under "Level" ... but the the colors function doesn't twork (I think it should work for "Info" at least)...
the filter (combo box: Info++, etc..) works well.
How the rows are colored?, maybe the "priority" must be a complete word, like "warning" not only "warn"?
Could you take a look, please...

thanks
José
michaelzhao
Posts: 10
Joined: Sun Jul 11, 2010 1:00 am

Post by michaelzhao »

TheWitness wrote:
michaelzhao wrote:A small issue. (not related with ver 1.05)

I can't see that "!" (inside a triangle) icon beside the graphs.
But it is working fine on my anothere cacti server.

Which file should I look at?
Permissions. A fix was made to remove the option for users that are not entitled to access that area.

TheWitness
Hi TheWitness

Sorry, I didn't get it. I am using v1.05 and cacti hostname matchs the syslog hostname. Is this a bug in v1.05? (I found a bug report at http://bugs.cacti.net/, but it claimed that this has been fixed in 1.04-8/9 release)
Last edited by michaelzhao on Tue Aug 31, 2010 4:25 pm, edited 1 time in total.
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

Now It works

Post by joseme »

Hi Witness:
Today I've checked and my Syslog is working (colors are OK)!! :D , Maybe I should have wait 10 minutes or a little more to see the results....
Well, for people who use rsyslog: change this in rsyslog.conf (if you want to see Syslog plugin full color)

%syslogpriority% to '%syslogpriority-text%'

after that restart rsyslog and wait 5-to ten minutes to see the results.

Thanks...
Jose
Attachments
syslog_color.JPG
syslog_color.JPG (48.41 KiB) Viewed 9241 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

michaelzhao wrote:
TheWitness wrote:
michaelzhao wrote:A small issue. (not related with ver 1.05)

I can't see that "!" (inside a triangle) icon beside the graphs.
But it is working fine on my anothere cacti server.

Which file should I look at?
Permissions. A fix was made to remove the option for users that are not entitled to access that area.

TheWitness
Hi TheWitness

Sorry, I didn't get it. I am using v1.05 and cacti hostname matchs the syslog hostname. Is this a bug in v1.05? (I found a bug report at http://bugs.cacti.net/, but it claimed that this has been fixed in 1.04-8/9 release)
I see now. The hostnames must match identically
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests