• 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

    Loading...
    Reply
  2. Francesca says

    May 18, 2017 at 10:26 pm

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

    Loading...
    Reply
    • Sharad Chhetri says

      May 19, 2017 at 3:34 pm

      Thanks Buddy!

      Regards
      Sharad

      Loading...
      Reply
  3. Erwin says

    November 15, 2016 at 4:52 pm

    Thanks, it was helpfull

    Loading...
    Reply
  4. batchen says

    January 19, 2016 at 12:43 pm

    Helped me thanks!

    Loading...
    Reply
    • sharad chhetri says

      January 19, 2016 at 4:42 pm

      Thank you for giving us the feedback.

      Thanks Batchen ๐Ÿ™‚

      Regards
      Sharad

      Loading...
      Reply
  5. jiang says

    May 7, 2014 at 7:03 am

    Thank you for your article

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

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Linux Commands

How to set root password on Ubuntu / Debian / Linux Mint

Install libjpegtran by using yum command in CentOS 6.x

How to set motd in linux

Command to create and delete group in Red Hat and CentOS linux

How To Get SSH Public Key Fingerprint Information

How to know last command run successfully : Linux / Unix

create a system account below uid 500 on RHEL/CentOS/Scientific Linux

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

Print double hyphen sign simultaneously in post of Octopress

How to see line numbers in file through cat command

How to reset forgot root password in CentOS 6.x and Redhat 6.x

Run the script using nohup without hitting enter key two times

AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework

How to backup and restore iptables on Linux systems

df command not showing correct free space in linux

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands For Every Beginner

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)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy
%d bloggers like this: