Cacti log statistics

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
BSOD2600
Cacti Moderator
Posts: 12160
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Cacti log statistics

#1 Post by BSOD2600 » Sun May 01, 2005 8:16 pm

I was semi-bored this weekend after skydiving, so I decided to write a script that would parse out some of the various stats in the Cacti.log file. I might come up with something more complicated or take feature requests...

It might be interesting to see the stats of others out there.

Sample output system1:

Code: Select all

                Cacti Log File Statistics

*SYSTEM*
Avg Execution time: 305.9568 s
Max Execution time: 390.8908 s
Min Execution time: 221.0228 s
Avg processes: N/A
Avg threads: 5.00
Avg hosts: 26.00
Avg Hosts/Process: 0.00
Poller exceeded time limit: 1

*WARNINGS*
Warnings: 51

*DEBUG*
Debug lines: 1801
Sample output system2:

Code: Select all

                Cacti Log File Statistics

*SYSTEM*
Avg Execution time: 73.2748 s
Max Execution time: 155.0819 s
Min Execution time: 58.9001 s
Avg processes: 1.00
Avg threads: N/A
Avg hosts: 11.00
Avg Hosts/Process: 11.00
Poller exceeded time limit:

*WARNINGS*
Warnings: 1929

*RECACHES*
Avg time: 0.80 s
Max time: 12.1353 s
Min time: 0.6165 s
Avg host count: 0.76
Attachments
logstats1.0.rar
The script
(2.84 KiB) Downloaded 1767 times

NWA Cacti Admin
Posts: 15
Joined: Mon Nov 20, 2006 7:25 pm
Location: Oregon, USA

#2 Post by NWA Cacti Admin » Tue Jan 02, 2007 8:58 pm

Has anyone ever created a Cacti graph for this info? It would be nice to monitor over time the time it takes to complete a data poll.

User avatar
fmangeant
Cacti Guru User
Posts: 2326
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

#3 Post by fmangeant » Wed Jan 03, 2007 3:57 am

Hi

you can use these templates : http://forums.cacti.net/viewtopic.php?t=18057
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]

NWA Cacti Admin
Posts: 15
Joined: Mon Nov 20, 2006 7:25 pm
Location: Oregon, USA

#4 Post by NWA Cacti Admin » Mon Jan 08, 2007 2:17 pm

Thank's for the link, fmangeant.

We have it up and running. Very, very nice.

Post Reply