[op5-users] Ubuntu Install Help

Joe Precious joe at helenandjoe.co.uk
Mon Jul 20 19:09:17 CEST 2009


Hi

I'd really like to try out Merlin and Ninja on my Ubuntu test machine.  
I found an install guide in the archives for Ubuntu, but I'm having a 
few issues.  Unfortunately, although I know quite a bit about Nagios, 
I'm not a Linux expert so I'm struggling to see what's going wrong.

I've got Nagios and MySQL all up and running.  When I run Make for 
Merlin, I get the follow errors:-

rm -f core core.[0-9]*
rm -f ipc.{read,write}.bin *.log
rm -f merlin.so merlind *.o blread endpoint
root at ubuntu:/etc/nagios3/addons/merlin-src# make
     CC module.o
module.c: In function âmrm_ipc_writeâ:
module.c:139: warning: cast from pointer to integer of different size
module.c: In function âsetup_host_hash_tablesâ:
module.c:179: warning: cast from pointer to integer of different size
module.c:187: warning: cast to pointer from integer of different size
module.c: In function ânebmodule_initâ:
module.c:402: warning: ignoring return value of âchdirâ, declared with 
attribute warn_unused_result
     CC hooks.o
hooks.c: In function âget_selectionâ:
hooks.c:29: warning: cast from pointer to integer of different size
     CC control.o
control.c: In function âcreate_host_listsâ:
control.c:36: warning: cast from pointer to integer of different size
control.c: In function âcreate_service_listsâ:
control.c:54: warning: cast from pointer to integer of different size
     CC hash.o
sh gen-version.sh > version.c
     CC version.o
     CC logging.o
     CC cfgfile.o
     CC ipc.o
ipc.c: In function âbinlogâ:
ipc.c:277: warning: ignoring return value of âwriteâ, declared with 
attribute warn_unused_result
     CC shared.o
     CC io.o
     CC protocol.o
     CC data.o
     LINK merlin.so
     CC status.o
     CC daemonize.o
     CC daemon.o
daemon.c: In function âimport_objects_and_statusâ:
daemon.c:235: warning: ignoring return value of âasprintfâ, declared 
with attribute warn_unused_result
daemon.c:240: warning: ignoring return value of âasprintfâ, declared 
with attribute warn_unused_result
     CC net.o
     CC sql.o
     CC db_updater.o
     LINK merlind

If I then try and run the install script I get:-

cp: cannot stat 
`/etc/nagios3/addons/merlin-src/{merlind,merlin.so,install-merlin.sh}': 
No such file or directory
cp: cannot stat 
`/etc/nagios3/addons/merlin-src/{init.sh,install-merlin.sh,db.sql,example.conf}': 
No such file or directory
chmod: cannot access 
`//usr/local/nagios/merlin/{merlind,import.php,install-merlin.sh,init.sh}': 
No such file or directory
chmod: cannot access 
`//usr/local/nagios/merlin/{merlin.conf,example.conf,merlin.so}': No 
such file or directory
Failed to install files.
Aborting.

I appreciate that I've probably got more than one issue, and don't 
expect anyone to know exactly what I'm doing wrong but if you could at 
least point me in the right direction that would be great.

Thanks!

Joe





More information about the op5-users mailing list