On 24/07/17 15:01, PAWAN SHARMA wrote:
>
>
>
> On Mon, Jul 24, 2017 at 7:28 PM, Tim Clarke <tim.clarke@manifest.co.uk
> <mailto:tim.clarke@manifest.co.uk>> wrote:
>
>
>
> On 24/07/17 14:47, PAWAN SHARMA wrote:
> >
> > Hi Tim,
> >
> > Facing below issue
> >
> > [abc@test:/home/psharm89/nrpe-2.15]#
> > Redirecting to /bin/systemctl restart xinetd.service
> > Failed to restart xinetd.service: Unit xinetd.service failed to
> load:
> > No such file or directory.
> > [abc@test:/home/psharm89/nrpe-2.15]#
> >
> > [abc@test:/home/psharm89/nrpe-2.15]#
> > #-> less /etc/xinetd.d/nrpe
> > # default: on
> > # description: NRPE (Nagios Remote Plugin Executor)
> > service nrpe
> > {
> > flags = REUSE
> > socket_type = stream
> > port = 5666
> > wait = no
> > user = nagios
> > group = nagios
> > server = /usr/local/nagios/bin/nrpe
> > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
> > log_on_failure += USERID
> > disable = no
> > only_from = 127.0.0.1
> > }
> >
> >
> >
>
> xinetd is broken? restore the config from backup.
>
> Tim
>
>
> #-> /etc/init.d/nagios restart
> Restarting nagios (via systemctl): Job for nagios.service failed
> because the control process exited with error code. See "systemctl
> status nagios.service" and "journalctl -xe" for details.
>
And what do
"systemctl status nagios.service"
and
"journalctl -xe"
tell you?
Tim