[Cacinda-general] blank graph
Satish Patel
satish at linuxbug.org
Fri Feb 20 19:22:04 CET 2009
I am using cacinda-0.1-alpha.tar
Regards,
Satish Patel
Quoting Max Schubert <perldork at users.sourceforge.net>:
> Are you using the CVS code or the last public release from sf.net that
> is available as a .tar.gz file?
>
> On Fri, Feb 20, 2009 at 9:35 AM, Satish Patel <satish at linuxbug.org> wrote:
>> Devices like Routers 7200, 3600, 6500 switch which is in datacenter but i am
>> not intrested in that i only want host ( Linux Server ) intergarte with
>> nagios.
>>
>> I am sening my configuration file and error mesg screen shot as an attched
>> document.
>>
>> I am also confused at this part
>>
>> // What to match/replace in order to make host name Nagios-friendly
>> $NAGIOS_HOST_MATCH = '';
>> $NAGIOS_HOST_REPLACE = '';
>> $NAGIOS_STATUS_URL =
>> 'http://ustnsto-mgmt01.us.tnsofres.com/nagios/cgi-bin/status.cgi';
>>
>>
>>
>> Here you go for configuration "config.php"
>>
>> <?php
>>
>> // Default port
>> $SNMP_PORT = 161;
>>
>> // Hosts per row for all.php
>> $HOSTS_PER_ROW = 4;
>>
>> $ALL_HOSTS_WHERE = "1 = 1";
>>
>> $CACTI_USERNAME = 'root';
>> $CACTI_PASSWORD = '';
>> $CACTI_HOST = 'localhost';
>> $CACTI_SOCKET = false;
>> $CACTI_DATABASE = 'cacti';
>> $CACTI_URL = '/cacti';
>>
>> // For device selection menu; if blank all users can select any host from
>> // a host view page, otherwise user must be a Cacti user administrator to
>> view
>> // the status of all hosts.
>> $CACTI_CHECK_AUTH = 0;
>>
>> // Font to use for generated graphs
>> // If you are on a system that has fonts in non-standard locations, use
>> // the full path, e.g.
>> // /usr/local/lib/php/fonts/arial.ttf
>>
>> $TTF_GRAPH_FONT = 'Arial';
>>
>> // What to match/replace in order to make host name Nagios-friendly
>> $NAGIOS_HOST_MATCH = '';
>> $NAGIOS_HOST_REPLACE = '';
>> $NAGIOS_STATUS_URL =
>> 'http://ustnsto-mgmt01.us.tnsofres.com/nagios/cgi-bin/status.cgi';
>>
>>
>> include_once('inc/functions.php');
>>
>> class Configuration {
>>
>> function port() {
>> global $SNMP_PORT;
>> return $SNMP_PORT;
>> }
>>
>> function hosts_per_row() {
>> global $HOSTS_PER_ROW;
>> return $HOSTS_PER_ROW;
>> }
>>
>> function max_part_count() {
>> global $MAX_PART_COUNT;
>> return $MAX_PART_COUNT;
>> }
>>
>> function nagios_url() {
>> global $NAGIOS_STATUS_URL;
>> return $NAGIOS_STATUS_URL;
>> }
>>
>> function nagios_host_match() {
>> global $NAGIOS_HOST_MATCH;
>> return $NAGIOS_HOST_MATCH;
>> }
>>
>> function nagios_host_replace() {
>> global $NAGIOS_HOST_REPLACE;
>> return $NAGIOS_HOST_REPLACE;
>> }
>>
>> function ttf_graph_font() {
>> global $TTF_GRAPH_FONT;
>> return $TTF_GRAPH_FONT;
>> }
>>
>> function cacti_config() {
>> global $CACTI_DATABASE, $CACTI_USERNAME, $CACTI_PASSWORD,
>> $CACTI_HOST, $CACTI_SOCKET, $CACTI_DATABASE,
>> $CACTI_URL, $CACTI_CHECK_AUTH;
>>
>> $info = array();
>> $info['db'] = $CACTI_DATABASE;
>> $info['host'] = $CACTI_HOST;
>> $info['user'] = $CACTI_USERNAME;
>> $info['pass'] = $CACTI_PASSWORD;
>> $info['socket'] = $CACTI_SOCKET;
>> $info['cacti_url'] = $CACTI_URL;
>> $info['check_auth'] = $CACTI_CHECK_AUTH;
>>
>> return $info;
>> }
>>
>> function all_hosts_where() {
>> global $ALL_HOSTS_WHERE;
>> return $ALL_HOSTS_WHERE;
>> }
>>
>> }
>>
>> ?>
>>
>>
>>
>>
>>
>>
>> Regards,
>>
>> Satish Patel
>>
>>
>> Quoting Max Schubert <perldork at users.sourceforge.net>:
>>
>>> What models of devices, Satish?
>>>
>>> On Fri, Feb 20, 2009 at 8:45 AM, Satish Patel <satish at linuxbug.org> wrote:
>>>>
>>>> I have Routers and hosts in cacti and i am integration cacti with nagios
>>>> with help of cacinda i have install it and when i tried to open URL then
>>>> i
>>>> show me select host when i select it, It is not showing me graph and for
>>>> localhost selection on cacinda its showing "No devices match class for
>>>> host"
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Satish Patel
>>>>
>>>>
>>>> Quoting Max Schubert <perldork at users.sourceforge.net>:
>>>>
>>>>> Hi Satish,
>>>>>
>>>>> What kind of a device are the graphs associated with? I have not done
>>>>> much with this project (as you can tell), especially since I converted
>>>>> to using PNP, happy to help you with debugging this issue though :).
>>>>>
>>>>> - Max
>>>>>
>>>>> On Thu, Feb 19, 2009 at 7:19 PM, Satish Patel <satish at linuxbug.org>
>>>>> wrote:
>>>>>>
>>>>>> I have installed cacinda and configure it but when i run it ask me to
>>>>>> select host and when i select host it gives error like no device class
>>>>>> found. if anybody have same error and solved it then please suggest me
>>>>>> why i am not able to watch graphs?
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Satish Patel
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>>>>> Francisco,
>>>>>> CA
>>>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>>>> Enterprise
>>>>>> -Strategies to boost innovation and cut costs with open source
>>>>>> participation
>>>>>> -Receive a $600 discount off the registration fee with the source code:
>>>>>> SFAD
>>>>>> http://p.sf.net/sfu/XcvMzF8H
>>>>>> _______________________________________________
>>>>>> Cacinda-general mailing list
>>>>>> Cacinda-general at lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/cacinda-general
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list