How to get gather data from remote machines & bandwidth

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

Moderators: Developers, Moderators

Post Reply
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

How to get gather data from remote machines & bandwidth

Post by cmanns »

I got graphs like unix load, etc from the localhost hosting cacti, but when i try one of my remote servers I get

Code: Select all

SNMP Information
System: Linux EvilPumaS1 2.6.18-5-amd64 #1 SMP Tue Oct 2 20:37:02 UTC 2007 x86_64
Uptime: 16850532 (1 days, 22 hours, 48 minutes)
Hostname: EvilPumaS1
at the top but it wont produce any graphs, antyhing I need to do? It also shows my drive info :/

Also how do I show bandwidth graphs for incoming and outgoing on eth interfaces?

Thanks!,

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

Post by Linegod »

Make sure you have set the Host Template to ''ucd/net SNMP Host' and not 'Local Linux Machine'.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

Post by cmanns »

AH!

I was searching here and figured out to do that

Still same problem, wont produce graphs :( anything i need to do to the remote machine? thx
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Clear the Poller Cache to start with (it may be best to just delete the host, add it again)
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

Post by cmanns »

Linegod wrote:Clear the Poller Cache to start with (it may be best to just delete the host, add it again)
Did that too -_- this is a new install my mysql died :cry: it still wont work
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

could you post here the poller cache for one of this hosts ?
[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]
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

Post by cmanns »

In

./utilities.php?action=view_poller_cache

Theres none for this remote machine

in snmp cache theres

Host: EPNS1 , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifDescr , Field Value: No more variables left in this MIB View (It is past the end of the MIB tree)
OID: .1.3.6.1.2.1.2.2.1.2.2

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

Post by fmangeant »

Can you make sure you've created some graphs for this host ?
[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]
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

Post by cmanns »

Oh lol.

I added one

/usr/bin/rrdtool create \
/home/cacti/www/rra/epns1_cpu_user_11.rrd \
--step 300 \
DS:cpu_user:COUNTER:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

I turned on data source debug mode, shows that, I cant see any graphs being produced. it also stills says

EPNS1 1 3 Unknown xxx.com 0 0 100

On devices page, I dont know why its not even just pinging it :/ oh now it says down (After adding the graph for cpu)
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

What "Downed Host Detection" method are you using ?

If you host replies to SNMP requests, trys "SNMP - Reliable".
[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]
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

Post by cmanns »

I have it set to snmp ping.

it says "Recovering" now

and uh for the graph output it says

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="EPNS1 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/home/cacti/www/rra/epns1_cpu_system_10.rrd":cpu_system:AVERAGE \
DEF:b="/home/cacti/www/rra/epns1_cpu_system_10.rrd":cpu_system:MAX \
DEF:c="/home/cacti/www/rra/epns1_cpu_user_11.rrd":cpu_user:AVERAGE \
DEF:d="/home/cacti/www/rra/epns1_cpu_user_11.rrd":cpu_user:MAX \
DEF:e="/home/cacti/www/rra/epns1_cpu_nice_9.rrd":cpu_nice:AVERAGE \
DEF:f="/home/cacti/www/rra/epns1_cpu_nice_9.rrd":cpu_nice:MAX \
CDEF:cdefbc=TIME,1196065301,GT,a,a,UN,0,a,IF,IF,TIME,1196065301,GT,c,c,UN,0,c,IF,IF,TIME,1196065301,GT,e,e,UN,0,e,IF,IF,+,+ \
AREA:a#FF0000FF:"System"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:c#0000FFFF:"User":STACK \
GPRINT:c:LAST:"  Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:e#00FF00FF:"Nice":STACK \
GPRINT:e:LAST:"  Current\:%8.2lf %s"  \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefbc#000000FF:"Total"  \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s" 

RRDTool Says:

OK
I guess it just takes a bit? Also uh the pings are wayyy off :X
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

cmanns wrote:I guess it just takes a bit? Also uh the pings are wayyy off :X
You're right :)

When you add a data source, it's first created, and filled with values during the next poller run.
[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]
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

Post by cmanns »

fmangeant wrote:
cmanns wrote:I guess it just takes a bit? Also uh the pings are wayyy off :X
You're right :)

When you add a data source, it's first created, and filled with values during the next poller run.
Thank you so much.

I was wondering now about bandwidth monitoring, this possible to monitor incoming and outgoing of interfaces or by ip address, etc?

We don't use cpanel so we cant monitor per-site (Maybe per ip) I dont know but total server(s) in/out would atleast be handy.

I figured out how to add it to the tree, now I see the graphs all say nan like my localhost did for a bit and availability is slowly going up
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

cmanns wrote:[I was wondering now about bandwidth monitoring, this possible to monitor incoming and outgoing of interfaces or by ip address, etc?

We don't use cpanel so we cant monitor per-site (Maybe per ip) I dont know but total server(s) in/out would atleast be handy.
To graph total in/out bandwidth usage for a NIC, choose the "Interface - Traffic (bits/sec, Total Bandwidth)" graph template.
[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]
cmanns
Posts: 8
Joined: Wed Nov 21, 2007 3:56 pm

Post by cmanns »

fmangeant wrote:
cmanns wrote:[I was wondering now about bandwidth monitoring, this possible to monitor incoming and outgoing of interfaces or by ip address, etc?

We don't use cpanel so we cant monitor per-site (Maybe per ip) I dont know but total server(s) in/out would atleast be handy.
To graph total in/out bandwidth usage for a NIC, choose the "Interface - Traffic (bits/sec, Total Bandwidth)" graph template.
ahh wow, tons of templates there never knew that was there :P

Uh, I can't figure out how to add it to the device(s) under Devices -> Server -> it wont let me add any named Interfaces nor in "Add Graph" as that seems to be only the ones alloweed per server that you set in "Devices" page.

Theres also abunch of this in the log
11/26/2007 12:41:05 AM - CMDPHP: Poller[0] Host[2] DS[19] WARNING: Result from SNMP not valid. Partial Result:

:roll:
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests