I try to edit file app/views/hosts/_rrdreport.rhtml

<h3><%= host.name %> Last puppet report on <%=
host.last_report.getlocal %>, which is <%= time_ago_in_words
(host.last_report) %> ago</h3>
<center>
  <% url = "http://<b>srv2-puppet:3000</b>/#{SETTINGS
[:rrd_report_url]}/#{host.name}" -%>
  <h4>Daily</h4>
  <img src = <%= "#{url}/time-daily.png"%>>
  <img src = <%= "#{url}/changes-daily.png"%>>
  <h4>weekly</h4>
  <img src = <%= "#{url}/time-weekly.png"%>>
  <img src = <%= "#{url}/changes-weekly.png"%>>
</center>

Restart apache. It has not helped :(

On 21 дек, 22:37, koliama <a...@billing.ru> wrote:
> Q1: Ohad, I has not understood your assumption. You consider that in
> my options there is an error?
>
> Just in case I have edited options ServerName:
> ServerName puppet -> ServerName puppet:3000
> And I see that Foreman listen only 3000 port.
> [u...@puppet foreman]$ netstat -an | grep 80
> udp        0      0 *:123     *:*
> unix  3      [ ]         STREAM     CONNECTED     3017806
> unix  3      [ ]         STREAM     CONNECTED     3017805
> unix  2      [ ]         DGRAM                    10806
> [r...@srv2-puppet foreman]# netstat -an | grep 3000
> tcp        0      0 :::
> 3000                     :::*                        LISTEN
> tcp        0      0 ::ffff:192.168.1.68:3000     ::ffff:
> 192.168.1.106:1724    TIME_WAIT
>
> Socket on port 80 is not opened.
> P.S. In error_log I have seen the message:
>
> [Mon Dec 21 17:19:20 2009] [error] [client 192.168.1.106] File does
> not exist: /var/puppet/rrd/update_table, 
> referer:http://srv2-puppet:3000/reports
>
> What can it mean?
>
> On 20 дек, 18:09, Ohad Levy <ohadl...@gmail.com> wrote:
>
> > reading your apache configs, i guess that foreman links to port 80 (and you
> > are using 3000).
>
> > you may switch to 80 or reformat the url statement yourself in
> > app/views/hosts/_rrdreport.rhtml.
>
> > cheers,
> > Ohad
>
> > On Sun, Dec 20, 2009 at 8:38 PM, koliama <a...@billing.ru> wrote:
> > > Yes, I configured reporting in Foreman:
>
> > > puppet.conf
> > > report = log,store,tagmail,rrdgraph,foreman
>
> > > Copy file foreman-report.rb into dir /usr/lib/ruby/site_ruby/1.8/
> > > puppet/reports/foreman.rb and as edited
> > > $foreman_url = "http://mypuppethost";
> > > After this restart Apache - is the same result. RRDReports are not
> > > displayed in Foreman web page :(
>
> > > On 20 дек, 03:56, Ohad Levy <ohadl...@gmail.com> wrote:
> > > > Did you enable reporting in Foreman? - e.g.
> > >http://theforeman.org/wiki/foreman/Puppet_Reports
>
> > > > I'm planning to generate all of the graphs within Foreman (no need to 
> > > > use
> > > > RRD anymore) soon (that is when I'll come back from Xmas vacation ), so
> > > > hopefully this wont be required and will look much nicer.
>
> > > > Cheers,
> > > > Ohad
>
> > > > On Sun, Dec 20, 2009 at 6:15 AM, koliama <a...@billing.ru> wrote:
> > > > > Hello,
> > > > > I have configured puppet 0.25.1+passenger+foreman 0.1-3+ruby-rrdtools
> > > > > (into fedora EPEL repository).
> > > > > When I try to look RRDRoport link by host I see "Close Sorry, no
> > > > > graphs for this host"
> > > > > When I try to look Reports link I couldn't see anything. But when I
> > > > > enter in adress bar "http:// mypuppethost/reports/host_fqdn/" - I see
> > > > > rrd reports graph (Daily, Weekly, e.t.c)
> > > > > How to configure puppet+foreman+apache for correct display puppet rrd
> > > > > reports in foreman web interface?
>
> > > > > My conf:
> > > > > puppet.conf
> > > > > [main]
> > > > >    external_nodes = /etc/puppet/node.rb
> > > > >    node_terminus  = exec
> > > > >    vardir = /var/puppet
> > > > >    logdir = $vardir/log
> > > > >    rundir = $vardir/run
> > > > >    ssldir = $vardir/ssl
>
> > > > > [puppetmasterd]
>
> > > > >    reportdir = /var/puppet/reports
> > > > >    reports = log,store,tagmail,rrdgraph
> > > > >    tagmap = $confdir/tagmail.conf
> > > > >    rrddir = $vardir/rrd
> > > > >    rrdinternval = $runinterval
> > > > >    rrdgraph = true
> > > > >    ssl_client_header = SSL_CLIENT_S_DN
> > > > >    ssl_client_verify_header = SSL_CLIENT_VERIFY
> > > > >    autosign = /etc/puppet/autosign.conf
> > > > >    modulepath = /etc/puppet/modules
>
> > > > > apache.conf
> > > > > Listen 3000
> > > > > <VirtualHost *:3000>
> > > > >    ServerName puppet
> > > > >    DocumentRoot /var/rails/foreman/public/
> > > > >    ErrorLog /var/rails/foreman/log/error_log
> > > > >    LogLevel error
>
> > > > > # Grant access to puppet reports
> > > > >  Alias /reports/ /var/puppet/rrd/
> > > > >  <Directory /var/puppet/rrd/>
> > > > >    PassengerEnabled off
> > > > >    Options Indexes
> > > > >    Order deny,allow
> > > > >    Allow from all
> > > > >  </Directory>
> > > > > </VirtualHost>
>
> > > > > foreman settingc.yaml
> > > > > ---
> > > > > :modulepath: /etc/puppet/modules/
> > > > > :rrd_report_url: reports/
> > > > > :puppet_server: srv2-puppet
>
> > > > > --
>
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Puppet Users" group.
> > > > > To post to this group, send email to puppet-us...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
> > > <puppet-users%2bunsubscr...@googlegroups.com<puppet-users%252bunsubscr...@googlegroups.com>
>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/puppet-users?hl=en.
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "Puppet Users" group.
> > > To post to this group, send email to puppet-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/puppet-users?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


Reply via email to