Do not show graphs

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Do not show graphs

Post by mnnn »

hi
I installed the cacti on centos 6.7
snmp was apparently connected, but not graph

Code: Select all

SRV-ACD 	7 	1 	1 	[b]Unknown [/b]   192.168.10.10 	0 	0 	100
Thanks
Attachments
cacti_2.jpg
cacti_2.jpg (269.13 KiB) Viewed 2262 times
mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Re: Do not show graphs

Post by mnnn »

Code: Select all

Inbound Data Source
The data source to use for this graph item. 	
Outbound Data Source
The data source to use for this graph item. 	

	RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='ACD-SRV - Traffic - ethernet_5' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/8/62.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/8/62.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound'  \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:cdefe#002A97FF:'Outbound'  \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n' 

RRDTool Says:

ERROR: opening '/usr/share/cacti/rra/8/62.rrd': No such file or directory
what am i doiing ?!!!!
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Do not show graphs

Post by micke2k »

Permissions?

Whats your permission and owner of /rra and log ?
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Do not show graphs

Post by micke2k »

micke2k wrote:Permissions?

Whats your permission and owner of /rra and log ?
EDIT:

Also check SELINUX if its disabled.
mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Re: Do not show graphs

Post by mnnn »

thanks for replay

Code: Select all

 ls -l /usr/share/cacti/rra
lrwxrwxrwx. 1 root root 18 Mar  9 18:19 /usr/share/cacti/rra -> /var/lib/cacti/rra

Code: Select all

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Code: Select all

Graph Item Fields
Free Data Source
The data source to use for this graph item. 	
Swap Data Source
The data source to use for this graph item. 	

	RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='cent os - Memory Usage' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='kilobytes' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/9/65.rrd':'mem_buffers':AVERAGE \
DEF:b='/usr/share/cacti/rra/9/66.rrd':'mem_swap':AVERAGE \
CDEF:cdefa='a,1024,*' \
CDEF:cdefe='b,1024,*' \
AREA:cdefa#FF4105FF:'Free'  \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:cdefe#FFC73BFF:'Swap':STACK \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n' 

RRDTool Says:

ERROR: opening '/usr/share/cacti/rra/9/65.rrd': No such file or directory
Last edited by mnnn on Fri Mar 11, 2016 1:15 pm, edited 1 time in total.
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Do not show graphs

Post by micke2k »

Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

shell> chown -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gatherin
http://www.cacti.net/downloads/docs/htm ... cacti.html

Change the permissions to the correct one!
mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Re: Do not show graphs

Post by mnnn »

thanks
if i with user admin im login in cacti panel

is this way to write ?

Code: Select all

chown -R admin /usr/share/cacti/rra /log

Code: Select all

cacti]# chown -R admin  rra/ log
chown: invalid user: `admin'
i dont have this user ! , But I logon username to Panel cacti !
Last edited by mnnn on Fri Mar 11, 2016 1:55 pm, edited 1 time in total.
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Do not show graphs

Post by micke2k »

mnnn wrote:thanks
if i with user admin im login in cacti panel

is this way to write ?

Code: Select all

chown -R admin /usr/share/cacti/rra

or

Code: Select all

chown -R admin rra/log 
Try this, change the folder to the correct first.

Code: Select all

cd /var/www/html/cacti
chown -R admin rra/ log/
mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Re: Do not show graphs

Post by mnnn »

Code: Select all

cd /var/www/
cgi-bin/ error/   html/    icons/
[root@Centos html]# cd /var/www/html/cacti
-bash: cd: /var/www/html/cacti: No such file or directory
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Do not show graphs

Post by micke2k »

mnnn wrote:

Code: Select all

cd /var/www/
cgi-bin/ error/   html/    icons/
[root@Centos html]# cd /var/www/html/cacti
-bash: cd: /var/www/html/cacti: No such file or directory
Where is your cacti installed?
mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Re: Do not show graphs

Post by mnnn »

Thanks
Im like this installed
Yum install cacti
Then anywhere this cacti is installed . can i change file there?
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Do not show graphs

Post by micke2k »

Show the permissions of /usr/share/cacti/rra/
mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Re: Do not show graphs

Post by mnnn »

lrwxrwxrwx 1 root root 18 Mar 13 15:55 /usr/share/cacti/rra -> /var/lib/cacti/rra

[root@Centos rra]# ls -a
. ..
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Do not show graphs

Post by micke2k »

What user is running cacti? cactiuser/cacti ?

How does your cronjob look?

Also how does your cacti.log look?
mnnn
Posts: 9
Joined: Thu Mar 10, 2016 5:15 am

Re: Do not show graphs

Post by mnnn »

thanks for replay
cron job cacti

Code: Select all

*/5 * * * *     cacti   /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&
cacti log

Code: Select all

03/13/2016 04:02:13 PM - AUTH LOGIN: User 'admin' Authenticated
~
~
The root user access to the database admin logon user cacti but I cacti panel
Is it the same?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest