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?
Nagios System Problem
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios System Problem
Hello and welcome to the forum!
What version of Nagios XI are you running?
Can you also show the output of the following commands:
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 nagiosRe: Nagios System Problem
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]
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
After I comment out the following configuration
problem resolved
##RewriteEngine On
##RewriteCond %{THE_REQUEST} !HTTP/1.1$
##RewriteRule .* - [F]
Any idea??
problem resolved
##RewriteEngine On
##RewriteCond %{THE_REQUEST} !HTTP/1.1$
##RewriteRule .* - [F]
Any idea??
Re: Nagios System Problem
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
nagcmd
[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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios System Problem
What was this configuration attempting to do?kenntun wrote: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
To disable un-used HTTP Protocol after our security teams perform security scanning on nagios
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios System Problem
It appears you were likely rewriting the JS calls to the backend to get the status.