Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Nagios setup failing connect via web Error 403

  1. #11
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    24,987
    Blog Entries
    15

    Default Re: Nagios setup failing connect via web Error 403

    Quote Originally Posted by Johnfm3 View Post
    and when I use locate command...

    nagios:~ # locate -i quickstart.html
    nagios:~ #
    Hi
    OK, so php7 is not enabled by default......

    Code:
    a2enmod php7
    systemctl restart apache2 nagios
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  2. #12
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    23,781

    Default Re: Nagios setup failing connect via web Error 403

    Quote Originally Posted by Johnfm3 View Post
    As much as I know your right and I agree with the stance in a corporate environment, this is my home setup. And I have no problems using the root account. Frankly, the system has no other accounts as I plan on getting LDAP setup again where I will store all user account information.
    My post was not posted with the intention to change your ideas about this. This is a forums where all sorts of openSUSE users are reading and none of them, whatever their level of Unix/Linux experience, should get the idea that it is a clever thing to log in in the GUI as root. It is more a warning to others then to you.
    Henk van Velden

  3. #13
    Join Date
    Jul 2008
    Location
    Some place in Washington
    Posts
    258

    Default Re: Nagios setup failing connect via web Error 403

    Quote Originally Posted by malcolmlewis View Post
    Hi
    OK, so php7 is not enabled by default......

    Code:
    a2enmod php7
    systemctl restart apache2 nagios
    As I didnt know what a2enmod was used for or that it existed until you suggested I try it. So I looked it up.
    a2enmod is a script that enables the specified module within the apache2 configuration. It does this by creating symlinks within /etc/apache2/mods-enabled. Likewise, a2dismod disables a module by removing those symlinks.

    Malcolmlewis, as soon as i get home, I will give this a try.

  4. #14
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    9,703
    Blog Entries
    1

    Default Re: Nagios setup failing connect via web Error 403

    If you're setting up a brand new Nagios and not upgrading,
    I'd strongly recommend that you take a look at and consider alternatives.

    Natios is first of all the first, most widely used Enterprise network monitoring system, and as such will probably forever set standards and interfaces that all other later network monitoring systems must continue to support.

    But, IMO it has always been a shoe-horned design which never incorporated "Best design" even in its early years.
    And, especially in its default form is an incredibly difficult and time-consuming beast to build out without proper tools to configure and validate plugins, and without a structure that enforces proper customization.
    I have also never seen a regular Nagios set up by anyone who did it right, observing the possible layers of "manged by groups," I've only seen what people create that's expedient (If it works, then that's good enough."

    There are many more modern network monitoring systems that have been created in the years since, some FOSS and some commercial, or some kind of hybrid combination of both. One particular improvement most have is to store data and configurations in a database instead of text files with all the benefits like better security and performance. One solution I used (doesn't exist anymore) enabled me to configure, validate and deploy plugins and clients in minutes... Compare that with possibly up to a week (Yes, multiple days) which wouldn't be uncommon doing the same in Nagios.

    I recommend Icinga which can be found in the OSS
    Others I've used include ZenOSS. I have not used Solarwinds, but have heard great things about it.
    Take your time and build a few VMs running different solutions, you'll probably find about 20 alternatives out there today with maybe a half dozen you can strongly consider for your purposes.

    Nagios is still important for some situations, but it's really the last option I'd choose over practically all others.
    And, that's from someone who'd like to think is reasonably expert in the app.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #15
    Join Date
    Jul 2008
    Location
    Some place in Washington
    Posts
    258

    Default Re: Nagios setup failing connect via web Error 403

    Quote Originally Posted by tsu2 View Post
    ...Nagios is still important for some situations, but it's really the last option I'd choose over practically all others.
    And, that's from someone who'd like to think is reasonably expert in the app.

    HTH,
    TSU
    Thanks for the thought. My experience with Enterprise Network monitoring is locked down to Microsoft SCOM due to where I work. I stumbled across Nagios back with SLES 9 I believe. And though it was a beast to setup, I was able to do it as compared to now... lol

    The only reason I was going to use nagios is as its something I am familiar with and its searchable in Software Manager. I will take your advice and do some looking. As I understand your idea about having a sql back end, its something I dont have much experience in and there is no YaST module to manage it with (to my knowledge). So SQL becomes a deal breaker for me.

    Since you called out Icinga, I will start my research there while I continue setting up Nagios.

    thanks,
    John

  6. #16
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    24,987
    Blog Entries
    15

    Default Re: Nagios setup failing connect via web Error 403

    On Tue 04 Dec 2018 06:16:03 PM CST, Johnfm3 wrote:


    tsu2;2887998 Wrote:
    >
    > ...Nagios is still important for some situations, but it's really the
    > last option I'd choose over practically all others.
    > And, that's from someone who'd like to think is reasonably expert in
    > the app.
    >
    > HTH,
    > TSU


    Thanks for the thought. My experience with Enterprise Network
    monitoring is locked down to Microsoft SCOM due to where I work. I
    stumbled across Nagios back with SLES 9 I believe. And though it was a
    beast to setup, I was able to do it as compared to now... lol

    The only reason I was going to use nagios is as its something I am
    familiar with and its searchable in Software Manager. I will take your
    advice and do some looking. As I understand your idea about having a
    sql back end, its something I dont have much experience in and there is
    no YaST module to manage it with (to my knowledge). So SQL becomes a
    deal breaker for me.

    Since you called out Icinga, I will start my research there while I
    continue setting up Nagios.

    thanks,
    John
    Hi
    Just a word of caution with dB's if your going that route, pop it on a
    xfs partition and exclude from btrfs...

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  7. #17
    Join Date
    Jul 2008
    Location
    Some place in Washington
    Posts
    258

    Default Re: Nagios setup failing connect via web Error 403

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Just a word of caution with dB's if your going that route, pop it on a
    xfs partition and exclude from btrfs...

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!
    thanks for the advise. Personally Flat Files are just fine for my needs. I will investigate other solutions, but I want to try and setup Nagios as other than scom, I am familiar with it. Many thanks for your help on this. I have setup a VM on my work machine and going to test your advise to enable php7 during lunch. I will get back to this thread in a hour or so.

    John

  8. #18
    Join Date
    Jul 2008
    Location
    Some place in Washington
    Posts
    258

    Default Re: Nagios setup failing connect via web Error 403

    Quote Originally Posted by Johnfm3 View Post
    thanks for the advise. Personally Flat Files are just fine for my needs. I will investigate other solutions, but I want to try and setup Nagios as other than scom, I am familiar with it. Many thanks for your help on this. I have setup a VM on my work machine and going to test your advise to enable php7 during lunch. I will get back to this thread in a hour or so.

    John
    Ok, so here is a interesting piece of information found in /var/log/apache2/error_log

    [Tue Dec 04 11:37:44.406337 2018] [autoindex:error] [pid 1603] [client ::1:57066] AH01276: Cannot serve directory /usr/share/nagios-themes/exfoliation/: No matching DirectoryIndex (index.html,index.html.var,index.php4,index.php5,index.php) found, and server-generated directory index forbidden by Options directive

    which is correct. That folder only has 2 sub folders (images and stylesheets).

    I wander if the nagios config for apache2 (/etc/apache2/conf.d/nagios.conf) is wrong, and needs to be pointed to /usr/share/nagios/

  9. #19
    Join Date
    Jul 2008
    Location
    Some place in Washington
    Posts
    258

    Default Re: Nagios setup failing connect via web Error 403

    Ok, that seems to be it. We have access to the web portal now. I made the following change to the apache2 nagios conf file...



    From:
    Alias /nagios "/usr/share/nagios-themes/exfoliation"

    To:
    Alias /nagios "/usr/share/nagios"



    I have no clue what the first folder does, but use of locate to find index.html followed by grep to filter out for nagios gave me the file location.

    linux-fkcd:~ # locate index.html | grep nagios
    /usr/share/doc/ghc-8.0.2/html/libraries/nagios-check-0.3.2/doc-index.html
    /usr/share/doc/ghc-8.0.2/html/libraries/nagios-check-0.3.2/index.html
    /usr/share/nagios/index.html
    /usr/share/nagios/docs/index.html
    linux-fkcd:~ #



    And the only response which made sense was /usr/share/nagios/index.html


    Now the real question, was that the only change needed to make this work? If so, finding out how do I go about filing a bug on this install.

  10. #20
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    24,987
    Blog Entries
    15

    Default Re: Nagios setup failing connect via web Error 403

    Quote Originally Posted by Johnfm3 View Post
    Ok, that seems to be it. We have access to the web portal now. I made the following change to the apache2 nagios conf file...



    From:
    Alias /nagios "/usr/share/nagios-themes/exfoliation"

    To:
    Alias /nagios "/usr/share/nagios"



    I have no clue what the first folder does, but use of locate to find index.html followed by grep to filter out for nagios gave me the file location.

    linux-fkcd:~ # locate index.html | grep nagios
    /usr/share/doc/ghc-8.0.2/html/libraries/nagios-check-0.3.2/doc-index.html
    /usr/share/doc/ghc-8.0.2/html/libraries/nagios-check-0.3.2/index.html
    /usr/share/nagios/index.html
    /usr/share/nagios/docs/index.html
    linux-fkcd:~ #



    And the only response which made sense was /usr/share/nagios/index.html


    Now the real question, was that the only change needed to make this work? If so, finding out how do I go about filing a bug on this install.
    Hi
    I only installed nagios and nagios-contrib (for plugin checks) no themes and let it pull the other required packages, which leaves an index.php (not html) hence the need to enable php7. It would be a bug in the theme package(s).
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •