Why would the same localhost check_load file work for one system, and not another?  Is it my check_nrpe template settings?  I'd like to understand the cause.

I'll also tune the data types using the rrd tools.  Thanks for that link.

On Wed, Sep 2, 2009 at 2:18 PM, Wolfgang <wnd@gmx.net> wrote:
William Attwood schrieb:
> ds[1].type = "GAUGE"
> ds[2].type = "GAUGE"
> ds[3].type = "COUNTER"
>
>
>
> Total output:
> filename = "CPU_Load.rrd"
> rrd_version = "0003"
> step = 60
> last_update = 1251913916
> ds[1].type = "GAUGE"
> ds[1].minimal_heartbeat = 8640
> ds[1].min = NaN
> ds[1].max = NaN
> ds[1].last_ds = "0.130"
> ds[1].value = NaN
> ds[1].unknown_sec = 56
> ds[2].type = "GAUGE"
> ds[2].minimal_heartbeat = 8640
> ds[2].min = NaN
> ds[2].max = NaN
> ds[2].last_ds = "0.040"
> ds[2].value = NaN
> ds[2].unknown_sec = 56
> ds[3].type = "COUNTER"
> ds[3].minimal_heartbeat = 8640
> ds[3].min = NaN
> ds[3].max = NaN
> ds[3].last_ds = "0.010"
> ds[3].value = NaN
> ds[3].unknown_sec = 56
> rra[0].cf = "AVERAGE"
> rra[0].rows = 2880
> rra[0].pdp_per_row = 1
> rra[0].xff = 5.0000000000e-01
> rra[0].cdp_prep[0].value = NaN
> rra[0].cdp_prep[0].unknown_datapoints = 0
> rra[0].cdp_prep[1].value = NaN
> rra[0].cdp_prep[1].unknown_datapoints = 0
> rra[0].cdp_prep[2].value = NaN
> rra[0].cdp_prep[2].unknown_datapoints = 0
> rra[1].cf = "AVERAGE"
> rra[1].rows = 2880
> rra[1].pdp_per_row = 5
> rra[1].xff = 5.0000000000e-01
> rra[1].cdp_prep[0].value = NaN
> rra[1].cdp_prep[0].unknown_datapoints = 1
> rra[1].cdp_prep[1].value = NaN
> rra[1].cdp_prep[1].unknown_datapoints = 1
> rra[1].cdp_prep[2].value = NaN
> rra[1].cdp_prep[2].unknown_datapoints = 1
> rra[2].cf = "AVERAGE"
> rra[2].rows = 4320
> rra[2].pdp_per_row = 30
> rra[2].xff = 5.0000000000e-01
> rra[2].cdp_prep[0].value = NaN
> rra[2].cdp_prep[0].unknown_datapoints = 21
> rra[2].cdp_prep[1].value = NaN
> rra[2].cdp_prep[1].unknown_datapoints = 21
> rra[2].cdp_prep[2].value = NaN
> rra[2].cdp_prep[2].unknown_datapoints = 21
> rra[3].cf = "AVERAGE"
> rra[3].rows = 5840
> rra[3].pdp_per_row = 360
> rra[3].xff = 5.0000000000e-01
> rra[3].cdp_prep[0].value = NaN
> rra[3].cdp_prep[0].unknown_datapoints = 351
> rra[3].cdp_prep[1].value = NaN
> rra[3].cdp_prep[1].unknown_datapoints = 351
> rra[3].cdp_prep[2].value = NaN
> rra[3].cdp_prep[2].unknown_datapoints = 351
> rra[4].cf = "MAX"
> rra[4].rows = 2880
> rra[4].pdp_per_row = 1
> rra[4].xff = 5.0000000000e-01
> rra[4].cdp_prep[0].value = NaN
> rra[4].cdp_prep[0].unknown_datapoints = 0
> rra[4].cdp_prep[1].value = NaN
> rra[4].cdp_prep[1].unknown_datapoints = 0
> rra[4].cdp_prep[2].value = NaN
> rra[4].cdp_prep[2].unknown_datapoints = 0
> rra[5].cf = "MAX"
> rra[5].rows = 2880
> rra[5].pdp_per_row = 5
> rra[5].xff = 5.0000000000e-01
> rra[5].cdp_prep[0].value = NaN
> rra[5].cdp_prep[0].unknown_datapoints = 1
> rra[5].cdp_prep[1].value = NaN
> rra[5].cdp_prep[1].unknown_datapoints = 1
> rra[5].cdp_prep[2].value = NaN
> rra[5].cdp_prep[2].unknown_datapoints = 1
> rra[6].cf = "MAX"
> rra[6].rows = 4320
> rra[6].pdp_per_row = 30
> rra[6].xff = 5.0000000000e-01
> rra[6].cdp_prep[0].value = NaN
> rra[6].cdp_prep[0].unknown_datapoints = 21
> rra[6].cdp_prep[1].value = NaN
> rra[6].cdp_prep[1].unknown_datapoints = 21
> rra[6].cdp_prep[2].value = NaN
> rra[6].cdp_prep[2].unknown_datapoints = 21
> rra[7].cf = "MAX"
> rra[7].rows = 5840
> rra[7].pdp_per_row = 360
> rra[7].xff = 5.0000000000e-01
> rra[7].cdp_prep[0].value = NaN
> rra[7].cdp_prep[0].unknown_datapoints = 351
> rra[7].cdp_prep[1].value = NaN
> rra[7].cdp_prep[1].unknown_datapoints = 351
> rra[7].cdp_prep[2].value = NaN
> rra[7].cdp_prep[2].unknown_datapoints = 351
> rra[8].cf = "MIN"
> rra[8].rows = 2880
> rra[8].pdp_per_row = 1
> rra[8].xff = 5.0000000000e-01
> rra[8].cdp_prep[0].value = NaN
> rra[8].cdp_prep[0].unknown_datapoints = 0
> rra[8].cdp_prep[1].value = NaN
> rra[8].cdp_prep[1].unknown_datapoints = 0
> rra[8].cdp_prep[2].value = NaN
> rra[8].cdp_prep[2].unknown_datapoints = 0
> rra[9].cf = "MIN"
> rra[9].rows = 2880
> rra[9].pdp_per_row = 5
> rra[9].xff = 5.0000000000e-01
> rra[9].cdp_prep[0].value = NaN
> rra[9].cdp_prep[0].unknown_datapoints = 1
> rra[9].cdp_prep[1].value = NaN
> rra[9].cdp_prep[1].unknown_datapoints = 1
> rra[9].cdp_prep[2].value = NaN
> rra[9].cdp_prep[2].unknown_datapoints = 1
> rra[10].cf = "MIN"
> rra[10].rows = 4320
> rra[10].pdp_per_row = 30
> rra[10].xff = 5.0000000000e-01
> rra[10].cdp_prep[0].value = NaN
> rra[10].cdp_prep[0].unknown_datapoints = 21
> rra[10].cdp_prep[1].value = NaN
> rra[10].cdp_prep[1].unknown_datapoints = 21
> rra[10].cdp_prep[2].value = NaN
> rra[10].cdp_prep[2].unknown_datapoints = 21
> rra[11].cf = "MIN"
> rra[11].rows = 5840
> rra[11].pdp_per_row = 360
> rra[11].xff = 5.0000000000e-01
> rra[11].cdp_prep[0].value = NaN
> rra[11].cdp_prep[0].unknown_datapoints = 351
> rra[11].cdp_prep[1].value = NaN
> rra[11].cdp_prep[1].unknown_datapoints = 351
> rra[11].cdp_prep[2].value = NaN
> rra[11].cdp_prep[2].unknown_datapoints = 351
>
>
> On Wed, Sep 2, 2009 at 1:55 PM, Wolfgang <wnd@gmx.net
> <mailto:wnd@gmx.net>> wrote:
>
>     William Attwood schrieb:
>     > I'm still on this - I'm using the following templates:
>     >
>     > lrwxrwxrwx 1 root   root     33 Aug 26 15:10
>     > check_nrpe_check_users.php -> ../templates.dist/check_users.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:10
>     check_nrpe_check_sda1.php
>     > -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:25
>     > check_nrpe_check_drive1.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:25
>     > check_nrpe_check_drive2.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:25
>     > check_nrpe_check_drive3.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:25
>     > check_nrpe_check_drive4.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:25
>     > check_nrpe_check_drive5.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:25
>     check_nrpe_check_sda3.php
>     > -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:26
>     check_nrpe_check_sdb3.php
>     > -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:26
>     check_nrpe_check_sdb1.php
>     > -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:26
>     > check_nrpe_check_drive_space.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:28
>     > check_nrpe_check_disk2.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:28
>     > check_nrpe_check_disk1.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:28
>     > check_nrpe_check_disk3.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:28
>     > check_nrpe_check_disk4.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Aug 26 15:28
>     > check_nrpe_check_disk5.php -> ../templates.dist/check_disk.php
>     > lrwxrwxrwx 1 root   root     32 Sep  2 13:34
>     check_nrpe_check_load.php
>     > -> ../templates.dist/check_load.php
>     >
>     >
>     > As you can see, my check_nrpe_check_load.php is actually the
>     > check_load.php that is used on Local Host, and, on all NRPE setups.
>     >
>     > Localhost displays 100% accuracy.  Any NRPE host displays zero data
>     > and throws the error in the XML file I showed in my prior e-mail.
>     >
>     > Why would the same results, for the same template, work for one
>     setup
>     > and not the other?
>     >
>     > -Will
>     >
>     > On Wed, Aug 26, 2009 at 10:41 PM, Joerg Linge
>     <pitchfork@ederdrom.de <mailto:pitchfork@ederdrom.de>
>     > <mailto:pitchfork@ederdrom.de <mailto:pitchfork@ederdrom.de>>>
>     wrote:
>     >
>     >     William Attwood schrieb:
>     >     > As I dive in more to Graphing, using the local check_load
>     with a
>     >     > symbolic link, I get no results.
>     >     >
>     >     > I checked the response to check_load using NRPE, and got:
>     >     > OK - load average: 0.06, 0.03,
>     0.00|load1=0.060;15.000;30.000;0;
>     >     > load5=0.030;10.000;25.000;0; load15=0.000;5.000;20.000;0;
>     >     >
>     >     >
>     >     > in the XML, I found:
>     >     >   <RRD>
>     >     >     <RC>1</RC>
>     >     >     <TXT>not a simple integer: '0.000'</TXT>
>     >     >   </RRD>
>     >
>     >     Have you changed the dstype from GAUGE to COUNTER?
>     >     I think this particular rrd database is created with dstype
>     >     COUNTER and counters canīt be used with float values.
>     >
>     >     Joerg
>     >
>     Please have a look at
>     http://oss.oetiker.ch/rrdtool/doc/rrdinfo.en.html
>     and use rrdinfo to check the dstype.
>

...which means you have a datatype of COUNTER and try to store a float
in it which will fail as you have seen.
I'm not should if it's possible but looking at
http://oss.oetiker.ch/rrdtool/doc/rrdtune.en.html you should give it a try

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pnp4nagios-users mailing list
Pnp4nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pnp4nagios-users



--
Take care,
William Attwood
Idea Extraordinaire
wattwood@gmail.com

Mike Ditka  - "If God had wanted man to play soccer, he wouldn't have given us arms."