Alerts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Alerts

Post by cdienger »

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
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

Post by ericssonvietnam »

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
I have checked the configuration exist as mentioned above.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Alerts

Post by scottwilkerson »

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Alerts

Post by ericssonvietnam »

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
I can see it only have the server reposiotory no html page at all.
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

Post by scottwilkerson »

run this

Code: Select all

echo "Hello" > /var/www/html/index.html
chmod +r /var/www/html/index.html
That should so it the next time the nagios check is performed
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Alerts

Post by ericssonvietnam »

scottwilkerson wrote:run this

Code: Select all

echo "Hello" > /var/www/html/index.html
chmod +r /var/www/html/index.html
That should so it the next time the nagios check is performed
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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Alerts

Post by scottwilkerson »

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.
Glad to hear this is fixed.

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Alerts

Post by ericssonvietnam »

scottwilkerson wrote:
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.
Glad to hear this is fixed.

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
thanks scott
Locked