Page 1 of 1
Nagios System Problem
Posted: Sun Nov 17, 2019 10:57 pm
by kenntun
After I restart nagios services, XI System Component Status got Monitoring Engine Status Error
I click on error, it prompt "nagios.lock" not find.
I ssh the server and find nagios.lock are existing
How to fix it?
Re: Nagios System Problem
Posted: Mon Nov 18, 2019 7:36 am
by scottwilkerson
Hello and welcome to the forum!
What version of Nagios XI are you running?
Can you also show the output of the following commands:
Code: Select all
ps -ef|grep nagios.cfg
ll /var/run/nagios.lock
grep nag /etc/group
chage -l nagios
Re: Nagios System Problem
Posted: Tue Nov 19, 2019 10:01 pm
by kenntun
The problem seems hit by the following httpd configuration
ServerTokens Prod
ServerSignature On
FileETag None
TraceEnable off
Header always append X-Frame-Options SAMEORIGIN
Header set X-XSS-Protection "1; mode=block"
RewriteEngine On
RewriteCond %{THE_REQUEST} !HTTP/1.1$
RewriteRule .* - [F]
Re: Nagios System Problem
Posted: Tue Nov 19, 2019 10:02 pm
by kenntun
After I comment out the following configuration
problem resolved
##RewriteEngine On
##RewriteCond %{THE_REQUEST} !HTTP/1.1$
##RewriteRule .* - [F]
Any idea??
Re: Nagios System Problem
Posted: Tue Nov 19, 2019 10:07 pm
by kenntun
scottwilkerson wrote:Hello and welcome to the forum!
What version of Nagios XI are you running?
Can you also show the output of the following commands:
Code: Select all
ps -ef|grep nagios.cfg
ll /var/run/nagios.lock
grep nag /etc/group
chage -l nagios
[root@ngonap01 conf]# ps -ef|grep nagios.cfg
nagios 1412 1 2 11:06 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 1499 1412 0 11:06 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 2965 18595 0 11:06 pts/0 00:00:00 grep nagios.cfg
[root@ngonap01 conf]# ll /var/run/nagios.lock
ls: cannot access /var/run/nagios.lock: No such file or directory
[root@ngonap01 conf]# grep nag /etc/group
nagios

501:nagios,apache,snmptt
nagcmd

502:nagios,apache,snmptt
[root@ngonap01 conf]# chage -l nagios
Last password change : May 07, 2015
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
Re: Nagios System Problem
Posted: Wed Nov 20, 2019 7:38 am
by scottwilkerson
kenntun wrote:After I comment out the following configuration
problem resolved
##RewriteEngine On
##RewriteCond %{THE_REQUEST} !HTTP/1.1$
##RewriteRule .* - [F]
Any idea??
What was this configuration attempting to do?
Re: Nagios System Problem
Posted: Fri Nov 22, 2019 9:56 pm
by kenntun
To disable un-used HTTP Protocol after our security teams perform security scanning on nagios
Re: Nagios System Problem
Posted: Mon Nov 25, 2019 7:52 am
by scottwilkerson
It appears you were likely rewriting the JS calls to the backend to get the status.