Page 4 of 4

Re: Highcharts work, mrtg graphs don't

Posted: Thu May 07, 2015 1:28 pm
by jwicks
Authorization_Transaction_Counts.xml
Attached are the files you requested.

root@nagios-48c ~]# rrdtool -V
RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker <[email protected]>
Compiled Apr 3 2014 13:07:03

Usage: rrdtool [options] command command_options

Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (http://www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

Thanks!

-Jason

Re: Highcharts work, mrtg graphs don't

Posted: Thu May 07, 2015 3:09 pm
by tgriep
Your XML file is missing a lot of the code tags and that could be the issue.
Something may be wrong in the check_dummy template so could you post the following files?

Code: Select all

/usr/local/nagios/share/pnp/templates.special/check_dummy.php
/usr/local/nagios/share/pnp/include/am_utils.php
Here is an example of one of my test xml files that uses the check_dummy template.

Code: Select all

 
<DATASOURCE>
    <TEMPLATE>check_dummy</TEMPLATE>
    <IS_MULTI>0</IS_MULTI>
    <DS>1</DS>
    <NAME>percent_0</NAME>
    <UNIT>%%</UNIT>
    <ACT>49</ACT>
    <WARN>40</WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT>80</CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
 </DATASOURCE>
Your xml file is missing the following tags.

Code: Select all

<UNIT>
<WARN>
<WARN_MIN>
<WARN_MAX>
<WARN_RANGE_TYPE>
<CRIT>
<CRIT_MIN>
<CRIT_MAX>
<CRIT_RANGE_TYPE>
<MAX>

Re: Highcharts work, mrtg graphs don't

Posted: Thu May 07, 2015 4:47 pm
by jwicks
Please find the requested files attached.

Much thanks!

-Jason
check_dummy.php.txt
am_utils.php.txt

Re: Highcharts work, mrtg graphs don't

Posted: Thu May 07, 2015 6:02 pm
by Box293
I also think upgrading rrdtool is worthwhile:

Code: Select all

cd /tmp
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz
tar -xzf rrdtool-1.4.4.tar.gz
cd /tmp/rrdtool-1.4.4
./configure --bindir=/usr/bin
make clean
make install

service restart npcd