Integrate Thold with OCOMON
Moderators: Developers, Moderators
Integrate Thold with OCOMON
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.
Re: Integrate Thold with OCOMON
>> 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':
% php -r 'print date("Y-m-d H:i:s", 1331624620);'
2012-03-13 16:43:40
// I'm in JST timezone
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"]);?>
2012-03-13 16:43:40
// I'm in JST timezone
Who is online
Users browsing this forum: No registered users and 3 guests