Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # assuming your "primary" box is called "primary" with ip addr 10.0.0.10
- # and your secondary box "secondary" with ip addr 10.0.0.11
- ####### in "secondary" config
- darp_mode: distributed
- DARP "secondary" {
- master "primary" {
- frequency: 1m
- hostname: 10.0.0.11
- secret: password
- }
- }
- ######## in "primary" config
- darp_mode: distributed
- darp_tags: primary
- darp_graph_location: master
- DARP "primary" {
- slave "secondary" {
- hostname: 10.0.0.11
- secret: password
- remote_url: http://10.0.0.11/
- }
- }
- # primary monitors "datacenter1", secondary monitors "datacenter2"
- Group "servers-distributed" {
- Group "datacenter1" {
- darp_tags: primary
- Host "server1" {
- Service Ping
- }
- }
- Group "datacenter2" {
- darp_tags: secondary
- Host "server1" {
- Service Ping
- }
- }
- }
- # primary & secondary monitor redundantly. if either detect a problem, alarm
- Group "servers-redundant" {
- darp_mode: redundant
- darp_tags: primary secondary
- Group "datacenter1" {
- Host "server1" {
- Service Ping
- }
- }
- Group "datacenter2" {
- Host "server1" {
- Service Ping
- }
- }
- }
- # more of a mixed mode
- Group "servers" {
- Group "datacenter1" {
- # alert if any argus cant connect to db
- Host "database" {
- darp_mode: redundant
- darp_tags: primary secondary
- Service Ping
- }
- # only monitor local logging server by primary argus server.
- Host "loghost" {
- darp_tags: primary
- Service Ping
- }
- }
- Group "datacenter2" {
- # monitor local logging server by secondary argus server
- darp_tags: secondary
- Service Ping
- }
- }
- Group "self" {
- graph: yes
- darp_mode: redundant
- darp_tags: primary secondary
- Service Self/idle {
- label: busy
- uname: busy
- title: Percent Busy
- calc: ave-rate
- scale: 0.01
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement