Hi Yogi,

I've rewriting this application code and it'll be committed to the repository sometime soon. You'd missing out a few definition entries and had copied an old method of building applications.

The application was being deleted because you weren't using update_application().

Once it's run for a while here and I can see that it all works, I'll commit it to the SVN, and you'll be able to update and use it then.

Thanks,
adam.

Sent from Mailbird

On 22/11/2016 08:51:06, Yogi Sofiharja <yogi_sofiharja@biznetgio.com> wrote:

Dear Community,


I am creating application to monitor disk response time at VM level using ioping. 

But every time i run the poller with debugger, i’ve got no error but my application always been deleted by the system because its lastpolled is 0. i’ve try to follow the documentation, but its seems like i can’t get solution. 

Do you guys have any solution for this or you have the same problem?

here's the unix agent output :


<<<app-ioping>>>

reqps:2110

tfspeed:34565401

minreqtime:329

avgreqtime:474

maxreqtime:591


here's the pollling debug result :

---------------------------------------------------------------------------

ioping 

SQL[SELECT * FROM `applications` WHERE `device_id` = '5' AND `app_type` = 'ioping' AND `app_instance` IS NULL]

SQL RUNTIME[0.00018406s]

+

SQL[INSERT INTO `applications` (`device_id`,`app_type`,`app_instance`)  VALUES ('5','ioping',NULL)]

SQL RUNTIME[0.00168610s]


CMD[/usr/bin/rrdtool create /opt/observium/rrd/localhost/app-ioping-2358.rrd  \

        DS:reqps:GAUGE:600:0:1000000 \

        DS:tfspeed:GAUGE:600:0:1000000 \

        DS:minreqtime:GAUGE:600:0:1000000 \

        DS:avgreqtime:GAUGE:600:0:1000000 \

        DS:maxreqtime:GAUGE:600:0:1000000  --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ]


CMD EXITCODE[0]

CMD RUNTIME[0.0167s]

STDOUT[


]

rrd data = :2308:37809231:323:433:525

RRD CMD[update /opt/observium/rrd/localhost/app-ioping-2358.rrd N:2308:37809231:323:433:525]

RRD RUNTIME[0.0013s]

RRD STDOUT[OK u:0.00 s:0.00 r:3.30]

RRD_STATUS[TRUE]

---------------------------------------------------------------------------------

after creating rrd files, my application always been deleted by the system.


SQL[SELECT * FROM `applications` WHERE `device_id` = '5' AND `app_lastpolled` < '1479199532']

SQL RUNTIME[0.00019503s]

/opt/observium/rrd/localhost/app-ioping-2358.rrd

SQL[DELETE FROM `applications` WHERE `app_id` = '2358']

SQL RUNTIME[0.00605202s]

- o Module time          0.0527s

---------------------------------------------------------------------------

For your consideration, here's attached related script.

_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium