Help adding Network Interfaces

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
atomsk47
Posts: 6
Joined: Mon Jul 06, 2009 7:04 pm

Help adding Network Interfaces

Post by atomsk47 »

Hello I am very new to Cacti and I have added several linux servers. The only thing I have left is adding their network interfaces to monitor traffic. I really need this but I just haven't been able to figure out how to do it I have been searching for the past 2 hours with no luck. I have a feeling it is something really simple but I just haven't figured it out yet.

Thanks,
Grant
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Well, if it is properly configured, just go to Console/Devices/{Device Name}, then click 'Create Graphs', then select the interface.

If not:

Which template did you use to create the device?

When viewing the device, what is under 'Associated Data Queries'?

If SNMP - Interface Statistics under Associated Data Queries, what does it say in the status column?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
atomsk47
Posts: 6
Joined: Mon Jul 06, 2009 7:04 pm

Post by atomsk47 »

The Template I used was Local Linux Host
The only thing under Associated Data Queries is "Unix - Get Mounted Partitions"
Here is the Querey Debug Info

Code: Select all

+ Running data query [6].
+ Found type = '4 '[script query].
+ Found data query XML file at '/home/sallies/public_html/cacti/resource/script_queries/unix_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /home/sallies/public_html/cacti/scripts/query_unix_partitions.pl index'
+ Executing script query 'perl /home/sallies/public_html/cacti/scripts/query_unix_partitions.pl query device'
+ Found item [dskDevice='/dev/sdb2'] index: /dev/sdb2
+ Found item [dskDevice='/dev/sdb1'] index: /dev/sdb1
+ Found item [dskDevice='/usr/tmpDSK'] index: /usr/tmpDSK
+ Found item [dskDevice='/tmp'] index: /tmp
+ Executing script query 'perl /home/sallies/public_html/cacti/scripts/query_unix_partitions.pl query mount'
+ Found item [dskMount='/'] index: /dev/sdb2
+ Found item [dskMount='/boot'] index: /dev/sdb1
+ Found item [dskMount='/tmp'] index: /usr/tmpDSK
+ Found item [dskMount='/var/tmp'] index: /tmp
+ Found data query XML file at '/home/sallies/public_html/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/home/sallies/public_html/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/home/sallies/public_html/cacti/resource/script_queries/unix_disk.xml'
Thanks,
Grant
atomsk47
Posts: 6
Joined: Mon Jul 06, 2009 7:04 pm

Post by atomsk47 »

Okay so I try adding SNMP - Interface Statistics while also having "Unix - Get Mounted Partitions" "SNMP - Interface Statistics" returns 0 Items and 0 Rows. If it is just by itself it works and reports 35 Items and 4 Rows.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

I could have been a delay in retrieving the information. Try adding the Unix template again.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

atomsk47 wrote:The Template I used was Local Linux Host
The "Local Linux Host" template is for exactly that - the local linux host (i.e. the one running Cacti). It uses scripts, so you can't use it for remote servers.
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!)
atomsk47
Posts: 6
Joined: Mon Jul 06, 2009 7:04 pm

Post by atomsk47 »

Howie wrote:
atomsk47 wrote:The Template I used was Local Linux Host
The "Local Linux Host" template is for exactly that - the local linux host (i.e. the one running Cacti). It uses scripts, so you can't use it for remote servers.
So does that mean the data being recorded for all the servers will just be data taken from the localhost and not the remote server?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

atomsk47 wrote: So does that mean the data being recorded for all the servers will just be data taken from the localhost and not the remote server?
Yes. You can prove this for yourself by looking at (for example) the load average graph on all the servers.

To measure the remote servers without writing your own scripts, you need to install net-snmp's snmpd on each server, and then use the 'ucd/net snmp host' template instead.
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!)
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Howie wrote:
atomsk47 wrote:The Template I used was Local Linux Host
The "Local Linux Host" template is for exactly that - the local linux host (i.e. the one running Cacti). It uses scripts, so you can't use it for remote servers.
Nice catch Howie, skipped right over that...
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Linegod wrote:
Howie wrote:
atomsk47 wrote:The Template I used was Local Linux Host
The "Local Linux Host" template is for exactly that - the local linux host (i.e. the one running Cacti). It uses scripts, so you can't use it for remote servers.
Nice catch Howie, skipped right over that...
One of my top 5 pet hates about Cacti :-)
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!)
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Howie wrote:
Linegod wrote:
Howie wrote: The "Local Linux Host" template is for exactly that - the local linux host (i.e. the one running Cacti). It uses scripts, so you can't use it for remote servers.
Nice catch Howie, skipped right over that...
One of my top 5 pet hates about Cacti :-)
I'll add 'create and add Linux Server template to base install' to the list of topics we are discussing at OSCON this summer.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests