Prerequisites for check_oracle_health plugins

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Prerequisites for check_oracle_health plugins

Post by tgriep »

Do you have root access to the server?
If so, can you run these commands to stop the processes if they are running, remove the lock files and start them up again.

Code: Select all

service nagios stop
service ndo2db stop
rm -rf /usr/local/nagios/var/rw/nagios.cmd
rm -rf /usr/local/nagios/var/nagios.lock
rm -rf /usr/local/nagios/var/ndo.sock
rm -rf /usr/local/nagios/var/ndo2db.lock
service ndo2db start
service nagios start
Then check the status of ndo2db and nagios to see if they are running.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Prerequisites for check_oracle_health plugins

Post by rtsupport »

yes, we have access to root and you want to restart the service using root user or nagios?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Prerequisites for check_oracle_health plugins

Post by tgriep »

root
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Prerequisites for check_oracle_health plugins

Post by rtsupport »

after following above steps ndo2db started - but

nagios service is still saying not running
nagios.cmd file is missing not created automatically.
HTTP ERROR 500 Error on nagios login page is still there.

Code: Select all

[root@usa0300lv1126 var]# service ndo2db status
ndo2db (pid 56308) is running...
[root@usa0300lv1126 var]# service nagios status
nagios is not running
[root@usa0300lv1126 var]# service nagios start
Starting nagios: done.
[root@usa0300lv1126 var]# service nagios status
nagios is not running
[root@usa0300lv1126 var]# ll /usr/local/nagios/var/rw/nagios.cmd
ls: cannot access /usr/local/nagios/var/rw/nagios.cmd: No such file or directory
[root@usa0300lv1126 var]# ll /usr/local/nagios/var/nagios.lock
-rw-r--r-- 1 nagios nagios 6 Oct 18 17:10 /usr/local/nagios/var/nagios.lock
[root@usa0300lv1126 var]# ll /usr/local/nagios/var/ndo.sock
srwxr-xr-x 1 nagios nagios 0 Oct 18 17:13 /usr/local/nagios/var/ndo.sock
[root@usa0300lv1126 var]# ll /usr/local/nagios/var/ndo2db.lock
-rw-r--r-- 1 nagios nagios 6 Oct 18 17:13 /usr/local/nagios/var/ndo2db.lock
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Prerequisites for check_oracle_health plugins

Post by rtsupport »

Adding on it .. nagios core is working fine with all features like disable notification, scheduled checks, forced checks. but nagios web page is not working.

https://11.111.111.11/nagiosxi/ ---- Not Working (HTTP ERROR 500)
https://11.111.111.11/nagios ---- Working

Code: Select all

[root@usa030000000 var]# service nagios status
nagios is not running
[root@usa030000000 var]# service nagios start
Starting nagios: done.
[root@usa030000000 var]# service nagios status
nagios is not running

[root@usa030000000 var]# systemctl status nagios
● nagios.service - LSB: Starts and stops the Nagios monitoring server
   Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
   Active: inactive (dead) since Thu 2018-10-18 15:51:21 EDT; 2h 14min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 128966 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
  Process: 124054 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)

Oct 18 15:44:20 usa030000000 systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Oct 18 15:44:20 usa030000000 su[124056]: (to nagios) root on none
Oct 18 15:44:21 usa030000000 su[124077]: (to nagios) root on none
Oct 18 15:44:21 usa030000000 nagios[124054]: Starting nagios: done.
Oct 18 15:44:21 usa030000000 systemd[1]: Started LSB: Starts and stops the Nagios monitoring server.
Oct 18 15:51:21 usa030000000 systemd[1]: Stopping LSB: Starts and stops the Nagios monitoring server...
Oct 18 15:51:21 usa030000000 nagios[128966]: Stopping nagios: No lock file found in /var/run/nagios.lock
Oct 18 15:51:21 usa030000000 systemd[1]: Stopped LSB: Starts and stops the Nagios monitoring server.

support@nagios.nl
Posts: 66
Joined: Wed Dec 27, 2017 2:20 pm
Location: Nieuwegein, The Netherlands
Contact:

Re: Prerequisites for check_oracle_health plugins

Post by support@nagios.nl »

[HTTP ERROR 500]

Have you tried these KB articles?
https://support.nagios.com/kb/article.php?id=25
https://support.nagios.com/kb/article/n ... n-481.html

A few months ago on one of our customer's SourceGuardian was broken. It was quite hard to find out, but what helped was browsing directly to https://xiserver.fqdn/nagiosxi/login.php and only then Apache error logging was filled with an error that lead to SourceGuardian
[Tue Aug 07 14:00:38 2018] [error] [client 10.0.01] PHP Fatal error: SourceGuardian Loader - Protected script's header is broken. Probably the encoded file was modified. Please install an original unmodified file or contact the author of the script to get the original file. Error code [10] in /usr/local/nagiosxi/html/login.php on line 2
In our case it was solved by running the SourceGuardian step that fullinstall normally invokes. Then error 500 finally disappeared.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Prerequisites for check_oracle_health plugins

