Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2015 00:24:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 200775] Null rcvar value if default not set - Puppet can't detect Nagios service enable state
Message-ID:  <bug-200775-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200775

            Bug ID: 200775
           Summary: Null rcvar value if default not set - Puppet can't
                    detect Nagios service enable state
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: freebsd-bugs@joe.mulloy.me

I tried to setup nagios with puppet and it fails to enable the service because
when puppet runs '/usr/local/etc/rc.d/nagios rcvar' it gets the following
output.

# nagios
#
nagios_enable=""
#   (default: "")

This is the error I get from puppet
Error: /Stage[main]/Nagios_server/Service[nagios]: Could not evaluate: rcvar
value is empty

This issue is caused by the nagios rc script not setting a default value for
nagios_enable. It should do this, but perhaps the rc system should detect this
condition and print NO if the service won't start so that things like Puppet
get a sensible response.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200775-8>