notification change issue

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
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

notification change issue

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: notification change issue

Post by rkennedy »

What version of Nagios are you running? What OS?
Former Nagios Employee
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

Re: notification change issue

Post by h.sabrey »

rkennedy wrote:What version of Nagios are you running? What OS?

Nagios Version 4.1.1

OS: Centos 7
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: notification change issue

Post by hsmith »

What is the output of systemctl status nagios
Former Nagios Employee.
me.
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

Re: notification change issue

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: notification change issue

Post by hsmith »

Did you follow a guide to install Nagios? If you did, can you please link it? Thanks.
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: notification change issue

Post 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
Former Nagios Employee
Locked