cap on the graph

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

Moderators: Developers, Moderators

Post Reply
krishol
Posts: 5
Joined: Wed Jul 21, 2010 2:45 pm

cap on the graph

Post by krishol »

hello friends,

I have install Cacti 0.8.7e on ubuntu 10.04 server. Basically, I am monitoring Windows Application Server.

I have few database servers which are being backed up every day atleast once. And backup server is in the LAN. During the backup time, the traffic of my database server goes more then 80mb, which is obvious. But I really don't need to monitor that traffic. Because of the spike which comes at the time of backup, usual traffic is in the ground of the graph and have to zoom between two backup spike to monitor the normal traffic.

Now what I want is... Is there any option to put cap on the graph.. no matter what is the traffic, the graph will not be plotted more then the defined cap. Coz my usual traffic is not more then 2mb.

Is there any option like that..

Please help..

Thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Plesae define a maximum value for that data source. Do so using "rrdtool tune" on the given rrd file
R.
krishol
Posts: 5
Joined: Wed Jul 21, 2010 2:45 pm

Post by krishol »

gandalf wrote:Plesae define a maximum value for that data source. Do so using "rrdtool tune" on the given rrd file
R.
How can I do this..?? can you please give me some more hints.. coz I am new to cacti n new to ubuntu as well...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Personally, I'd just duplicate the existing interface graph template and then define a maximum for the vertical axis. you'll have to play around with the autoscaling options too.
krishol
Posts: 5
Joined: Wed Jul 21, 2010 2:45 pm

Post by krishol »

Thanks guys,

As gandalf suggested me, I played with "RRDtool tune". I set max value as 10000 for traffic_in & traffic_out. This way I should not get more then 9.76Mb, right?? To monitor this, I copied a large file from network. But the graph plotted with the max value 47.34Mb.

Is there any value that I can't put less then that???

For the new user like me, I am gonna post what I did.

it@monitor:~$ sudo su

root@monitor:/home/it# cd /var/lib/
root@monitor:/var/lib# ls
acpi-support doc-base mlocate synaptic
alsa dpkg mysql ucf
apparmor flashplugin-installer NetworkManager udisks
apt gconf ntpdate update-manager
aptitude gdm openoffice update-notifier
apt-xapian-index hal os-prober update-rc.d
aspell hp pam upower
avahi-autoipd initramfs-tools php5 urandom
belocs initscripts plymouth ureadahead
binfmts insserv polkit-1 usbutils
cacti landscape pulseaudio vim
computer-janitor libuuid pycentral x11
dbus libxml-sax-perl python-support xfonts
defoma locales samba xkb
dhcp3 logrotate sgml-base xml-core
dictionaries-common misc snmp
root@monitor:/var/lib# cd cacti/
root@monitor:/var/lib/cacti# ls
rra
root@monitor:/var/lib/cacti# cd rra
root@monitor:/var/lib/cacti/rra# ls
it_supervisor_pc_hdd_used_40.rrd
it_supervisor_pc_hdd_used_41.rrd
it_supervisor_pc_hdd_used_42.rrd
it_supervisor_pc_traffic_in_43.rrd
root@monitor:/var/lib/cacti/rra# rrdtool tune it_supervisor_pc_traffic_in_43.rrd
DS[traffic_in] typ: COUNTER hbt: 600 min: 0.0000 max: 100000000.0000
DS[traffic_out] typ: COUNTER hbt: 600 min: 0.0000 max: 100000000.0000

root@monitor:/var/lib/cacti/rra# rrdtool tune it_supervisor_pc_traffic_in_43.rrd -a traffic_in:10000
root@monitor:/var/lib/cacti/rra# rrdtool tune it_supervisor_pc_traffic_in_43.rrd -a traffic_out:10000
root@monitor:/var/lib/cacti/rra# rrdtool tune it_supervisor_pc_traffic_in_43.rrd
DS[traffic_in] typ: COUNTER hbt: 600 min: 0.0000 max: 10000.0000
DS[traffic_out] typ: COUNTER hbt: 600 min: 0.0000 max: 10000.0000
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests