Last obstacle I think

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

Moderators: Developers, Moderators

Post Reply
manish686
Posts: 4
Joined: Fri May 25, 2012 5:36 am

Last obstacle I think

Post by manish686 »

What I really think the data is not being fed into the rrd as a result no graphs . However please what the best can be done in this case? heres the graph error

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Logged in Users' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--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"

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/localhost_users_6.rrd': No such file or directory


Also the status of the added devices shows unknown. Please help me with it asap
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Last obstacle I think

Post by paulgevers »

Please check bug 2229
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
manish686
Posts: 4
Joined: Fri May 25, 2012 5:36 am

Re: Last obstacle I think

Post by manish686 »

i am extremely sorry for giving u trouble .Actually I am quite new to cacti further for the bug reciprocated I didnot get anything worth to start with. Further I came across that even the cacti log files are completely empty.
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Last obstacle I think

Post by paulgevers »

Did you refresh the poller cache? Did that help?
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
manish686
Posts: 4
Joined: Fri May 25, 2012 5:36 am

Re: Last obstacle I think

Post by manish686 »

nopes..!! it appears empty still...!! for data source debug mode I am getng this

Data Source Debug

/usr/bin/rrdtool create \
/var/www/cacti/rra/localhost_load_1min_5.rrd \
--step 300 \
DS:load_1min:GAUGE:600:0:500 \
DS:load_5min:GAUGE:600:0:500 \
DS:load_15min:GAUGE:600:0:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

how to know whether its recieving the data traps also??? cacti log file empty.....status of devices says unknown yet it pings and shows the snmp also working fine..... yet graph debug mode gives this..
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Load Average' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--units-exponent='0' \
--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,1339995235,GT,a,a,UN,0,a,IF,IF,TIME,1339995235,GT,b,b,UN,0,b,IF,IF,TIME,1339995235,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:""

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/localhost_load_1min_5.rrd': No such file or directory


kindly help..!!!!
Schnark
Posts: 20
Joined: Sun May 23, 2010 5:57 pm

Re: Last obstacle I think

Post by Schnark »

Hi,

Have run into this on several occasions and here's some of the fixes that work depending on the situation:
- Restart SNMP on the device
- Check that you can poll another graph on the server - if so, try doing a debug query on that
- Do a snmpwalk from the Cacti server on the device and confirm that you can get to it
- Check the OS version on the device against the other versions for devices you poll - i've had specific devices that wouldn't work in Cacti until they were on a later device version. This was an issue with the Device's SNMP stack

Hope this helps
MuddyMagical
Posts: 4
Joined: Mon Jun 18, 2012 6:32 am

Re: Last obstacle I think

Post by MuddyMagical »

The error

Code: Select all

ERROR: opening '/var/www/cacti/rra/localhost_load_1min_5.rrd': No such file or directory
already gives it away a little. The permissions for the user running Cacti are not set correct. Please check whether there is a .rrd file in the location the error specifies. I guess there is not.

Please adjust the permissions or create the file manually.
Schnark
Posts: 20
Joined: Sun May 23, 2010 5:57 pm

Re: Last obstacle I think

Post by Schnark »

I've seen this happen when the permissions on one NTFS folder are exactly the same as other ones and this was fixed through a combination of the suggestions I made above. That said, fully agree with checking the permissions.
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Last obstacle I think

Post by paulgevers »

Probably a very stupid question, but did you actually create a cron job to run the poller?
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest