Useful Links:

Cacti Graphs

Description

There are occasions where the status indicators are just not enough, and one wants to see a little more history. This gadget pulls in graphs from cacti for display on nagvis pages.

It uses cURL, so you will need the relevant PHP module installed and enabled. The required parameters are passed in through gadget_opts, most imnportantly the graph_id (unfortunately neither hostname nor servicename can be used to cleanly identify the relevant graph in cacti).

The gadget also provides user authentication, but I haven't tried this on a cacti installation using LDAP, so any feedback would be appreciated. Username, password and the cacti base URL are defined via global variables.

The parameters provided via gadget_opts allow setting of width, height, legend display and the time period (from a set of predefined constants ranging from 30 minutes to 2 years).

Submitted By
Wolfgang Schulze-Zachau (wolfgangs)
Submitted On
2011-05-16
File Size
2.38 Kb
Downloads
2038
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
File Version
1.0
Download
Rating
Total Votes1
Comments
Juan Manuel 2011-09-19 16:31:26 I have the same problem, when I tried to graph on nagvis it doesn't work, instead a text "Cannot find a suitable graph for host XXXX and service YYYYY" is shown. Thanks for your help.
Stefan Eichberger 2011-07-25 11:14:57 Hi. I guess it won't be relevant anymore but anyway. I had the same issue and I forgot that the php5 curl module was not installed. installing and restarting apache did the trick
Wolfgang Schulze-Zachau 2011-06-06 15:09:40 Mail me at wszachau at aminocom dot com.
Bomm 2011-05-27 09:35:34 Thanks a lot for this tool ;) Unfortunately I can't make it run right now ... I tried some changes in the source code as asked (base url...) but when I want to add the gadget on a map, i only see characters saying "service_2" for example but no graph .. I don't really know where my error comes from ... URL, OPTS ..? May be you can help me, it would be very nice :) Thanks again !