• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Nagios HTTP WARNING: HTTP/1.1 403 Forbidden

March 2, 2013 by Sharad Chhetri 7 Comments

Nagios HTTP WARNING: HTTP/1.1 403 Forbidden

Whenever I newly setup the nagios server I mostly get this error “Nagios HTTP WARNING: HTTP/1.1 403 Forbidden”.
In dashboard it shows alert on localhost i.e our own newly set up nagios server.

http-nagios-error

To solve this alert, create a index.html file inside /var/www/html in server

touch /var/www/html/index.html

Restart the httpd and nagios service. Even without doing this it will clear the alert after a few minutes.

/etc/init.d/nagios restart
/etc/init.d/httpd restart

Wait for a few minutes the alert will be gone. Yes we are done here.

nagios-html-ok

OK do you want to know some more,let me explain some more part of troubleshooting steps.

You can use check_http plugin here with command line to check do the problem exist or not.
Have a look in below given blocks, how troubleshooting is done. I hope these steps are enough to explain.

[root@localhost html]# whoami
root
[root@localhost html]# /usr/lib/nagios/plugins/check_http -I 127.0.0.1
HTTP WARNING: HTTP/1.1 403 Forbidden - 5237 bytes in 0.001 second response time |time=0.000719s;;;0.000000 size=5237B;;;0
[root@localhost html]# 
[root@localhost html]# pwd
/var/www/html
[root@localhost html]#  touch index.html
[root@localhost html]# 
[root@localhost html]# /usr/lib/nagios/plugins/check_http -I 127.0.0.1
HTTP OK: HTTP/1.1 200 OK - 265 bytes in 0.001 second response time |time=0.000574s;;;0.000000 size=265B;;;0
[root@localhost html]# 
[root@localhost html]#

Note: check your check_http plugin where it is located in server. In my case it was in /usr/lib/nagios/plugins/

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. error: The requested URL returned error: 403 Forbidden while accessing Github repo
  2. SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
  3. Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
  4. PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0
  5. WARNING: getfattr not found, certain checks will be skipped
  6. curl command to check the http status
  7. How to install own git server with ssh and http access by using gitolite and gitweb in CentOS
  8. HTTP Client raised and unhandled exception
  9. Installing Nagios-3.5.0 in CentOS 6.4 using yum
  10. Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

Filed Under: Linux, Monitoring Server, Server, Tips And Tricks Tagged With: Nagios

Reader Interactions

Comments

  1. lol says

    August 28, 2017 at 1:25 pm

    mi nie helped kurwa

    Reply
  2. Francesca says

    May 18, 2017 at 10:26 pm

    Hi, it resolves for me, thank you!! Francesca

    Reply
    • Sharad Chhetri says

      May 19, 2017 at 3:34 pm

      Thanks Buddy!

      Regards
      Sharad

      Reply
  3. Erwin says

    November 15, 2016 at 4:52 pm

    Thanks, it was helpfull

    Reply
  4. batchen says

    January 19, 2016 at 12:43 pm

    Helped me thanks!

    Reply
    • sharad chhetri says

      January 19, 2016 at 4:42 pm

      Thank you for giving us the feedback.

      Thanks Batchen ๐Ÿ™‚

      Regards
      Sharad

      Reply
  5. jiang says

    May 7, 2014 at 7:03 am

    Thank you for your article

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to zip the directory in linux with command line

How to convert float to integer number

30 useful Linux terminal keyboard shortcuts

Recover Linux Grub Password in linux rescue mode CentOS/Red Hat

Terminal Recording with script and scriptreplay command

convert space into new line using sed command

How to configure ethernet in CentOS 6 after installing in Virtual Box

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy