custom graph display / report

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Tdo
Posts: 10
Joined: Sat Jun 15, 2002 2:56 pm

custom graph display / report

Post by Tdo »

Hi Rax and the team.
You guys did such a great job with Cacti. I'm about to roll out for production a monitoring system using cricket, smoking to collect data and cacti to tie all the displays together. (So I can show latency and Utilization side by side) and it seems to work quite well.

There are 2 options that I think quite usefull:
1. Timezone per user (I have users around the world)
2. Custom graph for a specific time frame.
I know you may have plan for these in the future release, but If I were to write some thing for this in the mean time, what modules should I focus on ?
Thanks in advance.
Tdo
Eric Ro

Cacti and cricket

Post by Eric Ro »

Hi,

I'm using Cricket from 1 year.
It collect 2700 targets in 4 minutes.
The problem is that the grapher is poor.
I would like to use Cacti to use cricket rrd files.

Please, could you tell me how you configure Cacti for this ?

Thanks
Eric Ro.
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

Not very difficult actually.

Just setup each of you datasources in your RRD in cacti using the datasource configuration page, then configure all of your graphs for each of those devices in the graphs configuration page, then create you graph hierarchy. and do that 2700 times. ouch!

or use my cacti_inject script
http://www.birch.net/~spiegela/cacti_inject

You can automatically import all of your RRDs as datasources and RRAs using the following args:

Code: Select all

cacti_inject -a <rrd file> -a <rrdfile> -a <rrdfile>...
Unfortunately wildcard support doesn't work, but you can always use "for". Also, each RRA must have a AVERAGE CF, or the linking to the datasource won't work right. If you don't have an AVERAGE CF in one+ of your RRAs, let me know, and I can send you a SQL script to fix you up.

Then to create your graphs/hierarch/cdefs, you'll have to do the manual thing:

Code: Select all

cacti_inject -m <insert_type> -f field=value -f field=value...
To figure out the intert_type names use:

Code: Select all

cacti_inject -h
to figure out the fields related to an insert_type use:

Code: Select all

cacti_inject -h <insert_type>
Then I would suggest writing a shell script to add appropriate graphs/graph_items based on the RRDs

HTH

Aaron
Tdo
Posts: 10
Joined: Sat Jun 15, 2002 2:56 pm

Post by Tdo »

Hi Eric,
the script that YID has seems to be better written than mime. I was kind of kluge things together. Let me know how it works.
cheers
td
EricRo
Posts: 1
Joined: Fri Nov 08, 2002 1:56 am
Location: France, near Paris

Cacti and cricket

Post by EricRo »

Hi,


I 've just finish installing a Cacti test server on linux.
I'll try the script of Yid in few days.


Thanks for the script.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests