Highcharts work, mrtg graphs don't

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jwicks
Posts: 17
Joined: Wed Jan 07, 2015 7:06 pm

Re: Highcharts work, mrtg graphs don't

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Highcharts work, mrtg graphs don't

Post 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>
Be sure to check out our Knowledgebase for helpful articles and solutions!
jwicks
Posts: 17
Joined: Wed Jan 07, 2015 7:06 pm

Re: Highcharts work, mrtg graphs don't

Post by jwicks »

Please find the requested files attached.

Much thanks!

-Jason
check_dummy.php.txt
am_utils.php.txt
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Highcharts work, mrtg graphs don't

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked