Graphs not displaying data
Brought to you by:
gerbier
suffering from the "Error - Missing Content-Type Header" error on the panorama view and blank graphs on the module pages. The log seems to suggest the graphs are being generated but there is no output and nothing in the graphs folder.
verified perl-CGI is on the system and tried rrdtool from both prebuilt and source with no luck.
2016/09/29 01:44:03 sysstats::graph_data(modules/fail2ban/fail2ban-lib.pl 108) d ebug begin sub
2016/09/29 01:44:03 sysstats::get_cgi_graph(./sysstats-lib.pl 1093) debug begin sub
2016/09/29 01:44:03 sysstats::get_cgi_graph(./sysstats-lib.pl 1113) debug end su b
2016/09/29 01:44:03 sysstats::graph_common(./sysstats-lib.pl 356) debug begin su b
2016/09/29 01:44:03 sysstats::build_graph(./sysstats-lib.pl 341) debug rrdtool g raph graphs/fail2ban_hour.png --start -4201 --end -1 -h 250 -w 500 -a PNG --titl e hour --interlaced -l 0 -x MINUTE:1:MINUTE:5:MINUTE:10:0:%H:%M -v fail2ban COMM ENT:jail Cur Min Max Average\n DEF:v ol1=/etc/webmin/sysstats/modules/fail2ban/1.rrd:total:AVERAGE LINE2:vol1#000000: apache-auth GPRINT:vol1:LAST:%6.2lf%s GPRINT:vol1:MIN:%6.2lf% s GPRINT:vol1:MAX:%6.2lf%s GPRINT:vol1:AVERAGE:%6.2lf%s\n DEF:vol2=/etc/webmin/s ysstats/modules/fail2ban/2.rrd:total:AVERAGE LINE2:vol2#ff0000:proftpd GPRINT:vol2:LAST:%6.2lf%s GPRINT:vol2:MIN:%6.2lf%s GPRINT:vol2:MAX :%6.2lf%s GPRINT:vol2:AVERAGE:%6.2lf%s\n DEF:vol3=/etc/webmin/sysstats/modules/f ail2ban/3.rrd:total:AVERAGE LINE2:vol3#00ff00:roundcube-auth GPR INT:vol3:LAST:%6.2lf%s GPRINT:vol3:MIN:%6.2lf%s GPRINT:vol3:MAX:%6.2lf%s GPRINT: vol3:AVERAGE:%6.2lf%s\n DEF:vol4=/etc/webmin/sysstats/modules/fail2ban/4.rrd:tot al:AVERAGE LINE2:vol4#0000ff:ssh GPRINT:vol4:LAST:%6. 2lf%s GPRINT:vol4:MIN:%6.2lf%s GPRINT:vol4:MAX:%6.2lf%s GPRINT:vol4:AVERAGE:%6.2 lf%s\n DEF:vol5=/etc/webmin/sysstats/modules/fail2ban/5.rrd:total:AVERAGE LINE2: vol5#ffff00:sshd GPRINT:vol5:LAST:%6.2lf%s GPRINT:vol5 :MIN:%6.2lf%s GPRINT:vol5:MAX:%6.2lf%s GPRINT:vol5:AVERAGE:%6.2lf%s\n DEF:vol6=/ etc/webmin/sysstats/modules/fail2ban/6.rrd:total:AVERAGE LINE2:vol6#00ffff:webmi n-auth GPRINT:vol6:LAST:%6.2lf%s GPRINT:vol6:MIN:%6.2lf%s GPR INT:vol6:MAX:%6.2lf%s GPRINT:vol6:AVERAGE:%6.2lf%s\n COMMENT:Created Thu Sep 29 01h44m03s 2016
2016/09/29 01:44:03 sysstats::build_graph(./sysstats-lib.pl 341) debug rrdtool g raph graphs/fail2ban_day.png --start -90001 --end -1 -h 250 -w 500 -a PNG --titl e day --interlaced -l 0 -v fail2ban COMMENT:jail Cur Min Max Average\n DEF:vol1=/etc/webmin/sysstats/modules/fail2ba n/1.rrd:total:AVERAGE LINE2:vol1#000000:apache-auth GPRINT:vo l1:LAST:%6.2lf%s GPRINT:vol1:MIN:%6.2lf%s GPRINT:vol1:MAX:%6.2lf%s GPRINT:vol1:A VERAGE:%6.2lf%s\n DEF:vol2=/etc/webmin/sysstats/modules/fail2ban/2.rrd:total:AVE RAGE LINE2:vol2#ff0000:proftpd GPRINT:vol2:LAST:%6.2lf%s GPRINT:vol2:MIN:%6.2lf%s GPRINT:vol2:MAX:%6.2lf%s GPRINT:vol2:AVERAGE:%6.2lf%s\n DEF:vol3=/etc/webmin/sysstats/modules/fail2ban/3.rrd:total:AVERAGE LINE2:vol3#0 0ff00:roundcube-auth GPRINT:vol3:LAST:%6.2lf%s GPRINT:vol3:MIN:% 6.2lf%s GPRINT:vol3:MAX:%6.2lf%s GPRINT:vol3:AVERAGE:%6.2lf%s\n DEF:vol4=/etc/we bmin/sysstats/modules/fail2ban/4.rrd:total:AVERAGE LINE2:vol4#0000ff:ssh GPRINT:vol4:LAST:%6.2lf%s GPRINT:vol4:MIN:%6.2lf%s GPRINT:vo l4:MAX:%6.2lf%s GPRINT:vol4:AVERAGE:%6.2lf%s\n DEF:vol5=/etc/webmin/sysstats/mod ules/fail2ban/5.rrd:total:AVERAGE LINE2:vol5#ffff00:sshd GPRINT:vol5:LAST:%6.2lf%s GPRINT:vol5:MIN:%6.2lf%s GPRINT:vol5:MAX:%6.2lf%s G PRINT:vol5:AVERAGE:%6.2lf%s\n DEF:vol6=/etc/webmin/sysstats/modules/fail2ban/6.r rd:total:AVERAGE LINE2:vol6#00ffff:webmin-auth GPRINT:vol6:LA ST:%6.2lf%s GPRINT:vol6:MIN:%6.2lf%s GPRINT:vol6:MAX:%6.2lf%s GPRINT:vol6:AVERAG E:%6.2lf%s\n COMMENT:Created Thu Sep 29 01h44m03s 2016
2016/09/29 01:44:03 sysstats::build_graph(./sysstats-lib.pl 341) debug rrdtool g raph graphs/fail2ban_week.png --start -693001 --end -1 -h 250 -w 500 -a PNG --ti tle week --interlaced -l 0 -v fail2ban COMMENT:jail Cur Min Max Average\n DEF:vol1=/etc/webmin/sysstats/modules/fail 2ban/1.rrd:total:AVERAGE LINE2:vol1#000000:apache-auth GPRINT :vol1:LAST:%6.2lf%s GPRINT:vol1:MIN:%6.2lf%s GPRINT:vol1:MAX:%6.2lf%s GPRINT:vol 1:AVERAGE:%6.2lf%s\n DEF:vol2=/etc/webmin/sysstats/modules/fail2ban/2.rrd:total: AVERAGE LINE2:vol2#ff0000:proftpd GPRINT:vol2:LAST:%6.2lf %s GPRINT:vol2:MIN:%6.2lf%s GPRINT:vol2:MAX:%6.2lf%s GPRINT:vol2:AVERAGE:%6.2lf% s\n DEF:vol3=/etc/webmin/sysstats/modules/fail2ban/3.rrd:total:AVERAGE LINE2:vol 3#00ff00:roundcube-auth GPRINT:vol3:LAST:%6.2lf%s GPRINT:vol3:MI N:%6.2lf%s GPRINT:vol3:MAX:%6.2lf%s GPRINT:vol3:AVERAGE:%6.2lf%s\n DEF:vol4=/etc /webmin/sysstats/modules/fail2ban/4.rrd:total:AVERAGE LINE2:vol4#0000ff:ssh GPRINT:vol4:LAST:%6.2lf%s GPRINT:vol4:MIN:%6.2lf%s GPRINT :vol4:MAX:%6.2lf%s GPRINT:vol4:AVERAGE:%6.2lf%s\n DEF:vol5=/etc/webmin/sysstats/ modules/fail2ban/5.rrd:total:AVERAGE LINE2:vol5#ffff00:sshd GPRINT:vol5:LAST:%6.2lf%s GPRINT:vol5:MIN:%6.2lf%s GPRINT:vol5:MAX:%6.2lf% s GPRINT:vol5:AVERAGE:%6.2lf%s\n DEF:vol6=/etc/webmin/sysstats/modules/fail2ban/ 6.rrd:total:AVERAGE LINE2:vol6#00ffff:webmin-auth GPRINT:vol6 :LAST:%6.2lf%s GPRINT:vol6:MIN:%6.2lf%s GPRINT:vol6:MAX:%6.2lf%s GPRINT:vol6:AVE RAGE:%6.2lf%s\n COMMENT:Created Thu Sep 29 01h44m03s 2016
2016/09/29 01:44:03 sysstats::build_graph(./sysstats-lib.pl 341) debug rrdtool g raph graphs/fail2ban_month.png --start -7920001 --end -1 -h 250 -w 500 -a PNG -- title month --interlaced -l 0 -x WEEK:1:MONTH:1:MONTH:1:2592000:%B -v fail2ban C OMMENT:jail Cur Min Max Average\n DE F:vol1=/etc/webmin/sysstats/modules/fail2ban/1.rrd:total:AVERAGE LINE2:vol1#0000 00:apache-auth GPRINT:vol1:LAST:%6.2lf%s GPRINT:vol1:MIN:%6.2 lf%s GPRINT:vol1:MAX:%6.2lf%s GPRINT:vol1:AVERAGE:%6.2lf%s\n DEF:vol2=/etc/webmi n/sysstats/modules/fail2ban/2.rrd:total:AVERAGE LINE2:vol2#ff0000:proftpd GPRINT:vol2:LAST:%6.2lf%s GPRINT:vol2:MIN:%6.2lf%s GPRINT:vol2: MAX:%6.2lf%s GPRINT:vol2:AVERAGE:%6.2lf%s\n DEF:vol3=/etc/webmin/sysstats/module s/fail2ban/3.rrd:total:AVERAGE LINE2:vol3#00ff00:roundcube-auth GPRINT:vol3:LAST:%6.2lf%s GPRINT:vol3:MIN:%6.2lf%s GPRINT:vol3:MAX:%6.2lf%s GPRI NT:vol3:AVERAGE:%6.2lf%s\n DEF:vol4=/etc/webmin/sysstats/modules/fail2ban/4.rrd: total:AVERAGE LINE2:vol4#0000ff:ssh GPRINT:vol4:LAST: %6.2lf%s GPRINT:vol4:MIN:%6.2lf%s GPRINT:vol4:MAX:%6.2lf%s GPRINT:vol4:AVERAGE:% 6.2lf%s\n DEF:vol5=/etc/webmin/sysstats/modules/fail2ban/5.rrd:total:AVERAGE LIN E2:vol5#ffff00:sshd GPRINT:vol5:LAST:%6.2lf%s GPRINT:v ol5:MIN:%6.2lf%s GPRINT:vol5:MAX:%6.2lf%s GPRINT:vol5:AVERAGE:%6.2lf%s\n DEF:vol 6=/etc/webmin/sysstats/modules/fail2ban/6.rrd:total:AVERAGE LINE2:vol6#00ffff:we bmin-auth GPRINT:vol6:LAST:%6.2lf%s GPRINT:vol6:MIN:%6.2lf%s GPRINT:vol6:MAX:%6.2lf%s GPRINT:vol6:AVERAGE:%6.2lf%s\n COMMENT:Created Thu Sep 29 01h44m03s 2016
2016/09/29 01:44:03 sysstats::build_graph(./sysstats-lib.pl 341) debug rrdtool g raph graphs/fail2ban_year.png --start -31536001 --end -1 -h 250 -w 500 -a PNG -- title year --interlaced -l 0 -v fail2ban COMMENT:jail Cur Min Max Average\n DEF:vol1=/etc/webmin/sysstats/modules/fa il2ban/1.rrd:total:AVERAGE LINE2:vol1#000000:apache-auth GPRI NT:vol1:LAST:%6.2lf%s GPRINT:vol1:MIN:%6.2lf%s GPRINT:vol1:MAX:%6.2lf%s GPRINT:v ol1:AVERAGE:%6.2lf%s\n DEF:vol2=/etc/webmin/sysstats/modules/fail2ban/2.rrd:tota l:AVERAGE LINE2:vol2#ff0000:proftpd GPRINT:vol2:LAST:%6.2 lf%s GPRINT:vol2:MIN:%6.2lf%s GPRINT:vol2:MAX:%6.2lf%s GPRINT:vol2:AVERAGE:%6.2l f%s\n DEF:vol3=/etc/webmin/sysstats/modules/fail2ban/3.rrd:total:AVERAGE LINE2:v ol3#00ff00:roundcube-auth GPRINT:vol3:LAST:%6.2lf%s GPRINT:vol3: MIN:%6.2lf%s GPRINT:vol3:MAX:%6.2lf%s GPRINT:vol3:AVERAGE:%6.2lf%s\n DEF:vol4=/e tc/webmin/sysstats/modules/fail2ban/4.rrd:total:AVERAGE LINE2:vol4#0000ff:ssh GPRINT:vol4:LAST:%6.2lf%s GPRINT:vol4:MIN:%6.2lf%s GPRI NT:vol4:MAX:%6.2lf%s GPRINT:vol4:AVERAGE:%6.2lf%s\n DEF:vol5=/etc/webmin/sysstat s/modules/fail2ban/5.rrd:total:AVERAGE LINE2:vol5#ffff00:sshd GPRINT:vol5:LAST:%6.2lf%s GPRINT:vol5:MIN:%6.2lf%s GPRINT:vol5:MAX:%6.2l f%s GPRINT:vol5:AVERAGE:%6.2lf%s\n DEF:vol6=/etc/webmin/sysstats/modules/fail2ba n/6.rrd:total:AVERAGE LINE2:vol6#00ffff:webmin-auth GPRINT:vo l6:LAST:%6.2lf%s GPRINT:vol6:MIN:%6.2lf%s GPRINT:vol6:MAX:%6.2lf%s GPRINT:vol6:A VERAGE:%6.2lf%s\n COMMENT:Created Thu Sep 29 01h44m03s 2016
2016/09/29 01:44:03 sysstats::graph_common(./sysstats-lib.pl 454) debug end sub
2016/09/29 01:44:03 sysstats::graph_data(modules/fail2ban/fail2ban-lib.pl 160) d ebug end sub
2016/09/29 01:44:03 sysstats::delayed_clear_cache(./sysstats-lib.pl 797) debug b egin sub
2016/09/29 01:44:03 sysstats::delayed_clear_cache(./sysstats-lib.pl 806) debug e nd sub
2016/09/29 01:44:03 sysstats::display_page(/usr/share/webmin/sysstats/display.cg i 246) debug begin sub
2016/09/29 01:44:03 sysstats::display_page_links(/usr/share/webmin/sysstats/disp lay.cgi 88) debug begin sub
2016/09/29 01:44:03 sysstats::get_mod_list(./sysstats-lib.pl 1199) debug begin s ub
2016/09/29 01:44:03 sysstats::mod_check_runstop(sysstats-conf-lib.pl 105) debug begin sub
Aquisition however seems OK.
debug main::read_pipe_stream(/etc/webmin/sysstats/modules/hddtemp/../../sysstats-gen-lib.pl 592) : read_pipe : /bin/ps axo euid,flags,nice,nlwp,pcpu,pid,pmem,ppid,rss,rtprio,sched,size,state,sz,time,vsz,wchan,command
debug main::read_file_cached(/etc/webmin/sysstats/modules/hddtemp/../../sysstats-aquisition-lib.pl 492) : read_file_cached : read_file on config
debug main(./hddtemp.pl 70) : run hddtemp version 1.9
debug main::read_pipe_stream(/etc/webmin/sysstats/modules/hddtemp/../../sysstats-gen-lib.pl 592) : read_pipe : /usr/sbin/hddtemp --unit=C -n /dev/sda
debug main(./hddtemp.pl 101) : hddtemp /dev/sda (1) : temp=29
debug main::read_pipe_stream(/etc/webmin/sysstats/modules/hddtemp/../../sysstats-gen-lib.pl 592) : read_pipe : /usr/sbin/hddtemp --unit=C -n /dev/sdb
debug main(./hddtemp.pl 101) : hddtemp /dev/sdb (2) : temp=36
debug main::read_pipe_stream(/etc/webmin/sysstats/modules/hddtemp/../../sysstats-gen-lib.pl 592) : read_pipe : /usr/sbin/hddtemp --unit=C -n /dev/sdc
debug main::get_temp(./hddtemp.pl 58) : get_temp : not numeric value /dev/sdc: TOSHIBA: S.M.A.R.T. not available for device /dev/sdc
debug main(./hddtemp.pl 101) : hddtemp /dev/sdc (3) : temp=U
debug main::read_pipe_stream(/etc/webmin/sysstats/modules/hddtemp/../../sysstats-gen-lib.pl 592) : read_pipe : /usr/sbin/hddtemp --unit=C -n /dev/sdd
debug main::get_temp(./hddtemp.pl 58) : get_temp : not numeric value /dev/sdd: TOSHIBA: S.M.A.R.T. not available for device /dev/sdd
debug main(./hddtemp.pl 101) : hddtemp /dev/sdd (4) : temp=U
Anonymous
do you have the problem just on "panorama" or also on any direct module access (for example : https://localhost:10000/sysstats/display.cgi?idx=cpu)
and what is you webmin theme ?
https://drive.google.com/file/d/0B2RM1P92CQBzT1JQbnJsM0JUTG8/view?usp=drivesdk
Sorry for the delay I wasn't originally logged in. The graph displays on individual pages but has no data and I'm using the default webmin theme.
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
Hello, same problrm on a debian testing system. Since perl whas updated from perl 5.22.2-3 deb to 5.22.2-5 deb. Any theme used.
Stéphane
I've just installed Cacti, which works fine, so I dont think this is related to RRDTool.
can you have a first check ?
or just with : sed -i 's/debug_mode=0/debug_mode=1/' /etc/webmin/sysstats/config
Seeing the same on Debian 9.0.
Need to figure out what was updated system-wise back then. Possibly a perl upgrade: 5.22.2-5 to 5.24.1~rc3-2?
This likely deals with the same issue.
Last edit: ryates 2016-10-14
No cron emails are being sent, don't know why webmin test mails are going through fine, here is the ouput after #export DEBUG_MODE=y #/etc/webmin/sysstats/sysstats.pl
Last edit: liam dolman 2016-10-15
I too can report no emails get through with debug enabled.
And my output #export DEBUG_MODE=y is the same.
Any progress on this issue?
I am using debian stable (perl 5.20), ubuntu 16.10 (perl 5.22)
without any problem
last week I upgraded to fedora 25 : perl 5.24. I will be able to test this perl release during the christmas holydays.
Agreed, all is well on Ubuntu 16.10 with perl 5.22
Attached is the output of "perl -v" on Debian Testing perl 5.24.1
This system has the issue and conceivably it might have to do with debian's compilation / patching.
tested on fedora 25 (perl 5.24 ) : it works
tested quickly on debian testing (thanks virtualbox) : the rrdtool database seems not be updated . I will be able to debug your problem
on my debian testing, I have fixed the problem. Could you try the attached file and tell me if it works also on your system ?
Bingo! Stats being displayed..... :-)
Thanks, Will keep an eye on this but all seems well.
aqusition fails for me I get the following.
strange : error lines do not match my code ($FindBin is on line 32, not 21 !).
Maybe a problem with line terminator. Could you execute the 2 following commands:
dos2unix /etc/webmin/sysstats/sysstats.pl
perl -cw /etc/webmin/sysstats/sysstats.pl
and also send all your context :
I completly purged sysstats and rrdtool and started from scrach I now have stats displaying on the specific module pages but panorama view still gives the error. I'm also recieving emails from the cron job again.
webminstats version 2.14
os Debian Linux 9.0
language en
theme gray-theme
Perl v5.24.1
RRDtool 1.6.0
Webmin 1.820
to fix the panorama problem , you can use the attached file, or just patch the display_all.cgi file with the following code (diff output) :
--- a/sysstats/display_all.cgi
+++ b/sysstats/display_all.cgi
@@ -27,7 +27,7 @@ use warnings;
use English qw(-no_match_vars);
## no critic (RequireBarewordIncludes)
-require 'sysstats-lib.pl';
+require './sysstats-lib.pl';
## use critic
to fix mail problems, you should replace the sysstats.pl file by the attached file
All working perfectly with those patches
ok, thanks
the changes have been integrated in the code repository and will be available in 2.15 release.