error in cacti.conf

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

error in cacti.conf

Post by yunusib »

Hi,

i ve got a issue when i a m restarting my apache server i m getting this error :

[root@ns2 /]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 9 of /etc/httpd/conf.d/cacti.conf:
Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]

i m on CentOS release 5.8 (Final) and cacti version is cacti-0.8.8a-1.el5.rf.noarch

Thanks for the help
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

Seems like its more of a apache/php issue than a cacti issue.
Obviously it doesn't like the php_flag command in the cacti.conf file.
Google php_flag httpd.conf
That should point you to similar issues.
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

Thanks Dan for the reply let me try to google it and i will be back to you ...

Yunus
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

Hi Dan,

It was my suPhp that was blocking everything ... i ve removed it and now the apache starting and i can loging to the cacti but in the graph section i cant see any graph ? any idea ?

thanks
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

Did you configure any graphs?
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

Thanks for the reply artagel ,

for the local host it should not show the graph like for the Memory Usage ? but i have just add a host but still the same not showing any graph ! and i have add Ping Latency to the host but showing the image but no information in it just image ...

thanks for your help
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

You need to provide screenshots and system details.
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

CentOS release 5.8 (Final)

Package cacti-0.8.8a-1.el5.rf.noarch

Regards
Attachments
THis is the screenshoot of cacti
THis is the screenshoot of cacti
cacti.png (23.57 KiB) Viewed 2485 times
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

Run poller in debug and show us the output of one poller cycle.
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

sorry artagel, it my first time installing cacti can you tell how to do that ? Run poller in debug !

Thks
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

Go to system settings and set the log level to debug.
Then wait for the poller to run and go to the log and show us what you got.
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

here is the cacti.log

09/05/2012 04:26:34 PM - WEBUI: Cacti Log Cleared from Web Management Interface
09/05/2012 05:10:39 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811037 --end=1346854237 --title='NS1 - Load Average' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' --units-exponent='0' COMMENT:"From 2012/09/05 05\:10\:37 To 2012/09/05 17\:10\:37\c" COMMENT:" \n" --vertical-label='processes in the run queue' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/ns1__load_1min_12.rrd":'load_1min':AVERAGE DEF:b="/var/www/cacti/rra/ns1__load_1min_12.rrd":'load_5min':AVERAGE DEF:c="/var/www/cacti/rra/ns1__load_1min_12.rrd":'load_15min':AVERAGE CDEF:cdefg='TIME,1346853939,GT,a,a,UN,0,a,IF,IF,TIME,1346853939,GT,b,b,UN,0,b,IF,IF,TIME,1346853939,GT,c,c,UN,0,c,IF,IF,+,+' AREA:a#EACC00FF:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00FF:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000FF:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000FF:"\n"

09/05/2012 05:10:39 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811037 --end=1346854237 --title='NS1 - Memory Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/09/05 05\:10\:37 To 2012/09/05 17\:10\:37\c" COMMENT:" \n" --vertical-label='kilobytes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/ns1__mem_buffers_10.rrd":'mem_buffers':AVERAGE DEF:b="/var/www/cacti/rra/ns1__mem_swap_11.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"

09/05/2012 05:10:39 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811037 --end=1346854237 --title='NS1 - Logged in Users' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/09/05 05\:10\:37 To 2012/09/05 17\:10\:37\c" COMMENT:" \n" --vertical-label='users' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/ns1__users_13.rrd":'users':AVERAGE AREA:a#4668E4FF:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"

09/05/2012 05:10:39 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811037 --end=1346854237 --title='NS1 - Ping Latency' --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/09/05 05\:10\:37 To 2012/09/05 17\:10\:37\c" COMMENT:" \n" --vertical-label='milliseconds' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/localhost_ping_8.rrd":'ping':AVERAGE AREA:a#FF6044FF:"Ping to ns2" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

09/05/2012 05:10:39 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811037 --end=1346854237 --title='NS1 - CPU Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/09/05 05\:10\:37 To 2012/09/05 17\:10\:37\c" COMMENT:" \n" --vertical-label='percent' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/ns1__5min_cpu_9.rrd":'5min_cpu':AVERAGE AREA:a#FF0000FF:"CPU Usage" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"

09/05/2012 05:11:40 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811099 --end=1346854299 --title='Localhost - Memory Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/09/05 05\:11\:39 To 2012/09/05 17\:11\:39\c" COMMENT:" \n" --vertical-label='kilobytes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/localhost_mem_buffers_3.rrd":'mem_buffers':AVERAGE DEF:b="/var/www/cacti/rra/localhost_mem_swap_4.rrd":'mem_swap':AVERAGE AREA:a#FF4105FF:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73BFF:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

09/05/2012 05:11:40 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811099 --end=1346854299 --title='Localhost - Logged in Users' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/09/05 05\:11\:39 To 2012/09/05 17\:11\:39\c" COMMENT:" \n" --vertical-label='users' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/localhost_users_6.rrd":'users':AVERAGE AREA:a#4668E4FF:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"

09/05/2012 05:11:40 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811099 --end=1346854299 --title='Localhost - Processes' --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/09/05 05\:11\:39 To 2012/09/05 17\:11\:39\c" COMMENT:" \n" --vertical-label='processes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/localhost_proc_7.rrd":'proc':AVERAGE AREA:a#F51D30FF:"Running Processes" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"

09/05/2012 05:11:41 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1346811099 --end=1346854299 --title='Localhost - Load Average' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' --units-exponent='0' COMMENT:"From 2012/09/05 05\:11\:39 To 2012/09/05 17\:11\:39\c" COMMENT:" \n" --vertical-label='processes in the run queue' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/www/cacti/rra/localhost_load_1min_5.rrd":'load_1min':AVERAGE DEF:b="/var/www/cacti/rra/localhost_load_1min_5.rrd":'load_5min':AVERAGE DEF:c="/var/www/cacti/rra/localhost_load_1min_5.rrd":'load_15min':AVERAGE CDEF:cdefg='TIME,1346854001,GT,a,a,UN,0,a,IF,IF,TIME,1346854001,GT,b,b,UN,0,b,IF,IF,TIME,1346854001,GT,c,c,UN,0,c,IF,IF,+,+' AREA:a#EACC00FF:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00FF:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000FF:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000FF:""

09/05/2012 05:11:51 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-604800 --end=-1800 --title='Localhost - 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="/var/www/cacti/rra/localhost_mem_buffers_3.rrd":'mem_buffers':AVERAGE DEF:b="/var/www/cacti/rra/localhost_mem_swap_4.rrd":'mem_swap':AVERAGE AREA:a#FF4105FF:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73BFF:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

09/05/2012 05:11:51 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-2678400 --end=-7200 --title='Localhost - 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="/var/www/cacti/rra/localhost_mem_buffers_3.rrd":'mem_buffers':AVERAGE DEF:b="/var/www/cacti/rra/localhost_mem_swap_4.rrd":'mem_swap':AVERAGE AREA:a#FF4105FF:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73BFF:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

09/05/2012 05:11:51 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-86400 --end=-300 --title='Localhost - 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="/var/www/cacti/rra/localhost_mem_buffers_3.rrd":'mem_buffers':AVERAGE DEF:b="/var/www/cacti/rra/localhost_mem_swap_4.rrd":'mem_swap':AVERAGE AREA:a#FF4105FF:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73BFF:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

09/05/2012 05:11:51 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-33053184 --end=-86400 --title='Localhost - 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="/var/www/cacti/rra/localhost_mem_buffers_3.rrd":'mem_buffers':AVERAGE DEF:b="/var/www/cacti/rra/localhost_mem_swap_4.rrd":'mem_swap':AVERAGE AREA:a#FF4105FF:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73BFF:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"


thanks for helping
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

That's the weblog of the graphs being created. I don't need that.
You need to turn on debug, let it run for at least 5 minutes until the next poller cycle(if you have 5 min cycles), then provide that data.
-Dan
Please mark the topic solved if this resolves your problem.
yunusib
Posts: 21
Joined: Wed Sep 05, 2012 1:20 am

Re: error in cacti.conf

Post by yunusib »

is this settings are good ? here is a screen !
Attachments
cacti_settings.png
cacti_settings.png (51.53 KiB) Viewed 2474 times
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: error in cacti.conf

Post by artagel »

Yes
So now go to System Utilities, and then view cacti log file. We'd like to see logs from the time the poller starts til it finishes.
-Dan
Please mark the topic solved if this resolves your problem.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests