Since i use Nagios/Icinga/Check_MK for several years now i missed a comfort feature:
Having the PNP4nagios graphs on mouseover.
I did a little research:
- the action URLs already are OK:
- /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=$SERVICEDESC$
- /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
So i had a look and found out that the file status-header.ssi is missing.
So here we go:
1. chroot /volume1/@appstore/Synagios/nagios-chroot/ /bin/bash
2. cd /usr/share/nagios3/htdocs
3. vi status-header.ssi
<script src="/pnp4nagios/media/js/jquery-min.js" type="text/javascript"></script>
<script src="/pnp4nagios/media/js/jquery.cluetip.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('a.tips').cluetip({ajaxCache: false, dropShadow: false,showTitle: false });
});
</script>
5. chown www-data:www-data status-header.ssi
6. chmod 644 status-header.ssi
7. service apache2 restart
Now reload the page and voila, as soon as you hove over the action url icon, you can see the 4h-pnp graph of the corresponding host/service
