nagiosgraph popup problem

Help
2012-12-18
2013-05-20
  • Hello, I installed nagios and nagiosgraph from rpm. both are working well but I have problems with popups. I get no pop up at all. I think it is a problem with the ssi but I cant find the problem. I show my settings:

    WEB NAGIOS:

    ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
    <Directory "/usr/lib64/nagios/cgi-bin/">
       SSLRequireSSL
       Options ExecCGI
       AllowOverride None
       Order allow,deny
       Allow from all
       AuthName "Nagios Access"
       AuthType Basic
       AuthUserFile /etc/nagios/passwd
       Require valid-user
    </Directory>
    Alias /nagios "/usr/share/nagios/html"
    <Directory "/usr/share/nagios/html">
       SSLRequireSSL
       Options None
       AllowOverride None
       Order allow,deny
       Allow from all
       AuthName "Nagios Access"
       AuthType Basic
       AuthUserFile /etc/nagios/passwd
       Require valid-user
    </Directory>

    WEB: NAGIOSGRAPH

    ScriptAlias /nagiosgraph/cgi-bin "/usr/lib/nagiosgraph/cgi-bin"
    <Directory "/usr/lib/nagiosgraph/cgi-bin">
       Options ExecCGI
       AllowOverride None
       Order allow,deny
       Allow from all
    </Directory>
    # enable nagiosgraph CSS and JavaScript
    Alias /nagiosgraph "/usr/share/nagiosgraph/htdocs"
    <Directory "/usr/share/nagiosgraph/htdocs">
       Options None
       AllowOverride None
       Order allow,deny
       Allow from all
    </Directory>

    I put the common-header.ssi in /usr/share/nagios/html/ssi/  its content is:

    <script type="text/javascript" src="/nagiosgraph/nagiosgraph.js"></script>

    In the service definiton I test:

    action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$

    and

    action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&period=week&rrdopts=-w+450+-j

    But nothing appears.
    What am I doing wrong?
    Tanks!

     
  • Alan Brenner
    Alan Brenner
    2012-12-25

    A couple of things to check: look at the source for a Nagios generated web page to verify the Nagiosgraph JavaScript is there; check the web server logs to see if there are errors retrieving the nagiosgraph.js file; and try viewing the action_url in your browser (replacing the $HOSTNAME$ and $SERVICEDESC$ with valid values) to verify the graphs can be shown. My guess is that the JavaScript isn't getting added.