Integrate Thold with OCOMON

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
jcb
Posts: 29
Joined: Thu May 19, 2011 10:14 pm

Integrate Thold with OCOMON

Post by jcb »

I am starting to work on a script for integrating the table values 'plugin_thold_log' with the application OCOMON. I want to register in this application all incidents alarmed by THOLD for purposes of report. I would like an idea of how to convert the value of the column 'time' the table 'plugin_thold_log' of THOLD plugin of Cacti to normal hours.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Integrate Thold with OCOMON

Post by noname »

>> I would like an idea of how to convert the value of the column 'time' the table 'plugin_thold_log' of THOLD plugin of Cacti to normal hours.

That value is normal UNIX epoch time. See function thold_show_log() in 'thold_graph.php':

Code: Select all

<?php print date("Y-m-d H:i:s", $l["time"]);?>
% php -r 'print date("Y-m-d H:i:s", 1331624620);'
2012-03-13 16:43:40

// I'm in JST timezone
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests