Page 1 of 1

notification change issue

Posted: Wed Dec 16, 2015 1:14 am
by h.sabrey
when i want to enable or disable the notification the following message occurred ! any help?

Code: Select all

The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.
An error occurred while attempting to commit your command for processing.

Return from whence you came

Re: notification change issue

Posted: Wed Dec 16, 2015 11:14 am
by rkennedy
What version of Nagios are you running? What OS?

Re: notification change issue

Posted: Wed Dec 16, 2015 5:37 pm
by h.sabrey
rkennedy wrote:What version of Nagios are you running? What OS?

Nagios Version 4.1.1

OS: Centos 7

Re: notification change issue

Posted: Thu Dec 17, 2015 12:44 pm
by hsmith
What is the output of systemctl status nagios

Re: notification change issue

Posted: Thu Dec 24, 2015 4:39 am
by h.sabrey
hsmith wrote:What is the output of systemctl status nagios
it is running normally as below

Code: Select all

# systemctl status nagios.service 
● nagios.service - LSB: Starts and stops the Nagios monitoring server
   Loaded: loaded (/etc/rc.d/init.d/nagios)
   Active: active (running) since Thu 2015-12-24 11:33:03 EET; 5min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31796 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
  Process: 31851 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/nagios.service
           ├─31870 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
           ├─31872 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─31873 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─31874 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─31875 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─31876 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─31877 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           └─31881 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

Dec 24 11:33:03 nagos-server nagios[31870]: wproc: Successfully registered manager as @wproc with query handler
Dec 24 11:33:03 nagos-server nagios[31851]: Starting nagios: done.
Dec 24 11:33:03 nagos-server nagios[31870]: wproc: Registry request: name=Core Worker 31876;pid=31876
Dec 24 11:33:03 nagos-server nagios[31870]: wproc: Registry request: name=Core Worker 31875;pid=31875
Dec 24 11:33:03 nagos-server systemd[1]: Started LSB: Starts and stops the Nagios monitoring server.
Dec 24 11:33:03 nagos-server nagios[31870]: wproc: Registry request: name=Core Worker 31874;pid=31874
Dec 24 11:33:03 nagos-server nagios[31870]: wproc: Registry request: name=Core Worker 31872;pid=31872
Dec 24 11:33:03 nagos-server nagios[31870]: wproc: Registry request: name=Core Worker 31877;pid=31877
Dec 24 11:33:03 nagos-server nagios[31870]: wproc: Registry request: name=Core Worker 31873;pid=31873
Dec 24 11:33:03 nagos-server nagios[31870]: Successfully launched command file worker with pid 31881

More Details,

in the Nagios localhost server, at nagios core, the HTTP & SSH services notifications are not activated, when trying to activate HTTPS for example from the nagios core webportal i get the following reply,
Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.
An error occurred while attempting to commit your command for processing.
what is this issue, and thanks for your help solving it.

Re: notification change issue

Posted: Mon Dec 28, 2015 11:13 am
by hsmith
Did you follow a guide to install Nagios? If you did, can you please link it? Thanks.

Re: notification change issue

Posted: Mon Dec 28, 2015 11:25 am
by rkennedy
in the Nagios localhost server, at nagios core, the HTTP & SSH services notifications are not activated, when trying to activate HTTPS for example from the nagios core webportal i get the following reply,
Can you also post a screenshot showing what you are describing above?

And, post the output of -

Code: Select all

ls -l /usr/local/nagios/var/rw