From gamji44 at hotmail.com Tue Oct 16 16:27:08 2012 From: gamji44 at hotmail.com (red hat) Date: Tue, 16 Oct 2012 14:27:08 +0000 Subject: [smokeping-users] smokeping error please help .. 2.6 Message-ID: Software error:Can't call method "_pings" on an undefined value at /usr/share/perl5/smokeping/Smokeping.pm line 815. For help, please send mail to the webmaster (webmaster at localhost), giving this error message and the time and date of the error. Need some help, some how by editing my config file .. i am now getting this error when i go to the main page.. however if i click on a an alert i see the grapth ... but if i go to the main page i get the belwo erro r... please help.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121016/42cf8c4e/attachment.html From informatux at gmail.com Tue Oct 16 17:11:35 2012 From: informatux at gmail.com (Kwame Bahena) Date: Tue, 16 Oct 2012 10:11:35 -0500 Subject: [smokeping-users] smokeping error please help .. 2.6 In-Reply-To: References: Message-ID: What did you modify in your config file? Have you rolled back to your previous configuration? Does that fix the issue? What error do you see in the error log? Cheers! On Oct 16, 2012 9:27 AM, "red hat" wrote: > Software error: > > Can't call method "_pings" on an undefined value at /usr/share/perl5/smokeping/Smokeping.pm line 815. > > For help, please send mail to the webmaster (webmaster at localhost), giving > this error message and the time and date of the error. > Need some help, some how by editing my config file .. i am now getting > this error when i go to the main page.. however if i click on a an alert i > see the grapth ... but if i go to the main page i get the belwo erro > r... please help.. > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121016/494655e4/attachment-0001.htm From gamji44 at hotmail.com Tue Oct 16 18:19:39 2012 From: gamji44 at hotmail.com (red hat) Date: Tue, 16 Oct 2012 16:19:39 +0000 Subject: [smokeping-users] smokeping error please help .. 2.6 In-Reply-To: References: , Message-ID: Thanks .. i did try to roll back to no avail ..the only section i added i have removed which it did not seem to fix the issue.. Date: Tue, 16 Oct 2012 10:11:35 -0500 Subject: Re: [smokeping-users] smokeping error please help .. 2.6 From: informatux at gmail.com To: gamji44 at hotmail.com CC: smokeping-users at lists.oetiker.ch What did you modify in your config file? Have you rolled back to your previous configuration? Does that fix the issue? What error do you see in the error log? Cheers! On Oct 16, 2012 9:27 AM, "red hat" wrote: Software error:Can't call method "_pings" on an undefined value at /usr/share/perl5/smokeping/Smokeping.pm line 815. For help, please send mail to the webmaster (webmaster at localhost), giving this error message and the time and date of the error. Need some help, some how by editing my config file .. i am now getting this error when i go to the main page.. however if i click on a an alert i see the grapth ... but if i go to the main page i get the belwo erro r... please help.. _______________________________________________ smokeping-users mailing list smokeping-users at lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121016/458caa9b/attachment.htm From informatux at gmail.com Tue Oct 16 18:27:50 2012 From: informatux at gmail.com (Kwame Bahena) Date: Tue, 16 Oct 2012 11:27:50 -0500 Subject: [smokeping-users] smokeping error please help .. 2.6 In-Reply-To: References: Message-ID: Well, that doesn't make much sense. Which section is that? What about your error logs? On Oct 16, 2012 11:19 AM, "red hat" wrote: > Thanks .. i did try to roll back to no avail ..the only section i added > i have removed which it did not seem to fix the issue.. > > ------------------------------ > Date: Tue, 16 Oct 2012 10:11:35 -0500 > Subject: Re: [smokeping-users] smokeping error please help .. 2.6 > From: informatux at gmail.com > To: gamji44 at hotmail.com > CC: smokeping-users at lists.oetiker.ch > > What did you modify in your config file? > Have you rolled back to your previous configuration? > Does that fix the issue? > What error do you see in the error log? > Cheers! > On Oct 16, 2012 9:27 AM, "red hat" wrote: > > Software error: > > Can't call method "_pings" on an undefined value at /usr/share/perl5/smokeping/Smokeping.pm line 815. > > For help, please send mail to the webmaster (webmaster at localhost), giving > this error message and the time and date of the error. > Need some help, some how by editing my config file .. i am now getting > this error when i go to the main page.. however if i click on a an alert i > see the grapth ... but if i go to the main page i get the belwo erro > r... please help.. > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121016/f50d14c1/attachment.htm From rb14060 at gmail.com Tue Oct 16 22:09:45 2012 From: rb14060 at gmail.com (Ryan Becker) Date: Tue, 16 Oct 2012 16:09:45 -0400 Subject: [smokeping-users] smokeping error please help .. 2.6 In-Reply-To: References: Message-ID: This looks like an issue with a smokeping file, not a config issue. If you look, it said the error was in the Smokeping.pm file. Maybe try redownloading smokeping and replacing that file only. On Oct 16, 2012 12:27 PM, "Kwame Bahena" wrote: > Well, that doesn't make much sense. Which section is that? What about > your error logs? > On Oct 16, 2012 11:19 AM, "red hat" wrote: > >> Thanks .. i did try to roll back to no avail ..the only section i added >> i have removed which it did not seem to fix the issue.. >> >> ------------------------------ >> Date: Tue, 16 Oct 2012 10:11:35 -0500 >> Subject: Re: [smokeping-users] smokeping error please help .. 2.6 >> From: informatux at gmail.com >> To: gamji44 at hotmail.com >> CC: smokeping-users at lists.oetiker.ch >> >> What did you modify in your config file? >> Have you rolled back to your previous configuration? >> Does that fix the issue? >> What error do you see in the error log? >> Cheers! >> On Oct 16, 2012 9:27 AM, "red hat" wrote: >> >> Software error: >> >> Can't call method "_pings" on an undefined value at /usr/share/perl5/smokeping/Smokeping.pm line 815. >> >> For help, please send mail to the webmaster (webmaster at localhost), >> giving this error message and the time and date of the error. >> Need some help, some how by editing my config file .. i am now getting >> this error when i go to the main page.. however if i click on a an alert i >> see the grapth ... but if i go to the main page i get the belwo erro >> r... please help.. >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >> >> > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121016/8b6e2cba/attachment.htm From me at staticsafe.ca Fri Oct 19 23:49:04 2012 From: me at staticsafe.ca (staticsafe) Date: Fri, 19 Oct 2012 17:49:04 -0400 Subject: [smokeping-users] PNG Saving errors Message-ID: <5081CAD0.2070605@staticsafe.ca> Hi, I have a Smokeping 2.6.7 install running over at smokeping.asininetech.com/smokeping.cgi. I am getting errors such as this: ERROR: Could not save png to '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' The permissions on that directory: [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh total 20 drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 amy_last_10800.png -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 bender.maxheight -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 bender_last_10800.png -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 scruffy.maxheight -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 scruffy_last_10800.png -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 scruffy_mini.png I am using nginx + fcgiwrap to serve this. Am I missing something? Thanks for any help, -- staticsafe http://staticsafe.ca From liste at karp.fr Sat Oct 20 03:51:51 2012 From: liste at karp.fr (Nicolas KARP) Date: Sat, 20 Oct 2012 03:51:51 +0200 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <5081CAD0.2070605@staticsafe.ca> References: <5081CAD0.2070605@staticsafe.ca> Message-ID: Hi staticsafe, Check what user is used to run the webserver. This user need write access to the cache directory which i guess is for you : /usr/local/smokeping/htdocs/img What you can do if you want is to add this user in the group called "smokeping" so as the directory and files are owed by smokeping, this user would have automatically write access to all the files in this directory. Do me on Centos : /etc/group (Apache is my webserver) smokeping:x:498:apache Best Regards, # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - Nicolas KARP # - - Network and Security Engineer # - - Email : liste at karp.fr # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2012/10/19 staticsafe > Hi, > > I have a Smokeping 2.6.7 install running over at > smokeping.asininetech.com/smokeping.cgi. > > I am getting errors such as this: > ERROR: Could not save png to > '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' > > The permissions on that directory: > > [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh > total 20 > drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . > drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. > -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight > -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 amy_last_10800.png > -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png > -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 bender.maxheight > -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 > bender_last_10800.png > -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png > -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png > -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png > -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 scruffy.maxheight > -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 > scruffy_last_10800.png > -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 scruffy_mini.png > > I am using nginx + fcgiwrap to serve this. > > Am I missing something? > > Thanks for any help, > > -- > staticsafe > http://staticsafe.ca > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121020/e27e4067/attachment-0001.htm From me at staticsafe.ca Sat Oct 20 04:15:59 2012 From: me at staticsafe.ca (staticsafe) Date: Fri, 19 Oct 2012 22:15:59 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: References: <5081CAD0.2070605@staticsafe.ca> Message-ID: <5082095F.9030809@staticsafe.ca> On 10/19/2012 21:51, Nicolas KARP wrote: > Hi staticsafe, > > Check what user is used to run the webserver. This user need write access > to the cache directory which i guess is for you : > /usr/local/smokeping/htdocs/img > > What you can do if you want is to add this user in the group called > "smokeping" so as the directory and files are owed by smokeping, this user > would have automatically write access to all the files in this directory. > > Do me on Centos : /etc/group (Apache is my webserver) > smokeping:x:498:apache > > Best Regards, > > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - > # - - Nicolas KARP > # - - Network and Security Engineer > # - - Email : liste at karp.fr > # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a > > # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - > > > > > > 2012/10/19 staticsafe > >> Hi, >> >> I have a Smokeping 2.6.7 install running over at >> smokeping.asininetech.com/smokeping.cgi. >> >> I am getting errors such as this: >> ERROR: Could not save png to >> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' >> >> The permissions on that directory: >> >> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh >> total 20 >> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . >> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. >> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight >> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 amy_last_10800.png >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png >> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 bender.maxheight >> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 >> bender_last_10800.png >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png >> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 scruffy.maxheight >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 >> scruffy_last_10800.png >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 scruffy_mini.png >> >> I am using nginx + fcgiwrap to serve this. >> >> Am I missing something? >> >> Thanks for any help, >> >> -- >> staticsafe >> http://staticsafe.ca >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >> > No luck. (www is the user nginx is run as.) [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G smokeping [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping ./img Still getting the same errors. -- staticsafe http://staticsafe.ca From liste at karp.fr Sun Oct 21 19:32:26 2012 From: liste at karp.fr (Nicolas KARP) Date: Sun, 21 Oct 2012 19:32:26 +0200 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <5082095F.9030809@staticsafe.ca> References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> Message-ID: Hi Staticsafe, Can you please send me your current config for the variables : imgcache = /opt/smokeping-2.6.7/cache imgurl = /smokeping/cache datadir = /opt/smokeping-2.6.7/data and the result of : ps aux | grep smokeping ls -alh /usr/local/smokeping/htdocs/img Can you also check the httpd log file (Error logfile) ? And can you check if you are using SELinux on your box (command : sestatus and logs should be in : /var/log/audit/audit.log) ? Best Regards, # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - Nicolas KARP # - - Network and Security Engineer # - - Email : liste at karp.fr # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2012/10/20 staticsafe > On 10/19/2012 21:51, Nicolas KARP wrote: > > Hi staticsafe, > > > > Check what user is used to run the webserver. This user need write access > > to the cache directory which i guess is for you : > > /usr/local/smokeping/htdocs/img > > > > What you can do if you want is to add this user in the group called > > "smokeping" so as the directory and files are owed by smokeping, this > user > > would have automatically write access to all the files in this directory. > > > > Do me on Centos : /etc/group (Apache is my webserver) > > smokeping:x:498:apache > > > > Best Regards, > > > > > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - > > - - - - - - - - - - - - - - - - - - - > > # - - Nicolas KARP > > # - - Network and Security Engineer > > # - - Email : liste at karp.fr > > # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a > > > > # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp > > > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - > > - - - - - - - - - - - - - - - - - - - > > > > > > > > > > > > 2012/10/19 staticsafe > > > >> Hi, > >> > >> I have a Smokeping 2.6.7 install running over at > >> smokeping.asininetech.com/smokeping.cgi. > >> > >> I am getting errors such as this: > >> ERROR: Could not save png to > >> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' > >> > >> The permissions on that directory: > >> > >> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh > >> total 20 > >> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . > >> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. > >> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight > >> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 > amy_last_10800.png > >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png > >> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 bender.maxheight > >> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 > >> bender_last_10800.png > >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png > >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png > >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png > >> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 scruffy.maxheight > >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 > >> scruffy_last_10800.png > >> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 scruffy_mini.png > >> > >> I am using nginx + fcgiwrap to serve this. > >> > >> Am I missing something? > >> > >> Thanks for any help, > >> > >> -- > >> staticsafe > >> http://staticsafe.ca > >> > >> _______________________________________________ > >> smokeping-users mailing list > >> smokeping-users at lists.oetiker.ch > >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >> > > > > No luck. (www is the user nginx is run as.) > > [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G smokeping > [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping ./img > > Still getting the same errors. > > -- > staticsafe > http://staticsafe.ca > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121021/997294fe/attachment.htm From me at staticsafe.ca Sun Oct 21 20:49:43 2012 From: me at staticsafe.ca (staticsafe) Date: Sun, 21 Oct 2012 14:49:43 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> Message-ID: <508443C7.9000303@staticsafe.ca> On 10/21/2012 13:32, Nicolas KARP wrote: > Hi Staticsafe, > > Can you please send me your current config for the variables : > > imgcache = /opt/smokeping-2.6.7/cache > imgurl = /smokeping/cache > datadir = /opt/smokeping-2.6.7/data > > and the result of : > > ps aux | grep smokeping > ls -alh /usr/local/smokeping/htdocs/img > > Can you also check the httpd log file (Error logfile) ? And can you check > if you are using SELinux on your box (command : sestatus and logs should be > in : /var/log/audit/audit.log) ? > > Best Regards, > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - > # - - Nicolas KARP > # - - Network and Security Engineer > # - - Email : liste at karp.fr > # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a > > # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - > > > > > > 2012/10/20 staticsafe > >> On 10/19/2012 21:51, Nicolas KARP wrote: >>> Hi staticsafe, >>> >>> Check what user is used to run the webserver. This user need write access >>> to the cache directory which i guess is for you : >>> /usr/local/smokeping/htdocs/img >>> >>> What you can do if you want is to add this user in the group called >>> "smokeping" so as the directory and files are owed by smokeping, this >> user >>> would have automatically write access to all the files in this directory. >>> >>> Do me on Centos : /etc/group (Apache is my webserver) >>> smokeping:x:498:apache >>> >>> Best Regards, >>> >>> >>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> - - >>> - - - - - - - - - - - - - - - - - - - >>> # - - Nicolas KARP >>> # - - Network and Security Engineer >>> # - - Email : liste at karp.fr >>> # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a >>> >>> # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp >>> >>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> - - >>> - - - - - - - - - - - - - - - - - - - >>> >>> >>> >>> >>> >>> 2012/10/19 staticsafe >>> >>>> Hi, >>>> >>>> I have a Smokeping 2.6.7 install running over at >>>> smokeping.asininetech.com/smokeping.cgi. >>>> >>>> I am getting errors such as this: >>>> ERROR: Could not save png to >>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' >>>> >>>> The permissions on that directory: >>>> >>>> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh >>>> total 20 >>>> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . >>>> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. >>>> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight >>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 >> amy_last_10800.png >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png >>>> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 bender.maxheight >>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 >>>> bender_last_10800.png >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png >>>> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 scruffy.maxheight >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 >>>> scruffy_last_10800.png >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 scruffy_mini.png >>>> >>>> I am using nginx + fcgiwrap to serve this. >>>> >>>> Am I missing something? >>>> >>>> Thanks for any help, >>>> >>>> -- >>>> staticsafe >>>> http://staticsafe.ca >>>> >>>> _______________________________________________ >>>> smokeping-users mailing list >>>> smokeping-users at lists.oetiker.ch >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >>>> >>> >> >> No luck. (www is the user nginx is run as.) >> >> [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G smokeping >> [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping ./img >> >> Still getting the same errors. >> >> -- >> staticsafe >> http://staticsafe.ca >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >> > Here it is: imgcache = /usr/local/smokeping/htdocs/img imgurl = img datadir = /usr/local/var/smokeping $ ps aux | grep smokeping smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15 /usr/local/bin/smokeping [FPing] (perl) smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81 /usr/local/bin/smokeping [FPing] (perl) smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03 [fping] $ ls -alh /usr/local/smokeping/htdocs/img total 36 drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png >From my nginx error.log: 2012/10/21 11:40:47 [error] 67774#0: *1 open() "/usr/local/smokeping/htdocs/smokeping/prototype/prototype.js" failed (2: No such file or directory), client: 173.32.218.69, server: smokeping.asininetech.com, request: "GET /smokeping/prototype/prototype.js HTTP/1.1", host: "smokeping.asininetech.com", referrer: "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" 2012/10/21 11:40:47 [error] 67774#0: *1 open() "/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No such file or directory), client: 173.32.218.69, server: smokeping.asininetech.com, request: "GET /smokeping/cropper/cropper.js HTTP/1.1", host: "smokeping.asininetech.com", referrer: "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" 2012/10/21 11:40:47 [error] 67774#0: *3 open() "/usr/local/smokeping/htdocs/smokeping/scriptaculous/scriptaculous.js" failed (2: No such file or directory), client: 173.32.218.69, server: smokeping.asininetech.com, request: "GET /smokeping/scriptaculous/scriptaculous.js?load=builder,effects,dragdrop HTTP/1.1", host: "smokeping.asininetech.com", referrer: "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" 2012/10/21 11:40:47 [error] 67774#0: *4 open() "/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No such file or directory), client: 173.32.218.69, server: smokeping.asininetech.com, request: "GET /smokeping/smokeping-zoom.js HTTP/1.1", host: "smokeping.asininetech.com", referrer: "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" 2012/10/21 11:40:48 [error] 67774#0: *1 open() "/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No such file or directory), client: 173.32.218.69, server: smokeping.asininetech.com, request: "GET /smokeping/cropper/cropper.js HTTP/1.1", host: "smokeping.asininetech.com", referrer: "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" 2012/10/21 11:40:48 [error] 67774#0: *1 open() "/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No such file or directory), client: 173.32.218.69, server: smokeping.asininetech.com, request: "GET /smokeping/smokeping-zoom.js HTTP/1.1", host: "smokeping.asininetech.com", referrer: "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" -- staticsafe http://staticsafe.ca From rb14060 at gmail.com Sun Oct 21 20:51:49 2012 From: rb14060 at gmail.com (Ryan Becker) Date: Sun, 21 Oct 2012 14:51:49 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <508443C7.9000303@staticsafe.ca> References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> Message-ID: The issue here is that your imgurl needs to be a full path. Just putting "img" doesn't give it anywhere to look. On Sun, Oct 21, 2012 at 2:49 PM, staticsafe wrote: > On 10/21/2012 13:32, Nicolas KARP wrote: > > Hi Staticsafe, > > > > Can you please send me your current config for the variables : > > > > imgcache = /opt/smokeping-2.6.7/cache > > imgurl = /smokeping/cache > > datadir = /opt/smokeping-2.6.7/data > > > > and the result of : > > > > ps aux | grep smokeping > > ls -alh /usr/local/smokeping/htdocs/img > > > > Can you also check the httpd log file (Error logfile) ? And can you > check > > if you are using SELinux on your box (command : sestatus and logs should > be > > in : /var/log/audit/audit.log) ? > > > > Best Regards, > > > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - > > - - - - - - - - - - - - - - - - - - - > > # - - Nicolas KARP > > # - - Network and Security Engineer > > # - - Email : liste at karp.fr > > # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a > > > > # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp > > > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - > > - - - - - - - - - - - - - - - - - - - > > > > > > > > > > > > 2012/10/20 staticsafe > > > >> On 10/19/2012 21:51, Nicolas KARP wrote: > >>> Hi staticsafe, > >>> > >>> Check what user is used to run the webserver. This user need write > access > >>> to the cache directory which i guess is for you : > >>> /usr/local/smokeping/htdocs/img > >>> > >>> What you can do if you want is to add this user in the group called > >>> "smokeping" so as the directory and files are owed by smokeping, this > >> user > >>> would have automatically write access to all the files in this > directory. > >>> > >>> Do me on Centos : /etc/group (Apache is my webserver) > >>> smokeping:x:498:apache > >>> > >>> Best Regards, > >>> > >>> > >>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > >> - - > >>> - - - - - - - - - - - - - - - - - - - > >>> # - - Nicolas KARP > >>> # - - Network and Security Engineer > >>> # - - Email : liste at karp.fr > >>> # - - Linkedin : > http://www.linkedin.com/pub/nicolas-karp/39/60b/21a > >>> > >>> # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp > >>> > >>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > >> - - > >>> - - - - - - - - - - - - - - - - - - - > >>> > >>> > >>> > >>> > >>> > >>> 2012/10/19 staticsafe > >>> > >>>> Hi, > >>>> > >>>> I have a Smokeping 2.6.7 install running over at > >>>> smokeping.asininetech.com/smokeping.cgi. > >>>> > >>>> I am getting errors such as this: > >>>> ERROR: Could not save png to > >>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' > >>>> > >>>> The permissions on that directory: > >>>> > >>>> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh > >>>> total 20 > >>>> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . > >>>> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. > >>>> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight > >>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 > >> amy_last_10800.png > >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png > >>>> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 > bender.maxheight > >>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 > >>>> bender_last_10800.png > >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png > >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png > >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png > >>>> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 > scruffy.maxheight > >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 > >>>> scruffy_last_10800.png > >>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 > scruffy_mini.png > >>>> > >>>> I am using nginx + fcgiwrap to serve this. > >>>> > >>>> Am I missing something? > >>>> > >>>> Thanks for any help, > >>>> > >>>> -- > >>>> staticsafe > >>>> http://staticsafe.ca > >>>> > >>>> _______________________________________________ > >>>> smokeping-users mailing list > >>>> smokeping-users at lists.oetiker.ch > >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >>>> > >>> > >> > >> No luck. (www is the user nginx is run as.) > >> > >> [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G > smokeping > >> [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping > ./img > >> > >> Still getting the same errors. > >> > >> -- > >> staticsafe > >> http://staticsafe.ca > >> > >> _______________________________________________ > >> smokeping-users mailing list > >> smokeping-users at lists.oetiker.ch > >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >> > > > > Here it is: > > imgcache = /usr/local/smokeping/htdocs/img > imgurl = img > datadir = /usr/local/var/smokeping > > $ ps aux | grep smokeping > smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15 > /usr/local/bin/smokeping [FPing] (perl) > smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81 > /usr/local/bin/smokeping [FPing] (perl) > smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03 > [fping] > > $ ls -alh /usr/local/smokeping/htdocs/img > total 36 > drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ > drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ > drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ > drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ > drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ > drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ > -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png > -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png > > >From my nginx error.log: > 2012/10/21 11:40:47 [error] 67774#0: *1 open() > "/usr/local/smokeping/htdocs/smokeping/prototype/prototype.js" failed > (2: No such file or directory), client: 173.32.218.69, server: > smokeping.asininetech.com, request: "GET > /smokeping/prototype/prototype.js HTTP/1.1", host: > "smokeping.asininetech.com", referrer: > "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" > 2012/10/21 11:40:47 [error] 67774#0: *1 open() > "/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No > such file or directory), client: 173.32.218.69, server: > smokeping.asininetech.com, request: "GET /smokeping/cropper/cropper.js > HTTP/1.1", host: "smokeping.asininetech.com", referrer: > "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" > 2012/10/21 11:40:47 [error] 67774#0: *3 open() > "/usr/local/smokeping/htdocs/smokeping/scriptaculous/scriptaculous.js" > failed (2: No such file or directory), client: 173.32.218.69, server: > smokeping.asininetech.com, request: "GET > /smokeping/scriptaculous/scriptaculous.js?load=builder,effects,dragdrop > HTTP/1.1", host: "smokeping.asininetech.com", referrer: > "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" > 2012/10/21 11:40:47 [error] 67774#0: *4 open() > "/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No > such file or directory), client: 173.32.218.69, server: > smokeping.asininetech.com, request: "GET /smokeping/smokeping-zoom.js > HTTP/1.1", host: "smokeping.asininetech.com", referrer: > "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" > 2012/10/21 11:40:48 [error] 67774#0: *1 open() > "/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No > such file or directory), client: 173.32.218.69, server: > smokeping.asininetech.com, request: "GET /smokeping/cropper/cropper.js > HTTP/1.1", host: "smokeping.asininetech.com", referrer: > "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" > 2012/10/21 11:40:48 [error] 67774#0: *1 open() > "/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No > such file or directory), client: 173.32.218.69, server: > smokeping.asininetech.com, request: "GET /smokeping/smokeping-zoom.js > HTTP/1.1", host: "smokeping.asininetech.com", referrer: > "http://smokeping.asininetech.com/smokeping.cgi?target=Personal" > > > -- > staticsafe > http://staticsafe.ca > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121021/b6688c0e/attachment.htm From me at staticsafe.ca Sun Oct 21 21:12:53 2012 From: me at staticsafe.ca (staticsafe) Date: Sun, 21 Oct 2012 15:12:53 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> Message-ID: <50844935.3090901@staticsafe.ca> On 10/21/2012 14:51, Ryan Becker wrote: > The issue here is that your imgurl needs to be a full path. Just putting > "img" doesn't give it anywhere to look. > > On Sun, Oct 21, 2012 at 2:49 PM, staticsafe wrote: > >> On 10/21/2012 13:32, Nicolas KARP wrote: >>> Hi Staticsafe, >>> >>> Can you please send me your current config for the variables : >>> >>> imgcache = /opt/smokeping-2.6.7/cache >>> imgurl = /smokeping/cache >>> datadir = /opt/smokeping-2.6.7/data >>> >>> and the result of : >>> >>> ps aux | grep smokeping >>> ls -alh /usr/local/smokeping/htdocs/img >>> >>> Can you also check the httpd log file (Error logfile) ? And can you >> check >>> if you are using SELinux on your box (command : sestatus and logs should >> be >>> in : /var/log/audit/audit.log) ? >>> 2012/10/20 staticsafe >>> >>>> On 10/19/2012 21:51, Nicolas KARP wrote: >>>>> Hi staticsafe, >>>>> >>>>> Check what user is used to run the webserver. This user need write >> access >>>>> to the cache directory which i guess is for you : >>>>> /usr/local/smokeping/htdocs/img >>>>> >>>>> What you can do if you want is to add this user in the group called >>>>> "smokeping" so as the directory and files are owed by smokeping, this >>>> user >>>>> would have automatically write access to all the files in this >> directory. >>>>> >>>>> Do me on Centos : /etc/group (Apache is my webserver) >>>>> smokeping:x:498:apache >>>>> >>>>> Best Regards, >>>>> 2012/10/19 staticsafe >>>>> >>>>>> Hi, >>>>>> >>>>>> I have a Smokeping 2.6.7 install running over at >>>>>> smokeping.asininetech.com/smokeping.cgi. >>>>>> >>>>>> I am getting errors such as this: >>>>>> ERROR: Could not save png to >>>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' >>>>>> >>>>>> The permissions on that directory: >>>>>> >>>>>> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh >>>>>> total 20 >>>>>> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . >>>>>> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. >>>>>> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight >>>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 >>>> amy_last_10800.png >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png >>>>>> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 >> bender.maxheight >>>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 >>>>>> bender_last_10800.png >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png >>>>>> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 >> scruffy.maxheight >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 >>>>>> scruffy_last_10800.png >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 >> scruffy_mini.png >>>>>> >>>>>> I am using nginx + fcgiwrap to serve this. >>>>>> >>>>>> Am I missing something? >>>>>> >>>>>> Thanks for any help, >>>>>> >>>>>> -- >>>>>> staticsafe >>>>>> http://staticsafe.ca >>>>>> >>>>>> _______________________________________________ >>>>>> smokeping-users mailing list >>>>>> smokeping-users at lists.oetiker.ch >>>>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >>>>>> >>>>> >>>> >>>> No luck. (www is the user nginx is run as.) >>>> >>>> [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G >> smokeping >>>> [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping >> ./img >>>> >>>> Still getting the same errors. >>> >> >> Here it is: >> >> imgcache = /usr/local/smokeping/htdocs/img >> imgurl = img >> datadir = /usr/local/var/smokeping >> >> $ ps aux | grep smokeping >> smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15 >> /usr/local/bin/smokeping [FPing] (perl) >> smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81 >> /usr/local/bin/smokeping [FPing] (perl) >> smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03 >> [fping] >> >> $ ls -alh /usr/local/smokeping/htdocs/img >> total 36 >> drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ >> drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ >> drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ >> drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ >> drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ >> drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ >> -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png >> -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png >> >> *snip* >> Fixed. Still receiving the same errors. -- staticsafe http://staticsafe.ca From rb14060 at gmail.com Sun Oct 21 22:08:57 2012 From: rb14060 at gmail.com (Ryan Becker) Date: Sun, 21 Oct 2012 16:08:57 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <50844935.3090901@staticsafe.ca> References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> <50844935.3090901@staticsafe.ca> Message-ID: Oops, I made a mistake. imgurl should actually be relative to a path on the web, so it should actually be set to /img. On Sun, Oct 21, 2012 at 3:12 PM, staticsafe wrote: > On 10/21/2012 14:51, Ryan Becker wrote: > > The issue here is that your imgurl needs to be a full path. Just putting > > "img" doesn't give it anywhere to look. > > > > On Sun, Oct 21, 2012 at 2:49 PM, staticsafe wrote: > > > >> On 10/21/2012 13:32, Nicolas KARP wrote: > >>> Hi Staticsafe, > >>> > >>> Can you please send me your current config for the variables : > >>> > >>> imgcache = /opt/smokeping-2.6.7/cache > >>> imgurl = /smokeping/cache > >>> datadir = /opt/smokeping-2.6.7/data > >>> > >>> and the result of : > >>> > >>> ps aux | grep smokeping > >>> ls -alh /usr/local/smokeping/htdocs/img > >>> > >>> Can you also check the httpd log file (Error logfile) ? And can you > >> check > >>> if you are using SELinux on your box (command : sestatus and logs > should > >> be > >>> in : /var/log/audit/audit.log) ? > >>> 2012/10/20 staticsafe > >>> > >>>> On 10/19/2012 21:51, Nicolas KARP wrote: > >>>>> Hi staticsafe, > >>>>> > >>>>> Check what user is used to run the webserver. This user need write > >> access > >>>>> to the cache directory which i guess is for you : > >>>>> /usr/local/smokeping/htdocs/img > >>>>> > >>>>> What you can do if you want is to add this user in the group called > >>>>> "smokeping" so as the directory and files are owed by smokeping, this > >>>> user > >>>>> would have automatically write access to all the files in this > >> directory. > >>>>> > >>>>> Do me on Centos : /etc/group (Apache is my webserver) > >>>>> smokeping:x:498:apache > >>>>> > >>>>> Best Regards, > >>>>> 2012/10/19 staticsafe > >>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I have a Smokeping 2.6.7 install running over at > >>>>>> smokeping.asininetech.com/smokeping.cgi. > >>>>>> > >>>>>> I am getting errors such as this: > >>>>>> ERROR: Could not save png to > >>>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' > >>>>>> > >>>>>> The permissions on that directory: > >>>>>> > >>>>>> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh > >>>>>> total 20 > >>>>>> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . > >>>>>> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. > >>>>>> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight > >>>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 > >>>> amy_last_10800.png > >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png > >>>>>> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 > >> bender.maxheight > >>>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 > >>>>>> bender_last_10800.png > >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 > bender_mini.png > >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png > >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 > leela_mini.png > >>>>>> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 > >> scruffy.maxheight > >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 > >>>>>> scruffy_last_10800.png > >>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 > >> scruffy_mini.png > >>>>>> > >>>>>> I am using nginx + fcgiwrap to serve this. > >>>>>> > >>>>>> Am I missing something? > >>>>>> > >>>>>> Thanks for any help, > >>>>>> > >>>>>> -- > >>>>>> staticsafe > >>>>>> http://staticsafe.ca > >>>>>> > >>>>>> _______________________________________________ > >>>>>> smokeping-users mailing list > >>>>>> smokeping-users at lists.oetiker.ch > >>>>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >>>>>> > >>>>> > >>>> > >>>> No luck. (www is the user nginx is run as.) > >>>> > >>>> [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G > >> smokeping > >>>> [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping > >> ./img > >>>> > >>>> Still getting the same errors. > >>> > >> > >> Here it is: > >> > >> imgcache = /usr/local/smokeping/htdocs/img > >> imgurl = img > >> datadir = /usr/local/var/smokeping > >> > >> $ ps aux | grep smokeping > >> smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15 > >> /usr/local/bin/smokeping [FPing] (perl) > >> smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81 > >> /usr/local/bin/smokeping [FPing] (perl) > >> smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03 > >> [fping] > >> > >> $ ls -alh /usr/local/smokeping/htdocs/img > >> total 36 > >> drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ > >> drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ > >> drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ > >> drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ > >> drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ > >> drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ > >> -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png > >> -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png > >> > >> *snip* > >> > > Fixed. Still receiving the same errors. > -- > staticsafe > http://staticsafe.ca > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121021/40a20ce4/attachment.htm From me at staticsafe.ca Sun Oct 21 22:53:58 2012 From: me at staticsafe.ca (staticsafe) Date: Sun, 21 Oct 2012 16:53:58 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> <50844935.3090901@staticsafe.ca> Message-ID: <508460E6.80008@staticsafe.ca> On 10/21/2012 16:08, Ryan Becker wrote: > Oops, I made a mistake. imgurl should actually be relative to a path on > the web, so it should actually be set to /img. > > On Sun, Oct 21, 2012 at 3:12 PM, staticsafe wrote: > >> On 10/21/2012 14:51, Ryan Becker wrote: >>> The issue here is that your imgurl needs to be a full path. Just putting >>> "img" doesn't give it anywhere to look. >>> >>> On Sun, Oct 21, 2012 at 2:49 PM, staticsafe wrote: >>> >>>> On 10/21/2012 13:32, Nicolas KARP wrote: >>>>> Hi Staticsafe, >>>>> >>>>> Can you please send me your current config for the variables : >>>>> >>>>> imgcache = /opt/smokeping-2.6.7/cache >>>>> imgurl = /smokeping/cache >>>>> datadir = /opt/smokeping-2.6.7/data >>>>> >>>>> and the result of : >>>>> >>>>> ps aux | grep smokeping >>>>> ls -alh /usr/local/smokeping/htdocs/img >>>>> >>>>> Can you also check the httpd log file (Error logfile) ? And can you >>>> check >>>>> if you are using SELinux on your box (command : sestatus and logs >> should >>>> be >>>>> in : /var/log/audit/audit.log) ? >>>>> 2012/10/20 staticsafe >>>>> >>>>>> On 10/19/2012 21:51, Nicolas KARP wrote: >>>>>>> Hi staticsafe, >>>>>>> >>>>>>> Check what user is used to run the webserver. This user need write >>>> access >>>>>>> to the cache directory which i guess is for you : >>>>>>> /usr/local/smokeping/htdocs/img >>>>>>> >>>>>>> What you can do if you want is to add this user in the group called >>>>>>> "smokeping" so as the directory and files are owed by smokeping, this >>>>>> user >>>>>>> would have automatically write access to all the files in this >>>> directory. >>>>>>> >>>>>>> Do me on Centos : /etc/group (Apache is my webserver) >>>>>>> smokeping:x:498:apache >>>>>>> >>>>>>> Best Regards, >>>>>>> 2012/10/19 staticsafe >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I have a Smokeping 2.6.7 install running over at >>>>>>>> smokeping.asininetech.com/smokeping.cgi. >>>>>>>> >>>>>>>> I am getting errors such as this: >>>>>>>> ERROR: Could not save png to >>>>>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' >>>>>>>> >>>>>>>> The permissions on that directory: >>>>>>>> >>>>>>>> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh >>>>>>>> total 20 >>>>>>>> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 . >>>>>>>> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 .. >>>>>>>> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight >>>>>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42 >>>>>> amy_last_10800.png >>>>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png >>>>>>>> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 >>>> bender.maxheight >>>>>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43 >>>>>>>> bender_last_10800.png >>>>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 >> bender_mini.png >>>>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png >>>>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 >> leela_mini.png >>>>>>>> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 >>>> scruffy.maxheight >>>>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24 >>>>>>>> scruffy_last_10800.png >>>>>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 >>>> scruffy_mini.png >>>>>>>> >>>>>>>> I am using nginx + fcgiwrap to serve this. >>>>>>>> >>>>>>>> Am I missing something? >>>>>>>> >>>>>>>> Thanks for any help, >>>>>>>> >>>>>>>> -- >>>>>>>> staticsafe >>>>>>>> http://staticsafe.ca >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> smokeping-users mailing list >>>>>>>> smokeping-users at lists.oetiker.ch >>>>>>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >>>>>>>> >>>>>>> >>>>>> >>>>>> No luck. (www is the user nginx is run as.) >>>>>> >>>>>> [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G >>>> smokeping >>>>>> [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping >>>> ./img >>>>>> >>>>>> Still getting the same errors. >>>>> >>>> >>>> Here it is: >>>> >>>> imgcache = /usr/local/smokeping/htdocs/img >>>> imgurl = img >>>> datadir = /usr/local/var/smokeping >>>> >>>> $ ps aux | grep smokeping >>>> smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15 >>>> /usr/local/bin/smokeping [FPing] (perl) >>>> smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81 >>>> /usr/local/bin/smokeping [FPing] (perl) >>>> smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03 >>>> [fping] >>>> >>>> $ ls -alh /usr/local/smokeping/htdocs/img >>>> total 36 >>>> drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ >>>> drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ >>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ >>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ >>>> drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ >>>> drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ >>>> -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png >>>> -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png >>>> >>>> *snip* >>>> >> >> Fixed. Still receiving the same errors. >> -- >> staticsafe >> http://staticsafe.ca Ok, my pathnames config is this: sendmail = /usr/sbin/sendmail imgcache = /usr/local/smokeping/htdocs/imgcache imgurl = /img datadir = /usr/local/var/smokeping piddir = /usr/local/var/smokeping smokemail = /usr/local/etc/smokeping/smokemail tmail = /usr/local/etc/smokeping/tmail Still getting errors such as this: "ERROR: Could not save png to '/usr/local/smokeping/htdocs/imgcache/IRC/amy_last_10800.png'" Example - http://smokeping.asininetech.com/smokeping.cgi?target=IRC.amy -- staticsafe http://staticsafe.ca From smokeping at museum.rain.com Mon Oct 22 05:58:52 2012 From: smokeping at museum.rain.com (Jim Long) Date: Sun, 21 Oct 2012 20:58:52 -0700 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <508460E6.80008@staticsafe.ca> References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> <50844935.3090901@staticsafe.ca> <508460E6.80008@staticsafe.ca> Message-ID: <20121022035852.GA37462@ns.umpquanet.com> On Sun, Oct 21, 2012 at 04:53:58PM -0400, staticsafe wrote: > >>>>>>>> I have a Smokeping 2.6.7 install running over at > >>>>>>>> smokeping.asininetech.com/smokeping.cgi. > >>>>>>>> > >>>>>>>> I am getting errors such as this: > >>>>>>>> ERROR: Could not save png to > >>>>>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' > >>>>>>>> > >>>> > >>>> Here it is: > >>>> > >>>> imgcache = /usr/local/smokeping/htdocs/img > >>>> imgurl = img > >>>> datadir = /usr/local/var/smokeping > >>>> > >>>> $ ps aux | grep smokeping > >>>> smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15 > >>>> /usr/local/bin/smokeping [FPing] (perl) > >>>> smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81 > >>>> /usr/local/bin/smokeping [FPing] (perl) > >>>> smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03 > >>>> [fping] > >>>> > >>>> $ ls -alh /usr/local/smokeping/htdocs/img > >>>> total 36 > >>>> drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ > >>>> drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ > >>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ > >>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ > >>>> drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ > >>>> drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ > >>>> -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png > >>>> -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png Try: chown -R www:www /usr/local/smokeping/htdocs/img From me at staticsafe.ca Mon Oct 22 15:27:41 2012 From: me at staticsafe.ca (staticsafe) Date: Mon, 22 Oct 2012 09:27:41 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <20121022035852.GA37462@ns.umpquanet.com> References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> <50844935.3090901@staticsafe.ca> <508460E6.80008@staticsafe.ca> <20121022035852.GA37462@ns.umpquanet.com> Message-ID: <508549CD.3090805@staticsafe.ca> On 21/10/2012 11:58 PM, Jim Long wrote: > On Sun, Oct 21, 2012 at 04:53:58PM -0400, staticsafe wrote: >>>>>>>>>> I have a Smokeping 2.6.7 install running over at >>>>>>>>>> smokeping.asininetech.com/smokeping.cgi. >>>>>>>>>> >>>>>>>>>> I am getting errors such as this: >>>>>>>>>> ERROR: Could not save png to >>>>>>>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' >>>>>>>>>> > >>>>>> >>>>>> Here it is: >>>>>> >>>>>> imgcache = /usr/local/smokeping/htdocs/img >>>>>> imgurl = img >>>>>> datadir = /usr/local/var/smokeping >>>>>> >>>>>> $ ps aux | grep smokeping >>>>>> smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15 >>>>>> /usr/local/bin/smokeping [FPing] (perl) >>>>>> smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81 >>>>>> /usr/local/bin/smokeping [FPing] (perl) >>>>>> smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03 >>>>>> [fping] >>>>>> >>>>>> $ ls -alh /usr/local/smokeping/htdocs/img >>>>>> total 36 >>>>>> drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ >>>>>> drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ >>>>>> -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png >>>>>> -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png > > Try: > > chown -R www:www /usr/local/smokeping/htdocs/img > > > Tried that as well. No luck. Been playing with the permissions all week. :( -- staticsafe http://staticsafe.ca From liste at karp.fr Tue Oct 23 18:03:29 2012 From: liste at karp.fr (Nicolas KARP) Date: Tue, 23 Oct 2012 18:03:29 +0200 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <508549CD.3090805@staticsafe.ca> References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> <50844935.3090901@staticsafe.ca> <508460E6.80008@staticsafe.ca> <20121022035852.GA37462@ns.umpquanet.com> <508549CD.3090805@staticsafe.ca> Message-ID: Staticsafe, On the ngix error logs, there are some other errors (failed to open Javascript / ...) Did you check if you were running selinux on your box ? BTW, What OS are you using ? Did you use a package to install smokepiong or did you install smokeping from the source ? Thanks. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - Nicolas KARP # - - Network and Security Engineer # - - Email : liste at karp.fr # - - Linkedin : http://www.linkedin.com/pub/nicolas-karp/39/60b/21a # - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2012/10/22 staticsafe > On 21/10/2012 11:58 PM, Jim Long wrote: > > On Sun, Oct 21, 2012 at 04:53:58PM -0400, staticsafe wrote: > >>>>>>>>>> I have a Smokeping 2.6.7 install running over at > >>>>>>>>>> smokeping.asininetech.com/smokeping.cgi. > >>>>>>>>>> > >>>>>>>>>> I am getting errors such as this: > >>>>>>>>>> ERROR: Could not save png to > >>>>>>>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' > >>>>>>>>>> > > > >>>>>> > >>>>>> Here it is: > >>>>>> > >>>>>> imgcache = /usr/local/smokeping/htdocs/img > >>>>>> imgurl = img > >>>>>> datadir = /usr/local/var/smokeping > >>>>>> > >>>>>> $ ps aux | grep smokeping > >>>>>> smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM > 0:09.15 > >>>>>> /usr/local/bin/smokeping [FPing] (perl) > >>>>>> smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM > 0:08.81 > >>>>>> /usr/local/bin/smokeping [FPing] (perl) > >>>>>> smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM > 0:00.03 > >>>>>> [fping] > >>>>>> > >>>>>> $ ls -alh /usr/local/smokeping/htdocs/img > >>>>>> total 36 > >>>>>> drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ > >>>>>> drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ > >>>>>> -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png > >>>>>> -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png > > > > Try: > > > > chown -R www:www /usr/local/smokeping/htdocs/img > > > > > > > > Tried that as well. No luck. Been playing with the permissions all week. :( > > -- > staticsafe > http://staticsafe.ca > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121023/10cc77b2/attachment.htm From me at staticsafe.ca Tue Oct 23 19:46:00 2012 From: me at staticsafe.ca (staticsafe) Date: Tue, 23 Oct 2012 13:46:00 -0400 Subject: [smokeping-users] PNG Saving errors In-Reply-To: References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> <50844935.3090901@staticsafe.ca> <508460E6.80008@staticsafe.ca> <20121022035852.GA37462@ns.umpquanet.com> <508549CD.3090805@staticsafe.ca> Message-ID: <5086D7D8.9000206@staticsafe.ca> On 23/10/2012 12:03 PM, Nicolas KARP wrote: > Staticsafe, > > On the ngix error logs, there are some other errors (failed to open > Javascript / ...) > > Did you check if you were running selinux on your box ? BTW, What OS are > you using ? > Did you use a package to install smokepiong or did you install smokeping > from the source ? > > Thanks. > > > 2012/10/22 staticsafe > > > On 21/10/2012 11:58 PM, Jim Long wrote: > > On Sun, Oct 21, 2012 at 04:53:58PM -0400, staticsafe wrote: > >>>>>>>>>> I have a Smokeping 2.6.7 install running over at > >>>>>>>>>> smokeping.asininetech.com/smokeping.cgi > . > >>>>>>>>>> > >>>>>>>>>> I am getting errors such as this: > >>>>>>>>>> ERROR: Could not save png to > >>>>>>>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png' > >>>>>>>>>> > > > >>>>>> > >>>>>> Here it is: > >>>>>> > >>>>>> imgcache = /usr/local/smokeping/htdocs/img > >>>>>> imgurl = img > >>>>>> datadir = /usr/local/var/smokeping > >>>>>> > >>>>>> $ ps aux | grep smokeping > >>>>>> smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM > 0:09.15 > >>>>>> /usr/local/bin/smokeping [FPing] (perl) > >>>>>> smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM > 0:08.81 > >>>>>> /usr/local/bin/smokeping [FPing] (perl) > >>>>>> smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM > 0:00.03 > >>>>>> [fping] > >>>>>> > >>>>>> $ ls -alh /usr/local/smokeping/htdocs/img > >>>>>> total 36 > >>>>>> drwxr-xr-x 6 www www 512B Oct 21 11:38 ./ > >>>>>> drwxr-xr-x 4 www www 512B Oct 21 11:36 ../ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/ > >>>>>> drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/ > >>>>>> -rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png > >>>>>> -rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png > > > > Try: > > > > chown -R www:www /usr/local/smokeping/htdocs/img > > > > > > > > Tried that as well. No luck. Been playing with the permissions all > week. :( Smokeping running on FreeBSD 9.0 so no SELinux. I have fixed all the JS file not found errors. P.S - Can you please not top-post? It makes threads annoying to read. -- staticsafe http://staticsafe.ca From liste at karp.fr Tue Oct 23 20:32:57 2012 From: liste at karp.fr (Nicolas KARP) Date: Tue, 23 Oct 2012 20:32:57 +0200 Subject: [smokeping-users] PNG Saving errors In-Reply-To: <5086D7D8.9000206@staticsafe.ca> References: <5081CAD0.2070605@staticsafe.ca> <5082095F.9030809@staticsafe.ca> <508443C7.9000303@staticsafe.ca> <50844935.3090901@staticsafe.ca> <508460E6.80008@staticsafe.ca> <20121022035852.GA37462@ns.umpquanet.com> <508549CD.3090805@staticsafe.ca> <5086D7D8.9000206@staticsafe.ca> Message-ID: So don't have a clue :-/ Maybe try to use the nginx user and try to create a file on the imgcache directory manually. And try to do a strace of the process to check what happens (whatever the command on xBSD : truss ?) Best Regards, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121023/25aa9efd/attachment.htm From gert at space.net Wed Oct 24 19:07:18 2012 From: gert at space.net (Gert Doering) Date: Wed, 24 Oct 2012 19:07:18 +0200 Subject: [smokeping-users] non-uniqe DNS IDs with SmokePing and AnotherDNS Message-ID: <20121024170718.GA13776@Space.Net> Hi, forwarded to the list on request, in case someone might have more insight or better Perl-Fu... gert ----- Forwarded message from Gert Doering ----- Date: Wed, 24 Oct 2012 12:14:11 +0200 From: Gert Doering Subject: non-uniqe DNS IDs with SmokePing and AnotherDNS User-Agent: Mutt/1.5.21 (2010-09-15) Hi Olaf, Tobi, I've run into an issue with SmokePing, its AnotherDNS probe, and Net::DNS that I do not understand. Specifically, every DNS probe SmokePing sends carries the very same Query ID - which it shouldn't do from a DNS PoV, but even from staring at the code involved, this should not happen (I have traces from various versions of SmokePing and perl on FreeBSD and Linux that show this, so I claim it's not my local installation that is borked). SmokePing does this (AnotherDNS.pm, pingone()): -------------------- snip --------------------- my $packet = Net::DNS::Packet->new( $lookuphost, $recordtype )->data; ... for ( my $run = 0 ; $run < $self->pings($target) ; $run++ ) { ... $sock->send($packet); ... -------------------- snip --------------------- while Net::DNS::Header does: -------------------- snip --------------------- { sub nextid { int rand(MAX_ID); } } sub new { my $class = shift; bless { id => nextid(), ... -------------------- snip --------------------- together, this should achieve: - for every invocation of pingone(), a new (random) DNS ID is rolled - for all $self->pings($target) (5), the same ID is used, as the same Net::DNS::Packet is sent (whether this is "right" is debatable, but it is the way it is today) but, what I see is that *every* *single* DNS packet that AnotherDNS creates, no matter for which target (different packets!), or for which run-of-5, will *always* use the very same DNS query ID - verified by calling Data::Dumper on what Net::DNS::Packet->new() returns, "id => ..." changes when I restart SmokePing, but after that, it's always the same. Now, one could argue that "something in SmokePing is breaking rand()", but it's not so easy. If I change the SmokePing code to do this: -------------------- snip --------------------- my $p1 = Net::DNS::Packet->new( $lookuphost, $recordtype ); ... for ( my $run = 0 ; $run < $self->pings($target) ; $run++ ) { ... $p1->header->id( int(rand(65535)) ); my $packet = $p1->data; $sock->send($packet); ... -------------------- snip --------------------- it will send a random query ID for every single packet - so rand() is not to blame. OTOH, Net::DNS::Packet is also very well-behaved if I call it from a test program -------------------- snip --------------------- #!/usr/bin/perl -w use Data::Dumper; use Net::DNS; foreach my $i (0..4) { my $packet = Net::DNS::Packet->new( "www.space.net", "A" ); print Dumper($packet); } -------------------- snip --------------------- -> new ID every time (this is what *should* happen for different runs of SmokePing's "pingone()" - i.e. for different targets, or every 5 minutes for a new set of DNS queries). Soooo... something in SmokePing is affecting Net::DNS::Header's "nextid()" in surprising ways, and I can't find it... I think it's a SmokePing bug (the query ID should be randomized for every single packet, not only between runs) *but* the fact that it can break what Net::DNS::Header is doing might warrant looking at the implementation in Net::DNS - "applications should not be able to break that!". No? thanks for your attention :-) Gert Doering -- NetMaster -- have you enabled IPv6 on something today...? SpaceNet AG Vorstand: Sebastian v. Bomhard Joseph-Dollinger-Bogen 14 Aufsichtsratsvors.: A. Grundner-Culemann D-80807 Muenchen HRB: 136055 (AG Muenchen) Tel: +49 (89) 32356-444 USt-IdNr.: DE813185279 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 306 bytes Desc: not available Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121024/94d165f3/attachment-0001.pgp From ntyni+smokeping-users at mappi.helsinki.fi Wed Oct 24 19:47:31 2012 From: ntyni+smokeping-users at mappi.helsinki.fi (Niko Tyni) Date: Wed, 24 Oct 2012 20:47:31 +0300 Subject: [smokeping-users] non-uniqe DNS IDs with SmokePing and AnotherDNS In-Reply-To: <20121024170718.GA13776@Space.Net> References: <20121024170718.GA13776@Space.Net> Message-ID: <20121024174731.GA4186@madeleine.local.invalid> On Wed, Oct 24, 2012 at 07:07:18PM +0200, Gert Doering wrote: > Specifically, every DNS probe SmokePing sends carries the very same > Query ID - which it shouldn't do from a DNS PoV, but even from staring > at the code involved, this should not happen (I have traces from various > versions of SmokePing and perl on FreeBSD and Linux that show this, so > I claim it's not my local installation that is borked). I think I see the problem. The main SmokePing process forks the probe subprocesses, which first call srand() in Smokeping::make_kid() to initialize the random number generator. The AnotherDNS probe then starts one subprocess for each ping, but all of those inherit the state of the RNG. Does the attached (untested) patch fix it for you? % perl -le 'srand; fork; print "pid $$ => " . rand()' pid 5039 => 0.712492274426953 pid 5040 => 0.712492274426953 % perl -le 'fork; srand; print "pid $$ => " . rand()' pid 5250 => 0.967728406264545 pid 5251 => 0.62419137808411 Cheers, -- Niko Tyni ntyni at debian.org -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Reseed-the-random-number-generator-for-each-pinger-p.patch Type: text/x-diff Size: 1230 bytes Desc: not available Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121024/2fd7a8a5/attachment.patch From gert at space.net Wed Oct 24 20:11:20 2012 From: gert at space.net (Gert Doering) Date: Wed, 24 Oct 2012 20:11:20 +0200 Subject: [smokeping-users] non-uniqe DNS IDs with SmokePing and AnotherDNS In-Reply-To: <20121024174731.GA4186@madeleine.local.invalid> References: <20121024170718.GA13776@Space.Net> <20121024174731.GA4186@madeleine.local.invalid> Message-ID: <20121024181120.GC13776@Space.Net> Hi, (copying in Olaf Kolkmann, who I harrassed with this as well, thus full-quoting) On Wed, Oct 24, 2012 at 08:47:31PM +0300, Niko Tyni wrote: > On Wed, Oct 24, 2012 at 07:07:18PM +0200, Gert Doering wrote: > > > Specifically, every DNS probe SmokePing sends carries the very same > > Query ID - which it shouldn't do from a DNS PoV, but even from staring > > at the code involved, this should not happen (I have traces from various > > versions of SmokePing and perl on FreeBSD and Linux that show this, so > > I claim it's not my local installation that is borked). > > I think I see the problem. The main SmokePing process forks the probe > subprocesses, which first call srand() in Smokeping::make_kid() to > initialize the random number generator. The AnotherDNS probe then > starts one subprocess for each ping, but all of those inherit the state > of the RNG. > > Does the attached (untested) patch fix it for you? > > % perl -le 'srand; fork; print "pid $$ => " . rand()' > pid 5039 => 0.712492274426953 > pid 5040 => 0.712492274426953 > > % perl -le 'fork; srand; print "pid $$ => " . rand()' > pid 5250 => 0.967728406264545 > pid 5251 => 0.62419137808411 Indeed, this explanation is completely logical (phew) and I was missing that extra fork() - I knew that the AnotherDNS probe is forked once (well visible in "ps") but I didn't know that individual ping runs gets forked as well. I *did* search for srand() calls in the source :-) With your patch, the behaviour changes to "the query ID is identical for each batch of 5 probes belonging to the same 'target'", which is what one *should* expect after reading the code. Whether sending multiple queries with the same query ID is "right" according to DNS lore, I leave to Olaf to answer - but it takes out most of the confusion. thanks, gert > > Cheers, > -- > Niko Tyni ntyni at debian.org > >From 9571093782e110a56007f91d96f5fcbfa3830ea0 Mon Sep 17 00:00:00 2001 > From: Niko Tyni > Date: Wed, 24 Oct 2012 20:34:07 +0300 > Subject: [PATCH] Reseed the random number generator for each pinger process > > As spotted by Gert Doering, rand() gives the same results in each > pinger subprocess. This is because they all inherit the same RNG state > from their parent. > > Fix this undesired behaviour by reseeding the RNG with the current time > and the process ID. > > The argument of srand() shouldn't really matter much on modern Perls, > but we're not very concerned about the quality of the random numbers > either, and time()+$$ should make sure it's different for each process. > --- > lib/Smokeping/probes/basefork.pm | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/Smokeping/probes/basefork.pm b/lib/Smokeping/probes/basefork.pm > index 0de7b6d..147c572 100644 > --- a/lib/Smokeping/probes/basefork.pm > +++ b/lib/Smokeping/probes/basefork.pm > @@ -201,6 +201,9 @@ sub ping { > # we detach from the parent's process group > setpgrp(0, $$); > > + # re-initialize the RNG for each subprocess > + srand(time()+$$); > + > my @times = $self->pingone($t); > print join(" ", @times), "\n"; > exit; > -- > 1.7.10.4 > Gert Doering -- NetMaster -- have you enabled IPv6 on something today...? SpaceNet AG Vorstand: Sebastian v. Bomhard Joseph-Dollinger-Bogen 14 Aufsichtsratsvors.: A. Grundner-Culemann D-80807 Muenchen HRB: 136055 (AG Muenchen) Tel: +49 (89) 32356-444 USt-IdNr.: DE813185279 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 306 bytes Desc: not available Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121024/97653c67/attachment.pgp From tobi at oetiker.ch Wed Oct 24 21:08:23 2012 From: tobi at oetiker.ch (Tobias Oetiker) Date: Wed, 24 Oct 2012 21:08:23 +0200 (CEST) Subject: [smokeping-users] non-uniqe DNS IDs with SmokePing and AnotherDNS In-Reply-To: <20121024174731.GA4186@madeleine.local.invalid> References: <20121024170718.GA13776@Space.Net> <20121024174731.GA4186@madeleine.local.invalid> Message-ID: Hi Niko, Today Niko Tyni wrote: > On Wed, Oct 24, 2012 at 07:07:18PM +0200, Gert Doering wrote: > > > Specifically, every DNS probe SmokePing sends carries the very same > > Query ID - which it shouldn't do from a DNS PoV, but even from staring > > at the code involved, this should not happen (I have traces from various > > versions of SmokePing and perl on FreeBSD and Linux that show this, so > > I claim it's not my local installation that is borked). > > I think I see the problem. The main SmokePing process forks the probe > subprocesses, which first call srand() in Smokeping::make_kid() to > initialize the random number generator. The AnotherDNS probe then > starts one subprocess for each ping, but all of those inherit the state > of the RNG. > > Does the attached (untested) patch fix it for you? > > % perl -le 'srand; fork; print "pid $$ => " . rand()' > pid 5039 => 0.712492274426953 > pid 5040 => 0.712492274426953 > > % perl -le 'fork; srand; print "pid $$ => " . rand()' > pid 5250 => 0.967728406264545 > pid 5251 => 0.62419137808411 great ... I was experimenting with the fork call too, but I ignored the srand call ... interestingly enough, things work fine if you do % perl -le 'fork; print "pid $$ => " . rand()' as if perl was doing an automatic srand on fork or someting ... so maybe it would suffice to NOT call srand in Smokeping.pm ... in any event, I have merged your patch for now ... cheers tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900 From ntyni+smokeping-users at mappi.helsinki.fi Wed Oct 24 21:29:21 2012 From: ntyni+smokeping-users at mappi.helsinki.fi (Niko Tyni) Date: Wed, 24 Oct 2012 22:29:21 +0300 Subject: [smokeping-users] non-uniqe DNS IDs with SmokePing and AnotherDNS In-Reply-To: References: <20121024170718.GA13776@Space.Net> <20121024174731.GA4186@madeleine.local.invalid> Message-ID: <20121024192921.GA24797@madeleine.local.invalid> On Wed, Oct 24, 2012 at 09:08:23PM +0200, Tobias Oetiker wrote: > great ... I was experimenting with the fork call too, but I ignored > the srand call ... interestingly enough, things work fine if you do > > % perl -le 'fork; print "pid $$ => " . rand()' > > as if perl was doing an automatic srand on fork or someting ... Yeah, rand() is documented to call srand() on the first time unless srand() has already been called. > so maybe it would suffice to NOT call srand in Smokeping.pm ... Removing all the srand() calls would probably work if we didn't call rand() before forking either. But we currently do AFAICS, at least with if ($offset eq 'random'){ $offset = int(rand($step)); % perl -le 'rand; fork; print "pid $$ => " . rand()' pid 25161 => 0.437039271786006 pid 25162 => 0.437039271786006 Also, I see lib/SNMP_util.pm calls srand() on startup :) So it seems safest to me to just call srand always after forking. > in any event, I have merged your patch for now ... Great, thanks :) -- Niko