Nagios wont restart?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MocroNL
Posts: 2
Joined: Mon Nov 05, 2012 7:21 am

Nagios wont restart?

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios wont restart?

Post by tmcdonald »

Try "service nagios restart"
Former Nagios employee
Locked