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

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

Moderators: Developers, Moderators

Post Reply
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

tell me how i work with .j please
well i have this and no graph:
Attachments
00.jpg
00.jpg (68.99 KiB) Viewed 17793 times
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

anyone can help me please
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

hello
i have found new probleme in the data queries option :
the screen u can see this problem
Warning: is_file(): Stat failed for /var/www/html/cacti/resource/snmp_queries/hpux_fs.xml (errno=13 - Permission denied) in /var/www/html/cacti/data_queries.php on line 573
Could not locate XML file.
i a m on red hat 4es
cacti 0.8.6j
please how to fix this prbleme please
Attachments
00.jpg
00.jpg (65.55 KiB) Viewed 17759 times
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

can you run that :

Code: Select all

$ ls -l /var/www/html/cacti/resource/snmp_queries/hpux_fs.xml
[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]
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

[root@localhost snmp_queries]# clear
[root@localhost snmp_queries]# ls -l
total 68
-rw-r--r-- 1 1000 users 1373 jan 18 01:23 host_disk.xml
-rw-r--r-- 1 1000 users 2545 avr 30 06:50 hpux_fs.xml
-rw-r--r-- 1 1000 users 2882 avr 30 06:50 hpux_lan.xml
-rw-r--r-- 1 1000 users 4312 jan 18 01:23 interface.xml
-rw-r--r-- 1 1000 users 3256 jan 18 01:23 kbridge.xml
-rw-r--r-- 1 1000 users 1532 jan 18 01:23 net-snmp_disk.xml
-rw-r--r-- 1 1000 users 1753 jan 18 01:23 netware_cpu.xml
-rw-r--r-- 1 1000 users 2104 jan 18 01:23 netware_disk.xml
[root@localhost snmp_queries]#
thanks for u help
Rael
Cacti User
Posts: 129
Joined: Thu Apr 05, 2007 9:28 am

Post by Rael »

My graphs for memory and swap are showing M instead of G. (IE: 8 M of swap instead of 8 G of swap.)

How do we correct this?
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

please screen
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
Rael
Cacti User
Posts: 129
Joined: Thu Apr 05, 2007 9:28 am

Post by Rael »

Mika2006 wrote:please screen
What?
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

sorry i have wrong seen you answer
sorry
well i don't know how change this sorry
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
User avatar
deimeke
Posts: 9
Joined: Wed Dec 17, 2003 3:14 am

Post by deimeke »

Rael wrote:My graphs for memory and swap are showing M instead of G. (IE: 8 M of swap instead of 8 G of swap.)

How do we correct this?
Please look, the graph is in kilobytes.

8 M kilobytes are 8 Gigabytes

It is a little bit tricky ...

Dirk
jwoo
Posts: 1
Joined: Wed Jun 13, 2007 6:40 pm

Post by jwoo »

You can change your graphs to show G instead of M kilobytes.

First go to Graph Management -- CDEFs and click add to create a new CDEF for * -1024. The 3 items should be like this:
Item #1 Special Data Source: CURRENT_DATA_SOURCE
Item #2 Custom String: -1024
Item #3 Operator: *

Here is how to change the Swap graph:

Go to the graph template:
- change the total item "(ucd_memTotalSwap): Total" to use CDEF function "Multiply by 1024"
- change the free item "(ucd_memAvailSwap): Free" to use the CDEF function you created for -1024.
- change all the other items (Current, min, max, avg) to use "Multiply by 1024".
- make sure the Base Value is set to 1024
- Change the kilobytes to bytes for the vertical label and you are all set.

edited Jun 14, 2007 - clarifying some details.
Last edited by jwoo on Thu Jun 14, 2007 9:17 am, edited 1 time in total.
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

interresting
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
ltfrebac
Posts: 2
Joined: Fri Aug 24, 2007 9:03 am

Numbers on HP-UX Lan doesnt match the real world

Post by ltfrebac »

Hi
I got the HP-UX template up and running but I have noticed that the numbers on my LAN interface are incorrect. If I check the graphs of the switchport that the same host is connected to I get a maximum value of 500-800 Mbit/s (1 Gigabit Ehternet interface and during backup) and if I check the hp-ux lan graph it says max around 15Mbyte/s. Any ideas what the problem can be?
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

Post by looc »

why memory display 2M?
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
rocketman
Posts: 2
Joined: Thu Jul 20, 2006 3:59 am

Post by rocketman »

jwoo wrote:You can change your graphs to show G instead of M kilobytes.
I try this recept, but got:
CDEF:cdefa=a,1024,* \
CDEF:cdefc=0,-1024,* \
CDEF:cdefd=b,1024,* \
AREA:cdefa#FF0000:"Total" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s\n" \
AREA:cdefc#00B99B:"Free":STACK \
GPRINT:cdefd:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefd:MIN:"Min\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Max\:%8.2lf %s"

RRDTool Says:

ERROR: rpn expressions without DEF or CDEF variables are not supported

I have use Cacti 0.8.6j, under FreeBSD and Gentoo host with NET-SNMP 5.4.1
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests