(Nagios restart) bash: service: command not found

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

(Nagios restart) bash: service: command not found

Post by braindope »

Hi,

Can anyone tell me how to fix my issue, the thing is when i use "service nagios restart" to restart my nagios it say's bash: service: command not found ,it is just today that i cannot use that command, however if i use /etc/rc.d/init.d/nagios restart , my nagios is restarting, i just want to use again the service nagios restart command :mrgreen:
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: (Nagios restart) bash: service: command not found

Post by tmcdonald »

What OS and version is this under? And are you saying that it worked before but does not now? Quite odd.

A casual search indicates this might be a symptom of a bigger problem: http://superuser.com/questions/774291/c ... -not-found
Former Nagios employee
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: (Nagios restart) bash: service: command not found

Post by braindope »

Hi tmcdonald ,

Thanks for replying ,when i comeback to work the next day, I can run again the command , as you just say it is very odd :shock:
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: (Nagios restart) bash: service: command not found

Post by tmcdonald »

Let us know what you find out. We can certainly help with the Nagios side of things but when it comes to system administration we might need to point you elsewhere if it gets too far out of scope.
Former Nagios employee
Locked