Page 1 of 1

Nagios wont restart?

Posted: Thu Jan 16, 2014 8:54 am
by MocroNL
Hello guru's

Today I was messing around with permissions of the file (nagios.cmd). Because I could not disable notifications on a host. (Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’)

I still did not fix the issue. Now I have another Issue when trying to restart.
This is what I get:


root@TLS-AMS-MON-11:/etc# sudo /etc/init.d/nagios restart
chown: missing operand after `:'
Try `chown --help' for more information.
/etc/init.d/nagios: 35: -d: not found
chown: missing operand after `:'
Try `chown --help' for more information.
/etc/init.d/nagios: 35: -d: not found
$Stopping nagios: Illegal option -d
/sbin/start-stop-daemon: signal value must be numeric or name of signal (KILL, INT, ...)
Try '/sbin/start-stop-daemon --help' for more information.

chown: missing operand after `:'
Try `chown --help' for more information.
/etc/init.d/nagios: 35: -d: not found
$Starting nagios: daemon: debug: config()
daemon: debug: config_load(configfile = /etc/daemon.conf)
daemon: debug: config_load(configfile = /home/nagios/.daemonrc)
daemon: debug: config_process(target = *)
daemon: debug: handle_user_option(spec = nagios)
daemon: debug: sanity_check()


Anyone has a solution to fix this?

Thanks in advance!

Re: Nagios wont restart?

Posted: Thu Jan 16, 2014 10:38 am
by tmcdonald
Try "service nagios restart"