Check in /etc/httpd/conf/httpd.conf where you should see a section like:
<Directory "/var/www/html">
....
Order allow,deny
Allow from all
</Directory>
The Order and Allow lines allow access for all hosts. You could have a different config which restricts access to certain machines
Alerts
Re: Alerts
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Alerts
I have checked the configuration exist as mentioned above.cdienger wrote:Check in /etc/httpd/conf/httpd.conf where you should see a section like:
<Directory "/var/www/html">
....
Order allow,deny
Allow from all
</Directory>
The Order and Allow lines allow access for all hosts. You could have a different config which restricts access to certain machines
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Alerts
Out of curiosity does your /var/www/html directory have an index.html file or anything to be displayed?
You could be getting the 403 because directory listing is denied and you don't have a file to display
You could be getting the 403 because directory listing is denied and you don't have a file to display
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Alerts
I can see it only have the server reposiotory no html page at all.scottwilkerson wrote:Out of curiosity does your /var/www/html directory have an index.html file or anything to be displayed?
You could be getting the 403 because directory listing is denied and you don't have a file to display
Can you help me out how to get rid of it.
[root@localhost html]# ls -ltr
total 260
drwxr-xr-x. 3 root root 4096 Dec 23 2016 dvd
drwxr-xr-x. 2 root root 262144 Dec 26 2016 local
[root@localhost html]# pwd
/var/www/html
[root@localhost html]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Alerts
run this
That should so it the next time the nagios check is performed
Code: Select all
echo "Hello" > /var/www/html/index.html
chmod +r /var/www/html/index.html-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Alerts
Now its fixed but m still observing below :scottwilkerson wrote:run thisThat should so it the next time the nagios check is performedCode: Select all
echo "Hello" > /var/www/html/index.html chmod +r /var/www/html/index.html
Total Processes
This service has 1 comment associated with it This service is flapping between states
WARNING 08-31-2017 02:34:24 0d 0h 1m 25s 2/4 PROCS WARNING: 278 processes with STATE = RSZDT
Is it normal i m not observing any hung process as well now.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Alerts
Glad to hear this is fixed.ericssonvietnam wrote: Now its fixed but m still observing below :
Total Processes
This service has 1 comment associated with it This service is flapping between states
WARNING 08-31-2017 02:34:24 0d 0h 1m 25s 2/4 PROCS WARNING: 278 processes with STATE = RSZDT
Is it normal i m not observing any hung process as well now.
The output above is normal if your system has a larger amount of processes, you would want to modify the configuration file to adjust the warning and critical thresholds up for the Total Processes service
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Alerts
thanks scottscottwilkerson wrote:Glad to hear this is fixed.ericssonvietnam wrote: Now its fixed but m still observing below :
Total Processes
This service has 1 comment associated with it This service is flapping between states
WARNING 08-31-2017 02:34:24 0d 0h 1m 25s 2/4 PROCS WARNING: 278 processes with STATE = RSZDT
Is it normal i m not observing any hung process as well now.
The output above is normal if your system has a larger amount of processes, you would want to modify the configuration file to adjust the warning and critical thresholds up for the Total Processes service