Package for nagios

214 views
Skip to first unread message

Sunil Sankar

unread,
Apr 9, 2013, 6:26:57 AM4/9/13
to fpm-...@googlegroups.com
Hi,

Amazing product . I was able to build nagios according to my specification .But I have one issue which I dont know how to address I need to install the daemon script and nagios cmd and also a script which I have written . I have included them in  and build my package .But the issue here is
[root@nagios4 nagios]# rpm -ivh nagios-4.0.0_x86_64.rpm
Preparing...                ########################################### [100%]
useradd: user 'nagios' already exists
groupadd: group 'nagcmd' already exists
   1:nagios                 ########################################### [100%]
/usr/bin/install: cannot stat `daemon-init': No such file or directory
/usr/bin/install: cannot stat `sample-config/httpd.conf': No such file or directory
cp: cannot stat `contrib/eventhandlers/': No such file or directory
chown: cannot access `/usr/local/nagios/libexec/eventhandlers': No such file or directory
[root@nagios4 nagios]#

I get this error How do I go abt this we do make install-init make install-commandmode from source .

these are steps to be followed in my custom installation
NAGIOSPATH=/opt/nagios
ADDONS=/opt/nagios/addons
/usr/sbin/useradd nagios
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -a -G nagcmd nagios
/usr/sbin/usermod -a -G nagcmd apache
./configure --with-command-group=nagcmd --prefix=$NAGIOSPATH
make all
make install; make install-init; make install-config; make install-commandmode; make install-webconf; make install-devel


Regards
Sunil



pranay...@gmail.com

unread,
Apr 11, 2013, 5:05:18 AM4/11/13
to fpm-...@googlegroups.com
Are the ./configure+other commands being done in the post install ?.  Better would be to do all the install to a directory root and use fpm
to package that, also this a good option https://github.com/bernd/fpm-cookery

-pk
Reply all
Reply to author
Forward
0 new messages