I'd generally recommend making it work without rrdcached and then enabling rrdcached if you have write perf issues (rrdcached can make graph generation slower)
Adam.
Sent from BlueMail
On 9 Sep 2017, 08:53, at 08:53, Michael obslist@smarsz.com wrote:
Port-534.rrd does not exist in your directory.
It looks like you have a permissions issue or a problem with your rrdcached.
M
On 9 September 2017 2:45:02 PM AEST, Peter Derissen peter.derissen@eurofiber.com wrote:
Goodmorning,
I just tried the url. Changed the id to 20 because im ignoring some ports.
This is wat i see:
RRDTool Output: 1233x397 RRDtool Runtime: 0.072s | Total time: 0.073s
RRDTool Command /usr/bin/rrdtool graph --daemon unix:/var/run/rrdcached.sock /tmp/8vpIK7IMFCS0jU5Q.png -Y --alt-autoscale --rigid --start
1504812766
--end 1504899166 --width 1152 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c FONT#000000 -c CANVAS#FFFFFF00
-c
GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal --font LEGEND:8:'DroidSansMono,DejaVuSansMono' --font AXIS:7:'DroidSansMono,DejaVuSansMono' --font-render-mode normal -E COMMENT:'Bits/s Last Avg Max 95th \n' DEF:outoctets=/opt/observium/rrd/cr1.asd0033/port-534.rrd:OUTOCTETS:AVERAGE DEF:inoctets=/opt/observium/rrd/cr1.asd0033/port-534.rrd:INOCTETS:AVERAGE DEF:outoctets_max=/opt/observium/rrd/cr1.asd0033/port-534.rrd:OUTOCTETS:MAX DEF:inoctets_max=/opt/observium/rrd/cr1.asd0033/port-534.rrd:INOCTETS:MAX CDEF:alloctets=outoctets,inoctets,+ CDEF:wrongin=alloctets,UN,INF,UNKN,IF CDEF:wrongout=wrongin,-1,* CDEF:octets=inoctets,outoctets,+ CDEF:doutoctets=outoctets,-1,* CDEF:outbits=outoctets,8,* CDEF:outbits_max=outoctets_max,8,* CDEF:doutoctets_max=outoctets_max,-1,* CDEF:doutbits=doutoctets,8,* CDEF:doutbits_max=doutoctets_max,8,* CDEF:inbits=inoctets,8,* CDEF:inbits_max=inoctets_max,8,* VDEF:totin=inoctets,TOTAL VDEF:totout=outoctets,TOTAL VDEF:tot=octets,TOTAL VDEF:95thin=inbits,95,PERCENT VDEF:95thout=outbits,95,PERCENT CDEF:pout_tmp=doutbits,-1,* VDEF:dpout_tmp=pout_tmp,95,PERCENT CDEF:dpout_tmp2=doutbits,doutbits,-,dpout_tmp,-1,*,+ VDEF:d95thout=dpout_tmp2,FIRST AREA:inbits#92B73F LINE1.25:inbits#4A8328:'In ' GPRINT:inbits:LAST:%6.2lf%s GPRINT:inbits:AVERAGE:%6.2lf%s GPRINT:inbits_max:MAX:%6.2lf%s GPRINT:95thin:%6.2lf%s\n AREA:doutbits#7075B8 LINE1.25:doutbits#323B7C:'Out' GPRINT:outbits:LAST:%6.2lf%s GPRINT:outbits:AVERAGE:%6.2lf%s GPRINT:outbits_max:MAX:%6.2lf%s GPRINT:95thout:%6.2lf%s\n LINE1:95thin#aa0000 LINE1:d95thout#bb0000 GPRINT:tot:'Total %6.2lf%s' GPRINT:totin:'(In %6.2lf%s' GPRINT:totout:'Out %6.2lf%s)\l' AREA:wrongin#FFF2F2 AREA:wrongout#FFF2F2
RRDTool Files Used /opt/observium/rrd/cr1.asd0033/port-534.rrd
Here a snippy from the graph:
[cid:image001.png@01D32936.165E7BE0]
Also a snippy from the rrd directory of the router.
[cid:image002.png@01D32936.165E7BE0]
Met vriendelijke groet,
Peter Derissen Eurofiber Nederland Network Engineer Safariweg 25-31 +31 (0)6 11587110 3605 MA Maarssen
[EF-logo_rood_RGB -handtekening]http://www.eurofiber.nl/
Volg ons op Twitterhttps://twitter.com/Eurofiber | Linkedinhttps://www.linkedin.com/company/eurofiber | Youtubehttps://www.youtube.com/user/Eurofibergroup
[cid:image002.png@01D225FF.7ECDA420]http://bit.ly/2eaBgRh
Van: observium [mailto:observium-bounces@observium.org] Namens Adam Armstrong Verzonden: vrijdag 8 september 2017 21:34 Aan: observium@observium.org Onderwerp: Re: [Observium] Problem with graphs (-nan)
Hi Peter,
Try this URL (assuming you have a port with the id of 1, since it's a new install :
/graphs/type=port_bits/to=1504899166/id=1/from=1504812766/height=300/width=1152/showcommand=yes/
If the graph is broken on that page, you should still see the error output towards the bottom of the page.
You can see if the poller is correctly generating RRDs by looking in the observium/rrds/<hostname>/ directories
adam.
On 2017-09-08 14:20:28, Peter Derissen <peter.derissen@eurofiber.commailto:peter.derissen@eurofiber.com> wrote: Tom,
With running smooth i mean it polls normally. Al info on the site is accurate. Running 36 threads now. Was pretty slow before. Added rrdcached also.
Any way to check if the permissions are set ok? This is what i have setup in my cron jobs.
33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1
# Run automated discovery of newly added devices every 5 minutes */5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1
# Run multithreaded poller wrapper every 5 minutes */5 * * * * root /opt/observium/poller-wrapper.py 36 >> /dev/null 2>&1
# Run housekeeping script daily for syslog, eventlog and alert log 13 5 * * * root /opt/observium/housekeeping.php -ysel >> /dev/null
2>&1
# Run housekeeping script daily for rrds, ports, orphaned entries in the database and performance data 47 4 * * * root /opt/observium/housekeeping.php -yrptb >> /dev/null 2>&1 0 * * * * /etc/webmin/bandwidth/rotate.pl #Run alerter */5 * * * * root /opt/observium/alerter.php -h all >> /dev/null 2>&1
Met vriendelijke groet,
Peter Derissen Eurofiber Nederland Network Engineer Safariweg 25-31 +31 (0)6 11587110 3605 MA Maarssen
[EF-logo_rood_RGB -handtekening]http://www.eurofiber.nl/
Volg ons op Twitterhttps://twitter.com/Eurofiber | Linkedinhttps://www.linkedin.com/company/eurofiber | Youtubehttps://www.youtube.com/user/Eurofibergroup
[cid:image002.png@01D225FF.7ECDA420]http://bit.ly/2eaBgRh
Van: observium [mailto:observium-bounces@observium.org] Namens Tom Laermans Verzonden: vrijdag 8 september 2017 14:42 Aan: observium@observium.orgmailto:observium@observium.org Onderwerp: Re: [Observium] Problem with graphs (-nan)
That is not required, what's more, it's recommended against as it can cause issues. Peter, if you don't have graphs, what do you consider 'running smooth' ? It's likely an issue with the cron jobs, and/or permissions on the RRD files.
Tom On 09/08/2017 02:37 PM, MAILLET Julien wrote: Hello, At the end of the config.php file try to add “?>”
Julien Maillet 04 42 39 14 03
De : observium [mailto:observium-bounces@observium.org] De la part de Peter Derissen Envoyé : vendredi 8 septembre 2017 14:12 À : observium@observium.orgmailto:observium@observium.org Objet : [Observium] FW: Problem with graphs (-nan)
Hello,
Currently Eurofiber is testing Observium in our live network. So far it runs smooth.
We only have 1 problem. The graphs are empty (-nan). My guess its a config.php error but im not sure.
I have added a screenshot and the config.php file.
Regards,
Met vriendelijke groet,
Peter Derissen Eurofiber Nederland
******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that
is
confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system.
Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Eurofiber only sends and receives e-mails on the basis that Eurofiber is not responsible for any such computer viruses, corruption or other interference or any consequences thereof. Eurofiber Nederland B.V. is registered in the Chamber of Commerce of Amsterdam with number 34134377, VAT number NL 8088.51.524 B01.
observium mailing list
observium@observium.orgmailto:observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium