mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- added rrd_pipes to check script
- renamed service_* to *_service
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user