Nagios System Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kenntun
Posts: 6
Joined: Tue Oct 30, 2018 9:35 pm

Nagios System Problem

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios System Problem

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kenntun
Posts: 6
Joined: Tue Oct 30, 2018 9:35 pm

Re: Nagios System Problem

Post 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]
kenntun
Posts: 6
Joined: Tue Oct 30, 2018 9:35 pm

Re: Nagios System Problem

Post by kenntun »

After I comment out the following configuration
problem resolved

##RewriteEngine On
##RewriteCond %{THE_REQUEST} !HTTP/1.1$
##RewriteRule .* - [F]


Any idea??
kenntun
Posts: 6
Joined: Tue Oct 30, 2018 9:35 pm

Re: Nagios System Problem

Post 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:x:501:nagios,apache,snmptt
nagcmd:x: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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios System Problem

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kenntun
Posts: 6
Joined: Tue Oct 30, 2018 9:35 pm

Re: Nagios System Problem

Post by kenntun »

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

Post by scottwilkerson »

It appears you were likely rewriting the JS calls to the backend to get the status.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked