- Moved poller module back to check-services.php

- added debug option -d
This commit is contained in:
Aaron Daniels
2016-03-21 16:48:26 +10:00
parent f90ead9f2e
commit 870d3aee56
2 changed files with 43 additions and 19 deletions
-19
View File
@@ -1,19 +0,0 @@
<?php
/*
* LibreNMS module to poll Nagios Services
*
* Copyright (c) 2016 Aaron Daniels <aaron@daniels.id.au>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
foreach (dbFetchRows('SELECT * FROM `devices` AS D, `services` AS S WHERE S.device_id = D.device_id AND D.device_id = ? ORDER by D.device_id DESC', array($device['device_id'])) as $service) {
// Run the polling function
service_poll($service);
} //end foreach