Menu

show.cgi not found

Help
Chris
2014-10-31
2014-10-31
  • Chris

    Chris - 2014-10-31

    I'm new to Nagios, and am running into what I'm hoping is a simple issue to fix. I'm about at the extent of my Nagios/Linux knowhow though and would greatly appreciate any help anyone can offer!

    I built an Ubuntu 14.04 server and used this guide to install Nagios core 4.0.8 along with MRTG, NRPE, and Nagiosgraph (1.5.1). Everything went fine - no errors or missing pre-requisites or anything - and the Nagios page itself loads just fine. When I try to access Nagiosgraph (https://server-name/nagiosgraph/cgi-bin/show.cgi) however, I'm told that the page isn't found.

    My apache logs show reocurring entries of "[cgi:error] [pid 14269] [client 10.1.8.42:50339] script not found or unable to stat: /usr/local/nagios/sbin/show.cgi" and it's right - there is no show.cgi in that directory. Per /usr/local/nagiosgraph/etc/nagiosgraph-apache.conf (which is exactly the same as the one in the link I used above to set this up) though, I was under the impression Apache should be looking in /usr/local/nagiosgraph/cgi (aliased to /nagiosgraph/cgi-bin), which does have the necessary show.cgi.

    Like I said, I'm sure this is painfully obvious to those of you more familiar with this but I'm pretty much completely in the dark. Could someone point me in the right direction as to how to get Nagiosgraph up and running?

     
    • Alan Brenner

      Alan Brenner - 2014-10-31

      Is the nagiosgraph-apache.conf file linked in to the Apache configuration (something like /etc/apache2/conf.d)?

      On Oct 31, 2014, at 2:57 PM, Chris dlayknee@users.sf.net wrote:

      I'm new to Nagios, and am running into what I'm hoping is a simple issue to fix. I'm about at the extent of my Nagios/Linux knowhow though and would greatly appreciate any help anyone can offer!

      I built an Ubuntu 14.04 server and used this guide to install Nagios core 4.0.8 along with MRTG, NRPE, and Nagiosgraph (1.5.1). Everything went fine - no errors or missing pre-requisites or anything - and the Nagios page itself loads just fine. When I try to access Nagiosgraph (https://server-name/nagiosgraph/cgi-bin/show.cgi) however, I'm told that the page isn't found.

      My apache logs show reocurring entries of "[cgi:error] [pid 14269] [client 10.1.8.42:50339] script not found or unable to stat: /usr/local/nagios/sbin/show.cgi" and it's right - there is no show.cgi in that directory. Per /usr/local/nagiosgraph/etc/nagiosgraph-apache.conf (which is exactly the same as the one in the link I used above to set this up) though, I was under the impression Apache should be looking in /usr/local/nagiosgraph/cgi (aliased to /nagiosgraph/cgi-bin), which does have the necessary show.cgi.

      Like I said, I'm sure this is painfully obvious to those of you more familiar with this but I'm pretty much completely in the dark. Could someone point me in the right direction as to how to get Nagiosgraph up and running?


      show.cgi not found


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nagiosgraph/discussion/394748/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
      • Chris

        Chris - 2014-10-31

        My understanding is that the Ubuntu equivalent is /etc/apache2/conf-enabled and no, I don't have a nagiosgraph-apache.conf in there, only a nagios.conf that is linked to /etc/apache2/conf-available/nagios.conf. It looks like the only nagiosgraph-apache.conf I have is in /usr/local/nagiosgraph/etc.

         

        Last edit: Chris 2014-10-31
        • Alan Brenner

          Alan Brenner - 2014-10-31

          Yes, copy nagiosgraph-apache.conf file into /etc/apache/conf-enabled.

          On Oct 31, 2014, at 4:37 PM, Chris dlayknee@users.sf.net wrote:

          My understanding is that the Ubuntu equivalent is /etc/apache/conf-enabled and no, I don't have a nagiosgraph-apache.conf in there, only nagios.conf. It looks like the only nagiosgraph-apache.conf I have is in /usr/local/nagiosgraph/etc.

          Should I simply copy that over?


          show.cgi not found


          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nagiosgraph/discussion/394748/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

           
          • Chris

            Chris - 2014-10-31

            Welp, that gave me new results when I restarted the Apache service at least:

            Output of config test was:
            AH00526: Syntax error on line 11 of /etc/apache2/conf-enabled/nagiosgraph.conf:
            Invalid command 'logfile', perhaps misspelled or defined by a module not included in the server configuration
            Action 'configtest' failed.
            The Apache error log may have more information.

            I don't see anything out of the order in the Apache log, however

             

Log in to post a comment.