[drraw-users] pnp4nagios & drraw

Jeremy Jacquier-Roux jaj at teamlog.com
Tue Nov 18 08:21:42 MST 2008


Sorry, maybe I'm not clear enough in my explanation.
To be more precise, in the first case (test_DS_num), nothing happens
because the message is always here (normal behaviour).
Regards

Jeremy Jacquier-Roux wrote:
> Hello,
> Thanks for your answer.
> If I don't prefix the data source names, drraw can't use my rrd file to 
> make a graph.
> Without pnp4nagios, you can test this with two commands :
> rrdtool create test_DS_num.rrd --step 300   DS:1:GAUGE:600:-273:5000   
> RRA:AVERAGE:0.5:1:1200   RRA:MIN:0.5:12:2400   RRA:MAX:0.5:12:2400   
> RRA:AVERAGE:0.5:12:2400
> rrdtool create test_DS_string.rrd --step 300   
> DS:MY_DS_1:GAUGE:600:-273:5000   RRA:AVERAGE:0.5:1:1200   
> RRA:MIN:0.5:12:2400   RRA:MAX:0.5:12:2400   RRA:AVERAGE:0.5:12:2400
> Then after refreshing the database files available under drraw.cgi, when 
> you select test_DS_num and click "Add DB(s) to data sources", the cgi 
> show the message in my previous mail.
> But if you select test_DS_string you can make a graph.
> Regards
>
>
> Christophe Kalt wrote:
>   
>> Hi,
>>
>> On Mon, Nov 17, 2008 at 9:31 AM, Jeremy Jacquier-Roux <jaj at teamlog.com 
>> <mailto:jaj at teamlog.com>> wrote:
>>
>>     I have some rrd files generated with pnp for nagios. I would like to
>>     make nicer graph with drraw (2.2b1) but I have a problem (same than D.
>>     Morel - thread "no event file" Wed Jun 25 10:31:12 EDT 2008), the cgi
>>     show me this message :
>>     "The first step in creating a graph is to choose which data to
>>     use. This
>>     is done by selecting Data Sources from available databases and event
>>     files. Only one type of Data Source (either database or event
>>     file) may
>>     be added at the same time."
>>     I don't think this is a problem of event file. I think the problem
>>     is on
>>     the way of drraw manage data sources names.
>>
>>
>> That's the normal/expected behaviour.
>>
>>     Because by default, pnp4nagios create rrd file using number for data
>>     sources names :
>>     ds[1], ds[2]...
>>     But if I modify /usr/libexec/pnp4nagios/process_perfdata.pl to prefix
>>     data sources names with a string, drraw works fine and I can make
>>     graph.
>>     Do you have an idea to fix this in drraw?
>>
>>
>> i don't understand what needs fixing..  what doesn't work if you don't 
>> prefix the data source names?
>>     
>
> _______________________________________________
> drraw-users mailing list
> drraw-users at lists.taranis.org
> http://web.taranis.org/mailman/listinfo/drraw-users
>   




More information about the drraw-users mailing list