| YATG documentation | view source | Contained in the YATG distribution. |
YATG::Store::NSCA - Back-end module to send polled data to a Nagios service
This module checks for device ports which are administratively enabled, but which are showing not connected to anything, at the time of polling. A Nagios CRITICAL result will be generated for such ports.
Only one check result per device is submitted (i.e. not one result per port). If there are multiple ports in an alarm state on the same device, then they will all be mentioned in the single service check report.
When all enabled ports are connected, an OK result is returned.
At a minimum, you must provide details of the location of your Nagios NSCA server, in the main configuration file:
nsca:
nsca_server: '192.0.2.1'
In your YATG configuration file, you must also include this store module on the OIDs required to generate a check result:
oids:
"ifOperStatus": [ifindex, nsca]
"ifAlias": [ifindex, nsca]
You can also supply the following settings in the main configuration file to override builtin defaults, like so:
nsca:
send_nsca_cmd: '/usr/bin/send_nsca'
config_file: '/etc/send_nsca.cfg'
ignore_ports: '^(?:Vlan|Po)\d+$'
ignore_descr: '(?:SPAN)'
service_name: 'Interfaces Status'
send_nsca_cmdThe location of the send_nsca command on your system. YATG will default to
searching for send_nsca in the application's current PATH.
config_fileThe location of the configuration file for the send_nsca program. This
defaults to /etc/send_nsca.cfg.
ignore_portsDevice port names (OID ifDescr) to skip when submitting results. This
defaults to anything like a Vlan interface, or Cisco PortChannel. Supply the
content of a Perl regular expression, as in the example above.
ignore_descrDevice port description fields matching this value cause the port to be skipped when submitting results. This defaults to anything containing the word "SPAN". Supply the content of a Perl regular expression, as in the example above.
service_nameThe Nagios Service Check name to use when submitting results. This must match the configured name on your Nagios server, and defaults to "Interfaces Status".
Oliver Gorwits <oliver.gorwits@oucs.ox.ac.uk>
Copyright (c) The University of Oxford 2009.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| YATG documentation | view source | Contained in the YATG distribution. |