Mrtg + Pnp4Nagios

This forum was archived to /woltlab and is now in read-only mode. Please register a new account on our new community platform.

You can create a thread on the new site and link to an archived thread. This archive is available as knowledge base, safe and secured.

More details here.
  • Hi,

    I'm using MRTG, Nagios 4.08, Thruk, and PNP4Nagios on my Ubuntu server. Everything is working well. I don't have any troubles with the configuration of every services. I trying to get a full report working and I managed to integrate pnp4nagios graphs in my reports. But I've got a lot of firewall and router hosts monitored with MRTG. Is there a easy way to add MRTG graph into report ? I've found that I should convert them to pnp4nagios graph using templates. How does it works ?

    Thank's a lot for your help !


  • Hi again,

    I answer to myself.
    The script I was using was not sending a correct data. I had no "Performance Data" required for pnp4nagios. I changed the command definition and had a script to parse the result and get a correct "Performance Data" output.

    I post this parser for anyone who will need it. Thanks to NagiosGraph for the base of the script (…ls/check_mrtgtraf/details comment of December 4, 2014). I just modify it to adjust the answer to get what I was looking for and to work with my result of