- added rrd_pipes to check script

- renamed service_* to *_service
This commit is contained in:
Aaron Daniels
2016-03-22 07:35:39 +10:00
parent 870d3aee56
commit 854812a457
10 changed files with 51 additions and 40 deletions

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
/*
@@ -36,8 +37,11 @@ else {
// ini_set('error_reporting', 0);
}
rrdtool_pipe_open($rrd_process, $rrd_pipes);
foreach (dbFetchRows('SELECT * FROM `devices` AS D, `services` AS S WHERE S.device_id = D.device_id ORDER by D.device_id DESC') as $service) {
// Run the polling function
service_poll($service);
poll_service($service);
} //end foreach
rrdtool_pipe_close($rrd_process, $rrd_pipes);