This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| play #2 (nagios): | |
| ensure needed packages are up to date | |
| tags: packages | |
| create Merlin bindirs | |
| tags: merlin | |
| install Nagios configs | |
| tags: config | |
| update Nagios startup script | |
| tags: startup | |
| update rrdcached startup config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $umask 0000 | |
| $FileCreateMode 0644 | |
| $DirCreateMode 0755 | |
| # for debugging | |
| # $template HostLogs,"/var/tmp/rsyslog/%fromhost-ip%.log" | |
| # *.* ?HostLogs | |
| $template NagiosLogs,"/usr/local/nagios/var/cluster_logs/nagios-%$YEAR%-%$MONTH%-%$DAY%.log" | |
| # date-unixtimestamp was introduced in the 6.x release of rsyslog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gepp: | |
| auth: | |
| community: mycommunitystring | |
| walk: [1.3.6.1.4.1.xxx] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| juniper: | |
| auth: | |
| community: {{ community_strings.neteng }} | |
| lookups: | |
| - old_index: ifIndex | |
| new_index: ifDescr | |
| - old_index: dot3StatsIndex | |
| new_index: ifDescr | |
| walk: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # use snmptranslate to lookup OID if there's no comment after an existing numeric OID | |
| def translate_oid(oid) | |
| @cache ||= {} | |
| @cache[oid] ||= `snmptranslate -Os -mALL #{oid}` | |
| end | |
| file = 'generator.yml.j2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oid | min | max | avg | |
|---|---|---|---|---|
| JUNIPER-IPSEC-FLOW-MON-MIB::jnxIpSecSaMonState (1.3.6.1.4.1.2636.3.52.1.2.3.1.14) | 43.604573 | 106.098009 | 47.1666516654867 | |
| EtherLike-MIB::dot3StatsFCSErrors (1.3.6.1.2.1.10.7.2.1.3) | 54.978294 | 995.167751 | 597.218319337143 | |
| JUNIPER-SRX5000-SPU-MONITORING-MIB::jnxJsSPUMonitoringCurrentFlowSession (1.3.6.1.4.1.2636.3.39.1.12.1.1.1.6) | 133.089871 | 546.70543 | 146.672816476106 | |
| JUNIPER-IF-MIB::ifOut1SecPkts (1.3.6.1.4.1.2636.3.3.1.1.6) | 89.765429 | 992.658339 | 204.010975616314 | |
| RFC1213-MIB::ifOutErrors (1.3.6.1.2.1.2.2.1.20) | 81.191123 | 923.976113 | 177.27412486598 | |
| JUNIPER-IPSEC-FLOW-MON-MIB::jnxIkeTunMonLocalGwAddrType (1.3.6.1.4.1.2636.3.52.1.1.2.1.5) | 46.306736 | 120.659796 | 54.6715760902655 | |
| IF-MIB::ifAlias (1.3.6.1.2.1.31.1.1.1.18) | 89.889402 | 926.800501 | 121.957226546729 | |
| RFC1213-MIB::ifInUnknownProtos (1.3.6.1.2.1.2.2.1.15) | 89.000086 | 949.688733 | 223.213924806452 | |
| RFC1213-MIB::ifMtu (1.3.6.1.2.1.2.2.1.4) | 80.942778 | 991.19613 | 118.087057754902 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - job_name: 'ping' | |
| scrape_interval: 10s | |
| scrape_timeout: 5s | |
| metrics_path: /probe | |
| params: | |
| module: [icmp_ipv4] | |
| static_configs: | |
| - targets: | |
| - lab.example.com;dev1;192.168.1.1 | |
| - lab.example.com;kvm;192.168.16.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inhibit_rules: | |
| - source_match_re: | |
| replica: '^.*' | |
| target_match_re: | |
| replica: '^.*' | |
| equal: ['instance', 'alertname', 'severity'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static_configs: | |
| - targets: | |
| - 'https://stag-prom01.bos.example.com:443' | |
| - 'https://stag-prom02.bos.example.com:443' | |
| - 'https://stag-prom03.dfw.example.com:443' | |
| - 'https://stag-prom04.dfw.example.com:443' | |
| relabel_configs: | |
| - source_labels: [__address__] | |
| regex: '^https://[\w\-]+\.([\w\-]+)\.' | |
| target_label: location |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jan 16 15:20:49 stag-prom01 prometheus: level=info ts=2019-01-16T15:20:49.148459848Z caller=main.go:631 msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml | |
| Jan 16 15:21:48 stag-prom01 prometheus: level=info ts=2019-01-16T15:21:48.991383802Z caller=main.go:657 msg="Completed loading of configuration file" filename=/etc/prometheus/prometheus.yml | |
| Jan 16 15:21:48 stag-prom01 prometheus: level=info ts=2019-01-16T15:21:48.991398458Z caller=main.go:631 msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml | |
| Jan 16 15:21:49 stag-prom01 prometheus: level=info ts=2019-01-16T15:21:48.995314439Z caller=main.go:657 msg="Completed loading of configuration file" filename=/etc/prometheus/prometheus.yml | |
| Jan 16 15:27:47 stag-prom01 prometheus: level=info ts=2019-01-16T15:27:47.888364359Z caller=main.go:631 msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml | |
| Jan 16 15:29:49 stag-prom01 prometheus: level=info ts=2019-01-16T15:29:49.236325279Z caller=main.go:657 msg="Comp |
OlderNewer