Hi amaena. I realise the documentation is slim and I will try to clear this up for you. 1st, your post touches on 2 different pieces of NPC. What you are asking is how to create a graph from the performance data returned by a nagios check plugin. The 'Map Graph' button that you refer to is used to map/link an exisitng Cacti graph to a Nagios host or service.amaena wrote:Is there any additional documentation available for setting up the performance graphs for nagios services in cacti using npc?
I followed the steps from page 8 of the forum by clicking on services, and then service detail and map graph, however the only graphs available are localhost ones and I am wondering what needs to be done from the cacti side.
I see the option on create new host for mapping a hostname to a nagios hostname but would like a bit more guidance. Perhaps something like setting up a performance graph for using the ping results from nagios?
Thanks !
NPC does not automate the whole process of creating graphs from performance data. Instead it does just the 1st step for you which is creating a data input method. The data input method that gets created will be based on the performance data being returned by Nagios and calls the script plugins/npc/perfdata.php to poll the perfdata from the database.
To create the data input method open up the service detail by double clicking a service from the services list. If the service has performance data available you will see a 'Data Input Method' button on the top toolbar of the 'Service State Information' tab (see screenshot). If there is not any performance data then you won't see the button.
Click the 'Data Input Method' button and confirm. The data input method will be named 'NPC - Perfdata - <host>: <service>'. See the second screenshot.
Now you need to manually create a data template using the data input method you just created followed by a graph template etc. as normal. Once you have a graph you can go back to the appropriate service and use the map graph button to map the graph you created to the service it belongs too.
Hope this helps,
Billy