Post by tgriep »

First, lets see why Nagios is not running by running a verification.
Run all of the commands as root.

Run this for the verification

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
If you see a configuration error, that is stopping it from running and it will have to be resolved.
FYI, the nagios process creates the nagios.cmd file. If nagios is not running, it will not exist.

Next, run this to restart Apache

Code: Select all

service httpd restart
Then run this tail command to view the Apache error logs.

Code: Select all

tail -f /var/log/httpd/*_log
Then try to login to the XI GUI and post any errors that you see in the screen running the tail command.

Also, get these files from the server and post them here.

Code: Select all

/etc/init.d/nagios
/usr/local/nagios/etc/nagios.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Prerequisites for check_oracle_health plugins

Post by rtsupport »

Please find attached requested files logs and error screen shot.

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Code: Select all

Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 27
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
service httpd restart

Code: Select all

[root@usa0300lv1126 50004256]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@usa0300lv1126 50004256]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-10-19 13:31:21 EDT; 7s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 121813 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
 Main PID: 121819 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           ├─121819 /usr/sbin/httpd -DFOREGROUND
           ├─121820 /usr/sbin/httpd -DFOREGROUND
           ├─121822 /usr/sbin/httpd -DFOREGROUND
           ├─121823 /usr/sbin/httpd -DFOREGROUND
           ├─121824 /usr/sbin/httpd -DFOREGROUND
           ├─121825 /usr/sbin/httpd -DFOREGROUND
           └─121826 /usr/sbin/httpd -DFOREGROUND

Oct 19 13:31:21 usa0300lv1126 systemd[1]: Starting The Apache HTTP Server...
Oct 19 13:31:21 usa0300lv1126 httpd[121819]: AH00558: httpd: Could not reliably determine the server's fully qualified domain na...message
Oct 19 13:31:21 usa0300lv1126 systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
tail -f /var/log/httpd/*_log

Code: Select all

[root@usa0300lv1126 50004256]# tail -f /var/log/httpd/*_log
==> /var/log/httpd/access_log <==
127.0.0.1 - - [19/Oct/2018:13:00:35 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"
127.0.0.1 - - [19/Oct/2018:13:05:34 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"
127.0.0.1 - - [19/Oct/2018:13:10:33 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"
127.0.0.1 - - [19/Oct/2018:13:15:32 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"
127.0.0.1 - - [19/Oct/2018:13:20:31 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"
127.0.0.1 - - [19/Oct/2018:13:25:24 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"
127.0.0.1 - - [19/Oct/2018:13:27:44 -0400] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 (internal dummy connection)"
127.0.0.1 - - [19/Oct/2018:13:30:23 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"
127.0.0.1 - - [19/Oct/2018:13:30:34 -0400] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 (internal dummy connection)"
127.0.0.1 - - [19/Oct/2018:13:35:21 -0400] "GET / HTTP/1.0" 200 2999 "-" "check_http/v2.0.3 (nagios-plugins 2.0.3)"

==> /var/log/httpd/error_log <==
[Fri Oct 19 06:29:15.909844 2018] [:error] [pid 99371] [client 13.129.110.66:59072] script '/var/www/cgi-bin/83tBJRTsNAFW.php' not found or unable to stat
[Fri Oct 19 06:29:15.910852 2018] [cgi:error] [pid 99371] [client 13.129.110.66:59072] script not found or unable to stat: /var/www/cgi-bin/83tBJRTsNAFW.php3
[Fri Oct 19 06:29:15.911935 2018] [cgi:error] [pid 99371] [client 13.129.110.66:59072] script not found or unable to stat: /var/www/cgi-bin/83tBJRTsNAFW.cfm
[Fri Oct 19 13:31:20.663809 2018] [mpm_prefork:notice] [pid 128861] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Oct 19 13:31:21.778865 2018] [suexec:notice] [pid 121819] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 13.129.106.16. Set the 'ServerName' directive globally to suppress this message
[Fri Oct 19 13:31:21.806034 2018] [auth_digest:notice] [pid 121819] AH01757: generating secret for digest authentication ...
[Fri Oct 19 13:31:21.806516 2018] [lbmethod_heartbeat:notice] [pid 121819] AH02282: No slotmem from mod_heartmonitor
[Fri Oct 19 13:31:21.857483 2018] [mpm_prefork:notice] [pid 121819] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 configured -- resuming normal operations
[Fri Oct 19 13:31:21.857523 2018] [core:notice] [pid 121819] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

==> /var/log/httpd/ssl_access_log <==
13.133.213.248 - nagiosadmin [19/Oct/2018:13:30:10 -0400] "GET /nagios/images/comment.gif HTTP/1.1" 200 909
13.133.213.248 - nagiosadmin [19/Oct/2018:13:30:10 -0400] "GET /nagios/images/notify.gif HTTP/1.1" 200 264
13.133.213.248 - - [19/Oct/2018:13:30:31 -0400] "-" 408 -
13.133.213.248 - - [19/Oct/2018:13:30:31 -0400] "-" 408 -
13.133.213.248 - - [19/Oct/2018:13:30:31 -0400] "-" 408 -
13.133.213.248 - nagiosadmin [19/Oct/2018:13:31:42 -0400] "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 200 11328
13.133.213.248 - nagiosadmin [19/Oct/2018:13:31:43 -0400] "GET /nagios/stylesheets/extinfo.css HTTP/1.1" 200 5626
13.133.213.248 - nagiosadmin [19/Oct/2018:13:33:15 -0400] "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 200 11328
13.133.213.248 - nagiosadmin [19/Oct/2018:13:34:47 -0400] "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 200 11328
13.133.213.248 - nagiosadmin [19/Oct/2018:13:34:59 -0400] "GET /nagiosxi/ HTTP/1.1" 500 -

==> /var/log/httpd/ssl_error_log <==
[Fri Oct 19 06:29:15.947171 2018] [cgi:error] [pid 83382] [client 13.129.110.66:52332] script not found or unable to stat: /var/www/cgi-bin/83tBJRTsNAFW.asp
[Fri Oct 19 06:29:15.948376 2018] [:error] [pid 83382] [client 13.129.110.66:52332] script '/var/www/cgi-bin/83tBJRTsNAFW.php' not found or unable to stat
[Fri Oct 19 06:29:15.949619 2018] [cgi:error] [pid 83382] [client 13.129.110.66:52332] script not found or unable to stat: /var/www/cgi-bin/83tBJRTsNAFW.php3
[Fri Oct 19 06:29:15.950949 2018] [cgi:error] [pid 83382] [client 13.129.110.66:52332] script not found or unable to stat: /var/www/cgi-bin/83tBJRTsNAFW.cfm
[Fri Oct 19 13:27:44.193053 2018] [:error] [pid 99218] [client 13.133.213.248:63363] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri Oct 19 13:27:44.193080 2018] [:error] [pid 99218] [client 13.133.213.248:63363] PHP Fatal error:  Unknown: Failed opening required '/usr/local/nagiosxi/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Fri Oct 19 13:31:21.779383 2018] [ssl:warn] [pid 121819] AH01909: RSA certificate configured for 13.129.106.16:443 does NOT include an ID which matches the server name
[Fri Oct 19 13:31:21.807039 2018] [ssl:warn] [pid 121819] AH01909: RSA certificate configured for 13.129.106.16:443 does NOT include an ID which matches the server name
[Fri Oct 19 13:34:59.092580 2018] [:error] [pid 121824] [client 13.133.213.248:63579] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri Oct 19 13:34:59.092618 2018] [:error] [pid 121824] [client 13.133.213.248:63579] PHP Fatal error:  Unknown: Failed opening required '/usr/local/nagiosxi/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

==> /var/log/httpd/ssl_request_log <==
[19/Oct/2018:13:30:10 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagios/images/comment.gif HTTP/1.1" 909
[19/Oct/2018:13:30:10 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagios/images/notify.gif HTTP/1.1" 264
[19/Oct/2018:13:30:31 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "-" -
[19/Oct/2018:13:30:31 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "-" -
[19/Oct/2018:13:30:31 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "-" -
[19/Oct/2018:13:31:42 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 11328
[19/Oct/2018:13:31:43 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagios/stylesheets/extinfo.css HTTP/1.1" 5626
[19/Oct/2018:13:33:15 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 11328
[19/Oct/2018:13:34:47 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 11328
[19/Oct/2018:13:34:59 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/ HTTP/1.1" -

==> /var/log/httpd/ssl_access_log <==
13.133.213.248 - nagiosadmin [19/Oct/2018:13:36:20 -0400] "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 200 11328

==> /var/log/httpd/ssl_request_log <==
[19/Oct/2018:13:36:20 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagios/cgi-bin/extinfo.cgi?type=2&host=mc0300ux006_MPSP&service=Oracle+DB+Login HTTP/1.1" 11328

==> /var/log/httpd/ssl_error_log <==
[Fri Oct 19 13:36:23.902127 2018] [:error] [pid 124138] [client 13.133.213.248:63613] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri Oct 19 13:36:23.902163 2018] [:error] [pid 124138] [client 13.133.213.248:63613] PHP Fatal error:  Unknown: Failed opening required '/usr/local/nagiosxi/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

==> /var/log/httpd/ssl_access_log <==
13.133.213.248 - nagiosadmin [19/Oct/2018:13:36:23 -0400] "GET /nagiosxi/ HTTP/1.1" 500 -

==> /var/log/httpd/ssl_request_log <==
[19/Oct/2018:13:36:23 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/ HTTP/1.1" -

==> /var/log/httpd/ssl_error_log <==
[Fri Oct 19 13:36:27.430348 2018] [:error] [pid 121823] [client 13.133.213.248:63617] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri Oct 19 13:36:27.430394 2018] [:error] [pid 121823] [client 13.133.213.248:63617] PHP Fatal error:  Unknown: Failed opening required '/usr/local/nagiosxi/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

==> /var/log/httpd/ssl_access_log <==
13.133.213.248 - nagiosadmin [19/Oct/2018:13:36:27 -0400] "GET /nagiosxi/ HTTP/1.1" 500 -

==> /var/log/httpd/ssl_request_log <==
[19/Oct/2018:13:36:27 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/ HTTP/1.1" -

==> /var/log/httpd/ssl_error_log <==
[Fri Oct 19 13:36:40.861946 2018] [:error] [pid 121825] [client 13.133.213.248:63643] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri Oct 19 13:36:40.861991 2018] [:error] [pid 121825] [client 13.133.213.248:63643] PHP Fatal error:  Unknown: Failed opening required '/usr/local/nagiosxi/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

==> /var/log/httpd/ssl_access_log <==
13.133.213.248 - nagiosadmin [19/Oct/2018:13:36:40 -0400] "GET /nagiosxi/ HTTP/1.1" 500 -

==> /var/log/httpd/ssl_request_log <==
[19/Oct/2018:13:36:40 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/ HTTP/1.1" -

==> /var/log/httpd/ssl_error_log <==
[Fri Oct 19 13:36:46.615477 2018] [:error] [pid 124138] [client 13.133.213.248:63645] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri Oct 19 13:36:46.615503 2018] [:error] [pid 124138] [client 13.133.213.248:63645] PHP Fatal error:  Unknown: Failed opening required '/usr/local/nagiosxi/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

==> /var/log/httpd/ssl_access_log <==
13.133.213.248 - nagiosadmin [19/Oct/2018:13:36:46 -0400] "GET /nagiosxi/ HTTP/1.1" 500 -

==> /var/log/httpd/ssl_request_log <==
[19/Oct/2018:13:36:46 -0400] 13.133.213.248 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/ HTTP/1.1" -

/etc/init.d/nagios --> file extension was not supported to attached on this form so have changed it to nagios.txt please remove .txt when you need this file.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Prerequisites for check_oracle_health plugins

Post by tgriep »

The nagios.lock file location is not pointing to the same location in the init script and the nagios.cfg file and that is causing the wrong nagios status.

Edit the /usr/local/nagios/etc/nagiuos.cfg file and change this line from

Code: Select all

lock_file=/usr/local/nagios/var/nagios.lock
to

Code: Select all

lock_file=/var/run/nagios.lock
Restart nagios by running

Code: Select all

service nagios restart

The Apache errors look like it could be a permission issue or a misconfiguration in the Apache config files.
Can you run the following commands as root and post the /tmp/info.txt time to the ticket?

Code: Select all

ls -lR /usr/local/nagiosxi >/tmp/info.txt
cat /etc/httpd/conf.d/nagiosxi.conf >>/tmp/info.txt
cat /etc/httpd/conf.d/ssl.conf >>/tmp/info.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Prerequisites for check_oracle_health plugins

Post by rtsupport »

/usr/local/nagios/etc/nagios.cfg file has been updated as advised, and restarted the services but still same error.

Code: Select all

[root@usa0300lv1126 etc]# service nagios status
nagios is not running
[root@usa0300lv1126 etc]# service nagios stop
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
done.
[root@usa0300lv1126 etc]# service nagios status
No lock file found in /var/run/nagios.lock
[root@usa0300lv1126 etc]# service nagios start
Starting nagios: done.
[root@usa0300lv1126 etc]# service nagios status
nagios is not running
[root@usa0300lv1126 etc]# ll /var/run/nagios.lock
-rw-r----- 1 root root 0 Oct 19 14:17 /var/run/nagios.lock
support ticket has been opened as advised, however attaching info.txt here also for your reference.
You do not have the required permissions to view the files attached to this post.
Locked