When I comment the line out I still get a related error:

#puppet agent --test --verbose
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid parameter short_alias at line 370 on node nagios
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
#grep short_alias /etc/puppet/modules/nagios/manifests/init.pp
#define host($ip = $::fqdn, $short_alias = $::fqdn, $product_domain =
$::product_domain) {
#

On Wed, Aug 1, 2012 at 8:56 AM, david.gar...@gmail.com <
david.gar...@gmail.com> wrote:

> Hello,
>
> I can't wrap my head around what is causing this error. After rebooting
> the box I get this error. If I remove the $hostgroup parameter it errors at
> $product_domain and down the line. What is going wrong here? I have facters
> defined for nagios server.
> I am testing this where nagios server (puppet client) is currently on the
> puppetmaster. The error prevents me from updating my nagios configs.
>
>  facter | egrep "product_info|product_domain"
> product_domain => nagios_server
> product_info => nagios_server
>
>
> puppet agent --test --verbose
> err: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Invalid parameter product_domain at line 370 on node nagios_node.
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
>
>
> class nagios-server {
>
> File <<| tag == 'nagios' |>>
>
> define host($ip = $::fqdn, $short_alias = $::fqdn, $hostgroup =
> $::product_info, $product_domain = $::product_domain) {
>      case $product_info {
>       /SomeProduct/: {
>      $nagios_cfgdir = "/usr/local/nagios/etc/objects/ctf/hosts"
>      @@file {
>             "$nagios_cfgdir/${name}.cfg":
>              ignore => ".svn",
>              ensure => present,
>              content => template( "nagios/host.cfg" ),
>              mode => 644,
>              owner => nagios,
>              group => nagios,
>              tag => 'nagios',
>              notify => Service[nagios],
>              }
>      }
>
>
>
>
>
> Thanks,
> David Garvey
>



-- 
David Garvey

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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