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

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

Moderators: Developers, Moderators

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

Post by fmangeant »

Many thanks for the HP-UX templates, I'm using them on ia64 where Net-SNMP doesn't want to build.
[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]
rafiso
Posts: 20
Joined: Sat Dec 10, 2005 8:54 pm

yeah !

Post by rafiso »

that's great templates !

Anyway could you just correct the bug with the units ?
I also got 2M instead of 2G :) That's too bad !

Is there an easy way to fix this ? Thanks you again for your help !

raf
lrhazi
Posts: 4
Joined: Mon Jun 26, 2006 2:06 pm

Post by lrhazi »

Do you guys use the network interfaces graphs? do they work for you?
Mine never show any data at all!
Mohamed~
drtns
Posts: 1
Joined: Thu Jul 20, 2006 9:14 am

need to fix the units for SWAP

Post by drtns »

These are great templates... I must agree though can we get someone with the know-how to post a new template for SWAP which has the unit's fixed... my server with 1.5 GB of SWAP is showing up as 1.5MB....

If not a new template can someone post a walkthrough on how to make these changes directly in cacti.
abraham
Posts: 1
Joined: Tue Oct 10, 2006 12:32 am

HPUX CPU Usage

Post by abraham »

Hi,

What is mean of m, n and u in GPRINT item in HPUX CPU usage graph?

Thanks a lot!
adumont
Posts: 16
Joined: Sat Nov 26, 2005 8:43 am
Location: Spain
Contact:

Post by adumont »

fmangeant wrote:Many thanks for the HP-UX templates, I'm using them on ia64 where Net-SNMP doesn't want to build.
I've not tried the templates on HPUX Ia64, but on HP-UX Parisc at least there is no need to use NetSNMP. The template for hpux hosts was designed to be used with the standard hpux SNMPd.

Please post here if it work ok for IA64.

This is not true for Solaris, where you need to be running NetSNMP for the template to be fully working, as the standard solaris snmpd won't report enough information (that is too bad I think!)
Jent
Posts: 4
Joined: Thu Dec 14, 2006 4:37 am

Problems with Solaris9

Post by Jent »

hello,

I am using Solaris9 and trying to get all the possible information available through SNMP beigh graphed by cacti. I've downloaded the templates you've made. My snmpd configuration is as simple as possible. Im just defining get and set communities, so I shouldn't be restricting type of data queries by any means, right?

The problem is, that Im not getting anything except interface traffic graphed. I've tried both Linux host and Solaris host, but all the same. CPU is nan and everything else 0.00. Any suggestions?
adumont
Posts: 16
Joined: Sat Nov 26, 2005 8:43 am
Location: Spain
Contact:

Re: Problems with Solaris9

Post by adumont »

Jent wrote:hello,

I am using Solaris9 and trying to get all the possible information available through SNMP beigh graphed by cacti. I've downloaded the templates you've made. My snmpd configuration is as simple as possible. Im just defining get and set communities, so I shouldn't be restricting type of data queries by any means, right?

The problem is, that Im not getting anything except interface traffic graphed. I've tried both Linux host and Solaris host, but all the same. CPU is nan and everything else 0.00. Any suggestions?
You need to install NetSNMPd. You can also use NetSNMP with Solaris SNMP agent.
CdG
Posts: 17
Joined: Tue Jun 20, 2006 9:04 am

error in DS template ucd_ssCpuRawWait

Post by CdG »

After investigating a lot of errrors like this:

Code: Select all

ERROR: Problems parsing Multi SNMP OID! (oid: .1.3.6.1.4.1.2021.11.54.0 )
I figured out what is wrong: There is a trailing whitespace behind the OID .1.3.6.1.4.1.2021.11.54.0 in Data Source template ucd_ssCpuRawWait.

I removed the whitespace and the problem went away :-)
rprague
Posts: 25
Joined: Fri Jul 25, 2003 12:44 pm
Location: Portland OR
Contact:

Post by rprague »

Just trying these templates out myself, I'm really interested in being able to use cacti with our HPUX production boxes, unfortunately it seems like the main queries (processes, uptime, memory, etc) are all returning 0, but the graphs are being created.

The LAN stats and disk statistic stats aren't even being created, they just stay red-x'd.

The verbose query looks right, its finding all of my file systems:

