Syslog 1.0 Released

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

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

#91 Post by noname » Wed Aug 25, 2010 9:39 am

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: 14817
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#92 Post by TheWitness » Sat Aug 28, 2010 11:51 am

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

Hi

#93 Post by joseme » Sat Aug 28, 2010 10:59 pm

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: 14817
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#94 Post by TheWitness » Sat Aug 28, 2010 11:13 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

Done!

#95 Post by joseme » Sun Aug 29, 2010 9:46 pm

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

#96 Post by joseme » Mon Aug 30, 2010 12:55 am

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 4832 times

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

#97 Post by michaelzhao » Mon Aug 30, 2010 10:53 am

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

#98 Post by michaelzhao » Mon Aug 30, 2010 11:37 am

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: 14817
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#99 Post by TheWitness » Mon Aug 30, 2010 5:43 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

#100 Post by TheWitness » Mon Aug 30, 2010 5:44 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

Re: Priority- Level

#101 Post by TheWitness » Mon Aug 30, 2010 5:46 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

No colors in Syslog

#102 Post by joseme » Mon Aug 30, 2010 9:38 pm

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

#103 Post by michaelzhao » Mon Aug 30, 2010 10:12 pm

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

#104 Post by joseme » Tue Aug 31, 2010 11:35 am

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 4733 times

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

#105 Post by TheWitness » Tue Aug 31, 2010 6:33 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

Post Reply