View previous topic :: View next topic |
Author |
Message |
Thistled Guru
Joined: 06 Jan 2011 Posts: 572 Location: Scotland
|
Posted: Wed Jul 02, 2014 12:09 pm Post subject: [ solved ] Nagios core 3.3.1 - borked |
|
|
Hello peeps.
I am most disappointed with the install of nagios.
I have followed the Nagios wiki to the letter.
Is it time to review or remove the Nagios entry, because as it stands, the user will not have a fully functioning nagios.
I have searched around on the internet and because of the various different linux flavours, files are being placed
in totally different folders to the ones which gentoo uses.
I don't understand how for some users it "will just work" if following the quick install guide. It doesn't on my box.
This is a fresh Gentoo install ( I jumped to 64bit a few days ago and started from scratch ).
There seems to be no reference to starting nagios using systemd, only the openrc method.
Running
Code: | /usr/sbin/nagios -v /etc/nagios/nagios.cfg |
shows no errors with my configuration.
If I run the above with the -d switch, it does NOT run as a daemon.
The apache interface is configured and working.
I have checked permissions and all seems good.
If I have followed the wiki to the letter, then why is it not working?
Am I missing something here?
I don't want this to be another 10 days of my life gone, because I am using gentoo. lol. _________________ Whatever you do, do it properly!
Last edited by Thistled on Mon Sep 01, 2014 1:29 pm; edited 1 time in total |
|
Back to top |
|
|
Thistled Guru
Joined: 06 Jan 2011 Posts: 572 Location: Scotland
|
Posted: Wed Jul 02, 2014 5:20 pm Post subject: Update |
|
|
Can the author of the Nagios wiki please update the page to inform systemd users they will need
to create a systemd unit file if they wish to run nagios as a daemon?
There is no reference to this on the existing page, and I have just had to do
a crash course on how to create unit files.
The wiki also needs to be updated with regards to the files which MUST be created, and
the appropriate permissions set if nagios is to work properly. _________________ Whatever you do, do it properly! |
|
Back to top |
|
|
kostekjo n00b
Joined: 31 May 2008 Posts: 3
|
Posted: Fri Aug 29, 2014 10:50 am Post subject: |
|
|
Stuck on this too... Could You provide the .service file for systemctl ? |
|
Back to top |
|
|
Majed17 Guru
Joined: 31 Aug 2011 Posts: 328 Location: Minsk, Belarus
|
Posted: Fri Aug 29, 2014 11:32 am Post subject: |
|
|
i followed the install according as if i have a fedora linux and nagios 4 is working. the guide is on the nagios website. |
|
Back to top |
|
|
Thistled Guru
Joined: 06 Jan 2011 Posts: 572 Location: Scotland
|
Posted: Mon Sep 01, 2014 1:28 pm Post subject: |
|
|
The file is called nagios.service
Code: |
[Unit]
Description=Nagios Daemon
[Service]
ExecStart=/usr/sbin/nagios /etc/nagios/nagios.cfg --group nagios
[Install]
WantedBy=multi-user.target
|
This is what I had to create and place inside /etc/systemd/system/ _________________ Whatever you do, do it properly! |
|
Back to top |
|
|
Thistled Guru
Joined: 06 Jan 2011 Posts: 572 Location: Scotland
|
Posted: Mon Sep 01, 2014 1:30 pm Post subject: |
|
|
I am marking this one as solved as Nagios is working after much faffing.
Was a great learning curve. _________________ Whatever you do, do it properly! |
|
Back to top |
|
|
|