UNIX Template Set for Cacti: HP-UX, Solaris, Linux
Moderators: Developers, Moderators
Hello!
I have the same problem like many people here - can't see the interface traffic
Before I implemented this template - I can see all traffic statistic in Cacti using the original template - ucd/net SNMP Host.
Now I have such a picture:
http://forums.cacti.net/files/cacti2_191.jpg
In the Data Query Debug Information:
I look in
/usr/local/share/cacti/resource/snmp_queries/interface.xml
and see the right OID for ifInOctets and ifOutOctets:
.1.3.6.1.2.1.2.2.1.10 and
.1.3.6.1.2.1.2.2.1.16
I don't understand how it realy works, but I want to fix it anyway
I run tcpdump and see:
I search thrue the /cacti/ directory, but can't find file with the string:
.1.3.6.1.2.1.2.2.1.10.2
but the string
.1.3.6.1.2.1.2.2.1.10
was only in the /cacti/resource/snmp_queries/interface.xml
Now, if somebody helps me with how to delete this "2" from OID, I think I can get my interface statistic.
Thank you.
I have the same problem like many people here - can't see the interface traffic
Before I implemented this template - I can see all traffic statistic in Cacti using the original template - ucd/net SNMP Host.
Now I have such a picture:
http://forums.cacti.net/files/cacti2_191.jpg
In the Data Query Debug Information:
Code: Select all
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/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]
+ 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='Down'] index: 3 [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='sit0'] index: 3 [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='tunnel(131)'] index: 3 [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='1000000000'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [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:13:D4:E1:EB:5C'] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [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='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='192.168.1.5'] index: 2 [from regexp oid parse]
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
/usr/local/share/cacti/resource/snmp_queries/interface.xml
and see the right OID for ifInOctets and ifOutOctets:
.1.3.6.1.2.1.2.2.1.10 and
.1.3.6.1.2.1.2.2.1.16
I don't understand how it realy works, but I want to fix it anyway
I run tcpdump and see:
Code: Select all
......
23:16:04.292423 IP 192.168.1.140.63823 > 192.168.1.5.161: C=***** GetRequest(30) .1.3.6.1.2.1.2.2.1.10.2
23:16:04.344925 IP 192.168.1.5.161 > 192.168.1.140.63823: C=***** GetResponse(35) .1.3.6.1.2.1.2.2.1.10.2=[|snmp]
23:16:04.346204 IP 192.168.1.140.55987 > 192.168.1.5.161: C=***** GetRequest(30) .1.3.6.1.2.1.2.2.1.16.2
23:16:04.405532 IP 192.168.1.5.161 > 192.168.1.140.55987: C=***** GetResponse(36) .1.3.6.1.2.1.2.2.1.16.2=[|snmp]
23:16:04.406781 IP 192.168.1.140.52709 > 192.168.1.5.161: C=***** GetRequest(30) .1.3.6.1.2.1.2.2.1.16.2
23:16:04.428800 IP 192.168.1.5.161 > 192.168.1.140.52709: C=***** GetResponse(36) .1.3.6.1.2.1.2.2.1.16.2=[|snmp]
23:16:04.430050 IP 192.168.1.140.52759 > 192.168.1.5.161: C=***** GetRequest(30) .1.3.6.1.2.1.2.2.1.10.2
23:16:04.464750 IP 192.168.1.5.161 > 192.168.1.140.52759: C=***** GetResponse(35) .1.3.6.1.2.1.2.2.1.10.2=[|snmp]
.1.3.6.1.2.1.2.2.1.10.2
but the string
.1.3.6.1.2.1.2.2.1.10
was only in the /cacti/resource/snmp_queries/interface.xml
Now, if somebody helps me with how to delete this "2" from OID, I think I can get my interface statistic.
Thank you.
- Attachments
-
- picture
- Cacti2.JPG (30.78 KiB) Viewed 19932 times
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
Ah... just found out this http://forums.cacti.net/viewtopic.php?t=23925
Using the above patch, the disk partition monitor is working.
Now only left the uptime is not working.
SH
Using the above patch, the disk partition monitor is working.
Now only left the uptime is not working.
SH
-
- Posts: 14
- Joined: Mon Dec 03, 2007 12:50 pm
Issue with Load average
Hello,
I have tested this template and am having an issue with load average.
But I didn't see this post was so long... I think, i didn't use the correct version of the template. I am gonna try another time...
I have tested this template and am having an issue with load average.
But I didn't see this post was so long... I think, i didn't use the correct version of the template. I am gonna try another time...
super-hornet wrote:Hi all
Is it me or what? I notice most of the ucd functions like ucd uptime, ucd fs cannot work in cacti 0.8.7. U either get no graph or graph with 0 value.
SH
Did anyone get the uptime to work? I'm having issues getting ucd_hrSystemUptime to work on some linux boxes even though I can get the OID from the servers.
[quote][b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.1
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-53.el5
[b]Web Server[/b] - Apache/2.2.3 (Red Hat)
[b]PHP[/b] - 5.1.6
[b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, ldap, mysqli, mysql, PDO, pdo_mysql, pdo_sqlite, snmp
[b]MySQL[/b] - 5.0.45
[b]RRDTool[/b] - 1.3rc6
[b]SNMP[/b] - 5.3.1
[b]Plugins[/b][list]Documents (docs - v0.1)
Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.5)
SSL Redirector (ssl - v0.1)
Thresholds (thold - v0.3.9)
Update Checker (update - v0.4)
Cacti-ReportIt (reportit - v0.6.1)[/list][/quote]
[b]Plugin Architecture[/b] - 2.1
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-53.el5
[b]Web Server[/b] - Apache/2.2.3 (Red Hat)
[b]PHP[/b] - 5.1.6
[b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, ldap, mysqli, mysql, PDO, pdo_mysql, pdo_sqlite, snmp
[b]MySQL[/b] - 5.0.45
[b]RRDTool[/b] - 1.3rc6
[b]SNMP[/b] - 5.3.1
[b]Plugins[/b][list]Documents (docs - v0.1)
Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.5)
SSL Redirector (ssl - v0.1)
Thresholds (thold - v0.3.9)
Update Checker (update - v0.4)
Cacti-ReportIt (reportit - v0.6.1)[/list][/quote]
I corrected it by just re-creating the template for uptime.
[quote][b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.1
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-53.el5
[b]Web Server[/b] - Apache/2.2.3 (Red Hat)
[b]PHP[/b] - 5.1.6
[b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, ldap, mysqli, mysql, PDO, pdo_mysql, pdo_sqlite, snmp
[b]MySQL[/b] - 5.0.45
[b]RRDTool[/b] - 1.3rc6
[b]SNMP[/b] - 5.3.1
[b]Plugins[/b][list]Documents (docs - v0.1)
Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.5)
SSL Redirector (ssl - v0.1)
Thresholds (thold - v0.3.9)
Update Checker (update - v0.4)
Cacti-ReportIt (reportit - v0.6.1)[/list][/quote]
[b]Plugin Architecture[/b] - 2.1
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-53.el5
[b]Web Server[/b] - Apache/2.2.3 (Red Hat)
[b]PHP[/b] - 5.1.6
[b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, ldap, mysqli, mysql, PDO, pdo_mysql, pdo_sqlite, snmp
[b]MySQL[/b] - 5.0.45
[b]RRDTool[/b] - 1.3rc6
[b]SNMP[/b] - 5.3.1
[b]Plugins[/b][list]Documents (docs - v0.1)
Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.5)
SSL Redirector (ssl - v0.1)
Thresholds (thold - v0.3.9)
Update Checker (update - v0.4)
Cacti-ReportIt (reportit - v0.6.1)[/list][/quote]
Uptime still broken
I still get an error in gra[h debug mode that says for uptime:
RRDTool Says:
ERROR: the RRD does not contain an RRA matching the chosen CF
How did you re-create the uptime template???
RRDTool Says:
ERROR: the RRD does not contain an RRA matching the chosen CF
How did you re-create the uptime template???
Re: Uptime still broken
emanners wrote:I still get an error in gra[h debug mode that says for uptime:
RRDTool Says:
ERROR: the RRD does not contain an RRA matching the chosen CF
How did you re-create the uptime template???
I recreated new templates (data & graph) using the same OID.
[quote][b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.1
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-53.el5
[b]Web Server[/b] - Apache/2.2.3 (Red Hat)
[b]PHP[/b] - 5.1.6
[b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, ldap, mysqli, mysql, PDO, pdo_mysql, pdo_sqlite, snmp
[b]MySQL[/b] - 5.0.45
[b]RRDTool[/b] - 1.3rc6
[b]SNMP[/b] - 5.3.1
[b]Plugins[/b][list]Documents (docs - v0.1)
Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.5)
SSL Redirector (ssl - v0.1)
Thresholds (thold - v0.3.9)
Update Checker (update - v0.4)
Cacti-ReportIt (reportit - v0.6.1)[/list][/quote]
[b]Plugin Architecture[/b] - 2.1
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-53.el5
[b]Web Server[/b] - Apache/2.2.3 (Red Hat)
[b]PHP[/b] - 5.1.6
[b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, ldap, mysqli, mysql, PDO, pdo_mysql, pdo_sqlite, snmp
[b]MySQL[/b] - 5.0.45
[b]RRDTool[/b] - 1.3rc6
[b]SNMP[/b] - 5.3.1
[b]Plugins[/b][list]Documents (docs - v0.1)
Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.5)
SSL Redirector (ssl - v0.1)
Thresholds (thold - v0.3.9)
Update Checker (update - v0.4)
Cacti-ReportIt (reportit - v0.6.1)[/list][/quote]
Who is online
Users browsing this forum: No registered users and 3 guests