Code: Select all

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.11.2.3.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.11.2.3.1.2.2.1.1'
+ Found item [ifIndex='1073741825'] index: 1073741825.0 [from value]
+ Found item [ifIndex='1073741827'] index: 1073741827.6 [from value]
+ Found item [ifIndex='1073741828'] index: 1073741828.6 [from value]
+ Found item [ifIndex='1073741829'] index: 1073741829.6 [from value]
+ Found item [ifIndex='1073741830'] index: 1073741830.6 [from value]
+ Found item [ifIndex='1073741831'] index: 1073741831.6 [from value]
+ Found item [ifIndex='1073741832'] index: 1073741832.6 [from value]
+ Found item [ifIndex='1073807361'] index: 1073807361.6 [from value]
+ Located input field 'fileSystemName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.11.2.3.1.2.2.1.3'
+ Found item [fileSystemName='/dev/vg00/lvol1'] index: 1073741825.0 [from value]
+ Found item [fileSystemName='/dev/vg00/lvol3'] index: 1073741827.6 [from value]
+ Found item [fileSystemName='/dev/vg00/lvol4'] index: 1073741828.6 [from value]
+ Found item [fileSystemName='/dev/vg00/lvol5'] index: 1073741829.6 [from value]
+ Found item [fileSystemName='/dev/vg00/lvol6'] index: 1073741830.6 [from value]
+ Found item [fileSystemName='/dev/vg00/lvol7'] index: 1073741831.6 [from value]
+ Found item [fileSystemName='/dev/vg00/lvol8'] index: 1073741832.6 [from value]
+ Found item [fileSystemName='/dev/vg01/lvol1'] index: 1073807361.6 [from value]
+ Located input field 'fileSystemDir' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.11.2.3.1.2.2.1.10'
+ Found item [fileSystemDir='/stand'] index: 1073741825.0 [from value]
+ Found item [fileSystemDir='/'] index: 1073741827.6 [from value]
+ Found item [fileSystemDir='/tmp'] index: 1073741828.6 [from value]
+ Found item [fileSystemDir='/home'] index: 1073741829.6 [from value]
+ Found item [fileSystemDir='/opt'] index: 1073741830.6 [from value]
+ Found item [fileSystemDir='/usr'] index: 1073741831.6 [from value]
+ Found item [fileSystemDir='/var'] index: 1073741832.6 [from value]
+ Found item [fileSystemDir='/cfmc'] index: 1073807361.6 [from value]
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/hpux_fs.xml'
There aren't any errors in the logs, but there are an awful lot of these entries for both the Linux and HPUX box I'm trying to use this template with:

Code: Select all

04/01/2007 02:05:40 AM - CMDPHP: Poller[0] Host[16] DS[129] WARNING: Result from SNMP not valid.  Partial Result:
04/01/2007 02:05:40 AM - CMDPHP: Poller[0] Host[16] DS[130] WARNING: Result from SNMP not valid.  Partial Result:
04/01/2007 02:05:40 AM - CMDPHP: Poller[0] Host[16] DS[131] WARNING: Result from SNMP not valid.  Partial Result:
04/01/2007 02:05:40 AM - CMDPHP: Poller[0] Host[16] DS[132] WARNING: Result from SNMP not valid.  Partial Result:
Any idea what I'm doing wrong?
....
adumont
Posts: 16
Joined: Sat Nov 26, 2005 8:43 am
Location: Spain
Contact:

Post by adumont »

Hi,

Did you follow the instructions in the INSTALL text file?
rprague
Posts: 25
Joined: Fri Jul 25, 2003 12:44 pm
Location: Portland OR
Contact:

Post by rprague »

Yes, I followed the INSTALL file, both hpux_lan and hpux_fs xml files are in snmp_queries, and the system does see all of the file systems in the verbose query, but for some reason the graphs aren't being created for the file system, and all of the other graphs never collect data.

I just turned my logging to debug level for the next polling interval, hopefully that will give me more information.
....
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

I have problem i instal like the reamde says:
and i have this message:
Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/hpux_fs.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/hpux_fs.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/hpux_fs.xml'
please someone can help me please
Attachments
00.jpg
00.jpg (122.1 KiB) Viewed 19236 times
rprague
Posts: 25
Joined: Fri Jul 25, 2003 12:44 pm
Location: Portland OR
Contact:

Post by rprague »

I'm unable to get these scripts working with the latest .j release of cacti, does anyone have an updated set? I would love to get some of my HPUX stuff into cacti.
....
rprague
Posts: 25
Joined: Fri Jul 25, 2003 12:44 pm
Location: Portland OR
Contact:

Post by rprague »

rprague wrote:I'm unable to get these scripts working with the latest .j release of cacti, does anyone have an updated set? I would love to get some of my HPUX stuff into cacti.
After reading the thread, I tried everything again from scratch and it worked PERFECTLY.

Thanks so much for these templates.
....
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests