2016-08-24 08:12:20 +01:00
source: Support/Poller Support.md
2015-05-04 16:20:38 +01:00
### poller.php
This document will explain how to use poller.php to debug issues or manually running to process data.
#### Command options
```bash
LibreNMS 2014.master Poller
-h < device id > | < device hostname wildcard > Poll single device
-h odd Poll odd numbered devices (same as -i 2 -n 0)
-h even Poll even numbered devices (same as -i 2 -n 1)
-h all Poll all devices
-i < instances > -n < number > Poll as instance < number > of < instances >
Instances start at 0. 0-3 for -n 4
Debugging and testing options:
-r Do not create or update RRDs
2016-08-26 00:40:11 +01:00
-f Do not insert data into InfluxDB
2015-05-04 16:20:38 +01:00
-d Enable debugging output
2016-08-26 00:40:11 +01:00
-v Enable verbose debugging output
2015-05-04 16:20:38 +01:00
-m Specify module(s) to be run
```
2016-01-30 21:06:58 -05:00
`-h` Use this to specify a device via either id or hostname (including wildcard using *). You can also specify odd and
2015-05-04 16:20:38 +01:00
even. all will run poller against all devices.
`-i` This can be used to stagger the poller process.
`-r` This option will suppress the creation or update of RRD files.
2016-08-26 00:40:11 +01:00
`-d` Enables debugging output (verbose output but with most sensitive data masked) so that you can see what is happening during a poller run. This includes things like rrd updates, SQL queries and response from snmp.
`-v` Enables verbose debugging output with all data in tact.
2015-05-04 16:20:38 +01:00
`-m` This enables you to specify the module you want to run for poller.
#### Poller config
2016-01-30 21:06:58 -05:00
These are the default poller config items. You can globally disable a module by setting it to 0. If you just want to
2015-05-04 16:20:38 +01:00
disable it for one device then you can do this within the WebUI -> Settings -> Modules.
```php
$config['poller_modules']['unix-agent'] = 0;
$config['poller_modules']['os'] = 1;
$config['poller_modules']['ipmi'] = 1;
$config['poller_modules']['sensors'] = 1;
$config['poller_modules']['processors'] = 1;
$config['poller_modules']['mempools'] = 1;
$config['poller_modules']['storage'] = 1;
$config['poller_modules']['netstats'] = 1;
$config['poller_modules']['hr-mib'] = 1;
$config['poller_modules']['ucd-mib'] = 1;
$config['poller_modules']['ipSystemStats'] = 1;
$config['poller_modules']['ports'] = 1;
$config['poller_modules']['bgp-peers'] = 1;
$config['poller_modules']['junose-atm-vp'] = 1;
$config['poller_modules']['toner'] = 1;
$config['poller_modules']['ucd-diskio'] = 1;
$config['poller_modules']['wifi'] = 1;
$config['poller_modules']['ospf'] = 1;
$config['poller_modules']['cisco-ipsec-flow-monitor'] = 1;
$config['poller_modules']['cisco-remote-access-monitor'] = 1;
$config['poller_modules']['cisco-cef'] = 1;
$config['poller_modules']['cisco-sla'] = 1;
$config['poller_modules']['cisco-mac-accounting'] = 1;
$config['poller_modules']['cipsec-tunnels'] = 1;
$config['poller_modules']['cisco-ace-loadbalancer'] = 1;
$config['poller_modules']['cisco-ace-serverfarms'] = 1;
$config['poller_modules']['netscaler-vsvr'] = 1;
$config['poller_modules']['aruba-controller'] = 1;
$config['poller_modules']['entity-physical'] = 1;
$config['poller_modules']['applications'] = 1;
$config['poller_modules']['cisco-asa-firewall'] = 1;
2015-06-08 14:58:22 +10:00
$config['poller_modules']['mib'] = 0;
2015-05-04 16:20:38 +01:00
```
#### Poller modules
`unix-agent` : Enable the check_mk agent for external support for applications.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`system` : Provides information on some common items like uptime, sysDescr and sysContact.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`os` : Os detection. This module will pick up the OS of the device.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`ipmi` : Enables support for IPMI if login details have been provided for IPMI.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`sensors` : Sensor detection such as Temperature, Humidity, Voltages + More.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`processors` : Processor support for devices.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`mempools` : Memory detection support for devices.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`storage` : Storage detection for hard disks
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`netstats` : Statistics for IP, TCP, UDP, ICMP and SNMP.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`hr-mib` : Host resource support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`ucd-mib` : Support for CPU, Memory and Load.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`ipSystemStats` : IP statistics for device.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`ports` : This module will detect all ports on a device excluding ones configured to be ignored by config options.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`bgp-peers` : BGP detection and support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`junose-atm-vp` : Juniper ATM support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`toner` : Toner levels support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`ucd-diskio` : Disk I/O support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`wifi` : WiFi Support for those devices with support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`ospf` : OSPF Support.
2015-05-04 16:29:03 +01:00
2015-06-08 14:56:12 +10:00
`cisco-ipsec-flow-monitor` : IPSec statistics support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cisco-remote-access-monitor` : Cisco remote access support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cisco-cef` : CEF detection and support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cisco-sla` : SLA detection and support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cisco-mac-accounting` : MAC Address account support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cipsec-tunnels` : IPSec tunnel support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cisco-ace-loadbalancer` : Cisco ACE Support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cisco-ace-serverfarms` : Cisco ACE Support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`netscaler-vsvr` : Netscaler support.
2015-05-04 16:29:03 +01:00
2016-01-30 22:37:28 -05:00
`aruba-controller` : Aruba wireless controller support.
2016-01-30 21:06:58 -05:00
2015-05-04 16:20:38 +01:00
`entity-physical` : Module to pick up the devices hardware support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`applications` : Device application support.
2015-05-04 16:29:03 +01:00
2015-05-04 16:20:38 +01:00
`cisco-asa-firewall` : Cisco ASA firewall support.
2015-06-08 14:58:22 +10:00
`mib` : Support for generic MIB parsing.
2015-05-04 16:20:38 +01:00
#### Running
Here are some examples of running poller from within your install directory.
```bash
./poller.php -h localhost
./poller.php -h localhost -m ports
```
#### Debugging
2016-01-30 21:06:58 -05:00
To provide debugging output you will need to run the poller process with the `-d` flag. You can do this either against
2015-05-04 16:20:38 +01:00
all modules, single or multiple modules:
All Modules
```bash
./poller.php -h localhost -d
```
Single Module
```bash
./poller.php -h localhost -m ports -d
```
Multiple Modules
```bash
./poller.php -h localhost -m ports,entity-physical -d
```
2016-08-26 00:40:11 +01:00
Using `-d` shouldn't output much sensitive information, `-v` will so it is then advisable to sanitise the output before pasting it somewhere as the debug output will contain snmp details amongst other items including port descriptions.
2015-05-04 16:20:38 +01:00
The output will contain:
DB Updates
RRD Updates
2015-06-08 14:56:12 +10:00
SNMP Response