Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


UNIX Template Set for Cacti: HP-UX, Solaris, Linux
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Fri May 11, 2007 3:03 am    Post subject: Reply with quote

tell me how i work with .j please
well i have this and no graph:



00.jpg
 Description:
 Filesize:  68.99 KB
 Viewed:  6537 Time(s)

00.jpg


Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Mon May 14, 2007 4:07 am    Post subject: Reply with quote

anyone can help me please
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Mon May 14, 2007 5:37 am    Post subject: Reply with quote

hello
i have found new probleme in the data queries option :
the screen u can see this problem
Quote:

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



00.jpg
 Description:
 Filesize:  65.55 KB
 Viewed:  6503 Time(s)

00.jpg


Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Mon May 14, 2007 7:22 am    Post subject: Reply with quote

Hi

can you run that :
Code:
$ ls -l /var/www/html/cacti/resource/snmp_queries/hpux_fs.xml
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Mon May 14, 2007 7:59 am    Post subject: Reply with quote

Quote:

[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
Back to top
Rael
Cacti User


Joined: 05 Apr 2007
Posts: 128

PostPosted: Tue May 29, 2007 9:46 am    Post subject: Reply with quote

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?
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Tue May 29, 2007 9:49 am    Post subject: Reply with quote

please screen
Back to top
Rael
Cacti User


Joined: 05 Apr 2007
Posts: 128

PostPosted: Tue May 29, 2007 9:53 am    Post subject: Reply with quote

Mika2006 wrote:
please screen


What?
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Tue May 29, 2007 10:44 am    Post subject: Reply with quote

sorry i have wrong seen you answer
sorry
well i don't know how change this sorry
Back to top
deimeke



Joined: 17 Dec 2003
Posts: 9

PostPosted: Wed May 30, 2007 2:57 am    Post subject: Reply with quote

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
Back to top
jwoo



Joined: 13 Jun 2007
Posts: 1

PostPosted: Wed Jun 13, 2007 6:50 pm    Post subject: Reply with quote

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
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Thu Jun 14, 2007 3:01 am    Post subject: Reply with quote

interresting
Back to top
ltfrebac



Joined: 24 Aug 2007
Posts: 1

PostPosted: Fri Aug 24, 2007 9:10 am    Post subject: Numbers on HP-UX Lan doesnt match the real world Reply with quote

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?
Back to top
looc
Cacti User


Joined: 13 Aug 2007
Posts: 110

PostPosted: Tue Sep 11, 2007 9:59 pm    Post subject: Reply with quote

why memory display 2M?
Back to top
rocketman



Joined: 20 Jul 2006
Posts: 2

PostPosted: Tue Oct 09, 2007 9:58 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 



Powered by phpBB © 2001, 2005 phpBB Group