Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ solved ] Nagios core 3.3.1 - borked
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Wed Jul 02, 2014 12:09 pm    Post subject: [ solved ] Nagios core 3.3.1 - borked Reply with quote

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
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Wed Jul 02, 2014 5:20 pm    Post subject: Update Reply with quote

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
View user's profile Send private message
kostekjo
n00b
n00b


Joined: 31 May 2008
Posts: 3

PostPosted: Fri Aug 29, 2014 10:50 am    Post subject: Reply with quote

Stuck on this too... Could You provide the .service file for systemctl ?
Back to top
View user's profile Send private message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Fri Aug 29, 2014 11:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Mon Sep 01, 2014 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Mon Sep 01, 2014 1:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum