Package Details: nagios 4.5.1-1

Git Clone URL: https://aur.archlinux.org/nagios.git (read-only, click to copy)
Package Base: nagios
Description: Nagios is an open source host, service and network monitoring program.
Upstream URL: http://www.nagios.org
Licenses: GPL
Submitter: Idares
Maintainer: Idares
Last Packager: Idares
Votes: 114
Popularity: 0.043601
First Submitted: 2007-08-03 11:53 (UTC)
Last Updated: 2024-03-07 14:45 (UTC)

Latest Comments

1 2 3 4 5 6 .. 12 Next › Last »

v12venator commented on 2023-10-15 17:20 (UTC)

@Idares - I was able to compile this package on both a Raspberry Pi 3 and 4 with the 64-bit version of Arch Linux Arm. Is it possible to add 'aarch64' to the PKGBUILD for anyone else wanting to run a Nagios server on a Pi 3/4?

TIA

Rhinoceros commented on 2023-02-03 02:31 (UTC)

@mosh5382 I've had the php7 binary moved away for over a week and haven't noticed anything weird yet. Please let me know if you upgrade and/or run into problems.

I don't actually use check_by_ssh, so yeah, you might need the home directory in your case then.

mosh5382 commented on 2023-01-29 13:25 (UTC)

@Rhinoceros - I was unable to tell conclusively if PHP 7.4 was a requirement. The official Nagios documentation is unclear however I was unable to find any mention of Nagios and PHP 8. A lot of non-Arch distributions ship outdated versions of PHP so this may be more of an issue for Arch users only. My Nagios machine is a VM so I will certainly snapshot it before trying an upgrade to PHP 8.

I was able to get the email notifications working with s-nail. I suspected there was a way to get this working without the /home/nagios directory for the email configuration. However, what about "check_by_ssh"? Won't the ssh keys have to be in the /home/nagios/.ssh directory for it to work?

Rhinoceros commented on 2023-01-23 10:16 (UTC)

@mosh5382 AFAIK php 7 isn't required by nagios. It's certainly not in the PKGBUILD dependencies. Also, php 7 is not in the AUR.

Because of this, I haven't been game enough to uninstall php 7 yet, but I've moved the binary away, and nagios appears to still work fine.

Also, the email notifications work fine for me without creating a home directory, but my mail config is perhaps setup different to yours. I use s-nail with opensmtpd. Also check /etc/nagios/objects/contacts.cfg. There's also this old issue, but it should be fixed now. Just check

$ ls -l /usr/bin/smtpctl
-r-xr-sr-x 1 root smtpq 168280 Nov  1 19:19 /usr/bin/smtpctl

mosh5382 commented on 2023-01-22 13:17 (UTC)

I just installed this and I have some words of warning for anyone trying to install it new. Nagios generally seems to be in a rough state (not the PKGBUILD which works well). As best I can tell PHP 7 is required which is unsupported by the PHP developers. PHP 7 can be installed via the AUR.

One suggestion on the PKGBUILD. I was unable to get the email notifications to work without creating a home directory for the nagios users. I used the "s-nail" package to do email relay, I couldn't find another method. In this setup Nagios sends notification mail from the Nagios users and I needed to put the configuration files for email relay in /home/nagios. This was difficult to do because the PKGBUILD creates the nagios user as a system user. Google can help you get a proper home directory setup for the nagios user even if they aren't allowed to login. This was the only way I found to get the email notifications working and I did work on the notifications for a while!

Idares commented on 2022-11-29 15:59 (UTC)

Chown warning fixed. Thanks @Rhinoceros.

Rhinoceros commented on 2022-11-24 09:03 (UTC)

Thanks for updating, @Idares. One minor issue, I get the warning when building

chown: warning: '.' should be ':': ‘nagios.nagios’

Looks like a typo in the PKGBUILD, which can be fixed with the following

diff --git a/PKGBUILD b/PKGBUILD
index 4371a24..5fa3bec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -61,7 +61,7 @@ package() {
    install -D -m 644 startup/default-service $pkgdir/usr/lib/systemd/system/nagios.service

    mkdir $pkgdir/var/nagios/rw
-   chown $_nagios_user.$_nagios_group $pkgdir/var/nagios/rw
+   chown $_nagios_user:$_nagios_group $pkgdir/var/nagios/rw
    chmod 755 $pkgdir/var/nagios/rw

    chmod 755 $pkgdir/usr/bin

Rhinoceros commented on 2022-11-20 09:19 (UTC)

Thanks @Idares. That works perfectly.

Idares commented on 2022-11-20 08:40 (UTC)

@Rhinoceros, @nachfuellbar: the openssl package in core was changed from version 1.x to v3. Try to rebuild nagios package with latest openssl installed (without openssl-1.1).

Rhinoceros commented on 2022-11-20 06:54 (UTC)

As per the comment nine days ago, this also fails for me until I install openssl-1.1. @Idares could you please add this as a dependency?

Again, I can see that it's been a bit hard for you to keep updating this package regularly. Again, I'm happy to maintain this package if you like.