UNIX Template Set for Cacti: HP-UX, Solaris, Linux

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Rael
Cacti User
Posts: 129
Joined: Thu Apr 05, 2007 9:28 am

Post by Rael »

Another issue.

The running processes count graph is capped at 1000.

I have a host running many more processes than that, how do I change that upper limit?

I tried a few things and the graph just broke.

Any ideas?

I would set max to 10K instead of 1K
Rael
Cacti User
Posts: 129
Joined: Thu Apr 05, 2007 9:28 am

Post by Rael »

anyone? :)
kapa
Posts: 7
Joined: Tue Oct 23, 2007 3:25 am
Location: Moscow

Post by kapa »

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:

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'
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 8)

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]
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.
Attachments
picture
picture
Cacti2.JPG (30.78 KiB) Viewed 19738 times
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

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
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

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
Rael
Cacti User
Posts: 129
Joined: Thu Apr 05, 2007 9:28 am

Post by Rael »

Rael wrote:Another issue.

The running processes count graph is capped at 1000.

I have a host running many more processes than that, how do I change that upper limit?

I tried a few things and the graph just broke.

Any ideas?

I would set max to 10K instead of 1K
Anyone?
guigzmorez
Posts: 14
Joined: Mon Dec 03, 2007 12:50 pm

Issue with Load average

Post by guigzmorez »

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...
algolee
Posts: 1
Joined: Wed Jan 09, 2008 10:47 pm

Post by algolee »

Dear sir

Can this template use on HP-UX 11.23 (Dual Core Itanium CPU )??
Because I just saw one CPU usage

Thanks ^^
Attachments
HPUX.gif
HPUX.gif (29.02 KiB) Viewed 18818 times
rlund
Posts: 16
Joined: Fri Apr 11, 2008 9:19 am

Post by rlund »

Will this work on HP Proliant servers running SUSE LINUX Enterprise Server?
windsor
Posts: 24
Joined: Fri May 07, 2004 5:26 pm
Location: Texas!

Post by windsor »

rlund wrote:Will this work on HP Proliant servers running SUSE LINUX Enterprise Server?
Go by the OS, so use the linux pieces. Cacti ships with a fairly usable linux templates already, though.
karias
Cacti User
Posts: 60
Joined: Wed Oct 25, 2006 10:36 am

Post by karias »

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]
trunty
Posts: 2
Joined: Mon Aug 11, 2008 3:50 pm
Location: San Antonio, TX

Post by trunty »

I too would like to know if anyone else is having issues with the uptime not showing up and how they resolved it. i am running cacti version 0.8.7b
karias
Cacti User
Posts: 60
Joined: Wed Oct 25, 2006 10:36 am

Post by karias »

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]
emanners
Posts: 3
Joined: Mon Aug 25, 2008 9:40 am

Uptime still broken

Post by emanners »

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???
karias
Cacti User
Posts: 60
Joined: Wed Oct 25, 2006 10:36 am

Re: Uptime still broken

Post by karias »

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]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests