[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-11 Thread Paride Legovini
You are right. I thought tmpfiles.d had a hook so it would recreate the
needed files/directories on a service (re)start, but apparently this is
not the case. I think we can safely set the status of this report to
Invalid. Thanks for both raising the issue and bringing it to a well
understood conclusion.

** Changed in: nagios-nrpe (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-08 Thread Danny Howard
We use libnss-ldapd.

I think it may be sufficient to claim:

"System users generally have to be resolvable during early boot already.
This means they should not be provided by any networked service ..." [1]

So, is this even a bug? If your OS uses systemd, then you need to ensure
your system users are resolvable early in boot. I am disappointed that
the tmpfiles service can't make your tmpfiles when you launch the
service that requires them. I mean ... really? But that is life. Stick
your nagios user and group in /etc/passwd and /etc/group and focus on
those things that make you happy in this life. If you agree, then please
feel free to close this out.

[1] https://systemd.io/UIDS-GIDS/#notes-on-resolvability-of-user-and-
group-names

** Changed in: nagios-nrpe (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-07 Thread Paride Legovini
** Changed in: nagios-nrpe (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-06 Thread Paride Legovini
Thanks for clarifying. Systemd should support resolving users via LDAP,
with a caveat: the service providing the users should be running when
the user resolution is requested [1]. This may be a problem at boot
time, but not once the boot has completed. This is why I was insisting
on trying to start the service after the boot process was complete.

As it *should* be quick and easy I'd give a shot at replacing libnss-
ldap with libnss-ldapd. From [2]: libnss-ldap has some known issues with
serving host information and lookups during boot which should be
addressed in libnss-ldapd.

[1] https://systemd.io/UIDS-GIDS/#notes-on-resolvability-of-user-and-group-names
[2] https://wiki.debian.org/LDAP/NSS

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-05 Thread Danny Howard
Paride,

IF the nagios user is in LDAP, then /var/run/nagios will not be created
by systemd at boot time, or any time after that.

I can confirm that the following sequences fail to get nagios-nrpe-
server running:

sudo service nagios-nrpe-server restart

sudo service nagios-nrpe-server stop
sudo service nagios-nrpe-server start

sudo systemctl stop nagios-nrpe-server
sudo systemctl start nagios-nrpe-server

Nothing in there triggers systems to create the missing directory:

May 05 11:04:08 dmz-gnt03-04 systemd[1]: Started Nagios Remote Plugin Executor.
May 05 11:04:08 dmz-gnt03-04 nrpe[10603]: Starting up daemon
May 05 11:04:08 dmz-gnt03-04 nrpe[10603]: Cannot write to pidfile 
'/var/run/nagios/nrpe.pid' - check your privileges.
May 05 11:04:08 dmz-gnt03-04 systemd[1]: nagios-nrpe-server.service: Main 
process exited, code=exited, status=2/INVALIDARGUMENT
May 05 11:04:08 dmz-gnt03-04 systemd[1]: nagios-nrpe-server.service: Failed 
with result 'exit-code'.

> ls -ld /var/run/nagios
ls: cannot access '/var/run/nagios': No such file or directory

The only recourse is manual mkdir/chown.

** Changed in: nagios-nrpe (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-05 Thread Paride Legovini
I mean starting it manually using systemd, like this:

  systemctl stop nagios-nrpe-server # just in case
  systemctl start nagios-nrpe-server # does this succeed?

Starting the service like this shouldn't be any different than starting
it at boot.

** Changed in: nagios-nrpe (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-04 Thread Danny Howard
Paride, unfortunately, when systemd fails to create /var/lib/nagios
during system boot, the nagios-nrpe-server service can not be started
manually. If the operator creates the missing directory and chowns it to
nagios, they can then start the service manually.

** Changed in: nagios-nrpe (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-04 Thread Paride Legovini
Hi Danny, thanks for the digging. Can the service be started manually,
when all the other services (including LDAP) are already running?

I'm setting the status of this report to Incomplete for the moment,
which is our way to keep track of bugs where we're waiting for further
feedback. Please change the bug status back to New after commenting
back. Thanks!

** Changed in: nagios-nrpe (Ubuntu)
   Status: Triaged => Won't Fix

** Changed in: nagios-nrpe (Ubuntu)
   Status: Won't Fix => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-05-01 Thread Danny Howard
I am still testing but it looks like the problem for me is that we have
(had) the nagios user in LDAP. Systemd says that the tmpfiles.d stuff
will NOT work when you specify a non-local user. I think it is more
correct to provision our system-level users in system-level files.

I should have a more conclusive understanding next week, but this bug
may be more of a feature request, at best.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1871194] Re: nagios-nrpe-server fails to launch after reboot

2020-04-07 Thread Lucas Kanashiro
Checking the systemd-tempfiles documentation
(https://freedesktop.org/software/systemd/man/tmpfiles.d.html#Description)
makes me think we could use RuntimeDirectory to fix this issue:

System daemons frequently require private runtime directories below /run
to store communication sockets and similar. For these, is is better to
use RuntimeDirectory= in their unit files (see systemd.exec(5) for
details), if the flexibility provided by tmpfiles.d is not required. The
advantages are that the configuration required by the unit is
centralized in one place, and that the lifetime of the directory is tied
to the lifetime of the service itself.

** Changed in: nagios-nrpe (Ubuntu)
   Status: New => Triaged

** Changed in: nagios-nrpe (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871194

Title:
  nagios-nrpe-server fails to launch after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1871194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs