Can i know the total bandwith of my architecture?

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

Moderators: Developers, Moderators

Post Reply
Acid
Posts: 5
Joined: Tue Dec 09, 2008 6:55 am

Can i know the total bandwith of my architecture?

Post by Acid »

Hi !

I would like to know if Cacti can do substraction ?
I explain :

All my servers are connected on a switch (unmanaged).
On the swith, there's many servers (not only the servers on the graph in attachment).

On this switch, i'd would like to know the real outbound of the servers behind.

This can be resume in a simple equation :

Total Outbound = (Outbound Front1 + Outbound Front2) - Inbound DB1
Total Inbound = Inbound LoadBal1 + ((Inbound Front1 + Inbound Front2) - Outbound Loadbal1 - Outbound DB1)

Is there a solution to do it ?

And, if the switch is managed ? How can i do this ?

I 've seen a plugin able to aggregate graphs.
It's a solution for me, but i need to substract ^^

Thanks a lot the community for this great work !
Attachments
Example of architecture for a client
Example of architecture for a client
archi.jpg (32.15 KiB) Viewed 2346 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I don't know how you do this in a Cacti graph, but for what it's worth, weathermap can do subtraction of one target from another...

TARGET a.rrd -b.rrd

(make sure there's no space after the -)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Acid
Posts: 5
Joined: Tue Dec 09, 2008 6:55 am

Post by Acid »

Thanks for your answer !

Yes, i use weathermap.

I tested your solution, but i've found a problem.

If I do a graph1+graph2-graphdb, it results in a :
Total Outbound = Outbound Front1 + Outbound Front2 - Outbound DB1

BUT, I want a :
Total Outbound = (Outbound Front1 + Outbound Front2) - INBOUND DB1

(To know the real bandwith in switch->firewall, and not of the interface of the switch)

Have you an idea ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

You can swap over in and out for one DS...

TARGET a.rrd b.rrd -c.rrd:traffic_out:traffic_in
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Acid
Posts: 5
Joined: Tue Dec 09, 2008 6:55 am

Post by Acid »

Whaou, so fast to answer ... thank you !!

It's ok for my outbound :-) !

But now, I've the Inbound of my database in the substraction.
So the total Inbound is false.

The total inbound isn't calculate with the same servers of the outbound.
Can i parameter that ?

(i don't know the parameters of the weathermap config file)

Thanks a lot to help me :-)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

No problem :-)

You can ignore either side too, like this:

TARGET a.rrd:-:traffic_in

to get a 0 in the 'in' slot, and the in value in the 'out' slot.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Acid
Posts: 5
Joined: Tue Dec 09, 2008 6:55 am

Post by Acid »

Thanks, you're a boss ! :D

It works like a charm.
Acid
Posts: 5
Joined: Tue Dec 09, 2008 6:55 am

Post by Acid »

:s

My boss want a graph in Cacti -_-

The plugin Aggregate seems to answer my needs, but, can i do substraction with it (like above) ?

Thanks ;-)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests