Code

Changed license to GPL-2+ (from GPL-2only).
[nagixsc.git] / sample-configs / http2nagios.cfg
1 ; Lines starting with "#" are defaults
3 [server]
4 ; ### ip (0.0.0.0) ###
5 ; IP to bind server
6 #ip: 0.0.0.0
8 ; ### port (15667) ###
9 ; Port to bind server
10 #port: 15667
12 ; ### ssl (false) ###
13 ; Use SSL for server communication
14 #ssl: false
16 ; ### sslcert (no default) ###
17 ; Read server key and certificate from this file
18 ;sslcert: server.pem
20 ; ### pidfile (/var/run/nagixsc_http2nagios.pid) ###
21 ; Where to store pid file if daemonizing
22 #pidfile: /var/run/nagixsc_http2nagios.pid
24 ; ### mode (no default) ###
25 ; Write checkresult files ("checkresult") or 
26 ; write passive checks to command file ("passive")
27 mode: checkresult
29 ; ### acl (false) ###
30 ; Use ACLs to check if the user is allowed to submit check results for this
31 ; host
32 #acl: false
34 [mode_passive]
35 ; ### pipe ###
36 ; File and path of Nagios command pipe
37 pipe: /var/lib/nagios3/rw/nagios.cmd
39 [mode_checkresult]
40 ; ### dir ###
41 ; Path to Nagios checkresult dir
42 ;
43 ; For Debian packages set to "/var/lib/nagios3/spool/checkresults"
44 ; For local compiled Nagios set to "/usr/local/nagios/var/spool/checkresults"
45 ;
46 ; For quick start set to "/tmp/cr"
47 dir: /tmp/cr
49 [users]
50 ; All users who are allowed to connect and post informations are stored here.
51 ; Passwords must be md5 encrypted, for example in shell use:
52 ; echo -n "Password" | md5sum -
53 nagixsc: 019b0966d98fb71d1a4bc4ca0c81d5cc ; PW: nagixsc
55 [acl_allowed_hosts_list]
56 ; (List of) allowed host(s) per user
57 ; Option "acl" in section "server" must be set to "true"!
58 ;
59 ; Format: <username>: <hostname1> [, <hostname2> [, <hostname3> [...]]]
60 ;
61 ; Example (allow only "host1" for "nagixsc"):
62 ;nagixsc: host1 ; "host2.foo.bar" of sample config not allowed
64 [acl_allowed_hosts_re]
65 ; Regular Expression of allowed host(s) per user
66 ; Option "acl" in section "server" must be set to "true"!
67 ;
68 ; ATTENTION!
69 ; - Needs more testing!
70 ; - Python Regular Expressions, see http://docs.python.org/library/re.html
71 ;
72 ; Format: <username>: <regexp>
73 ;
74 ; Example (allow only "host1" for "nagixsc", same as above in "acl_allowed_hosts_list"):
75 ;nagixsc: ^host1$