spikes peeks and dynamic ip

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

Moderators: Developers, Moderators

Post Reply
mac_7
Posts: 2
Joined: Thu Nov 17, 2005 8:01 am

spikes peeks and dynamic ip

Post by mac_7 »

as an old time user of mrgt I'm a bit frustrated
using mrgt for more than 2 years without any problem!
using cacti with adsl/ppp dynamic ip result in unusable graphs
giant spikes and stopping collecting data / generating graphs
after ip change
searching the forum and mailinglist results in scripts like removespikes.pl
but this can't be the solution
can someone point me to a solution/url
or is this it ?
I want still belief that an advanced tool like cacti.........
:evil:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cacti now has spike supression built in, so that script really shouldn't be needed anymore. Post a picture of what you're talking about.
You're using a dynamic name to keep track of the device that always changes its IP right?
mac_7
Posts: 2
Joined: Thu Nov 17, 2005 8:01 am

Post by mac_7 »

the picture is a empty graph (near flate line) with 10MB peek at IP change
for a 4MBit DSL which has aprox. 500KB max
after IP change it stops collecting data
I'm using cacti-0.8.6g-1mdk
ifname is always ppp0 ip is changing
Attachments
graph_image.png
graph_image.png (32.34 KiB) Viewed 2337 times
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Spike supression in Cacti works by watching device uptime (as far as I remember). This of course can't be used in this case. I'm also not sure if it has been implemented in cactid... for sure it is present in cmd.php poller.

What is Maximum Value in your data source settings?

- Piotr
jef
Posts: 17
Joined: Thu Aug 25, 2005 3:27 pm
Location: ./

Post by jef »

I wonder if setting the data_query to "Verify All Fields" would help through the IP change, if the IP is in the input fields of course.
edit: Or maybe removing the IP from the input fields as a test..
Jef
raintonr
Posts: 2
Joined: Wed May 17, 2006 8:23 pm
Location: Sydney, Australia
Contact:

Post by raintonr »

I'm having similar problems to this - has any solution been found?

Something else weird here - the machine has 4 interfaces: loopback, 2 eth and 1 ppp but the data query says:

Code: Select all

1) SNMP - Interface Statistics  	 (Verbose Query)  	 None  	 Success [28 Items, 5 Rows]
5 rows? Huh? So hit the verbose query link and this comes out:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Found item [ifOperStatus='Down'] index: 4 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='lo'] index: 1 [from value]
+ Found item [ifDescr='eth0'] index: 2 [from value]
+ Found item [ifDescr='eth1'] index: 3 [from value]
+ Found item [ifDescr='ppp0'] index: 4 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ppp(23)'] index: 4 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='10000000'] index: 2 [from value]
+ Found item [ifSpeed='100000000'] index: 3 [from value]
+ Found item [ifSpeed='0'] index: 4 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:00:02:44:32:8A:45'] index: 2 [from value]
+ Found item [ifHwAddr='00:00:02:E3:1F:F0:92'] index: 3 [from value]
+ Found item [ifHwAddr=''] index: 4 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='10.0.0.1'] index: 2 [from regexp oid parse]
+ Found item [ifIP='10.1.0.1'] index: 3 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='the.real.ext.ip'] index: 88 [from regexp oid parse]
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/interface.xml'
Which clearly shows just the 4 interfaces. Then when one looks at the graphs page (graphs_new.php?host_id=xxx) there are 5 rows under this query. Index 1,2,3,4 and then another row with all entries blank aside from the IP, which is the IP of the ppp link (the actual ppp link row has blank IP).

I notice the link state is down (and snmpwalk confirms this - even though the link is clearly up) - is that what's confusing Cacti?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests