Advertisement
Asjas

nagiosgraph.cfg

Nov 1st, 2016
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 15.41 KB | None | 0 0
  1. # nagiosgraph configuration file
  2. #
  3. # $Id$
  4. # License: OSI Artistic License
  5. #          http://www.opensource.org/licenses/artistic-license.php
  6. # Author:  (c) 2005 Soren Dossing
  7. # Author:  (c) 2008 Alan Brenner, Ithaka Harbors
  8. # Author:  (c) 2010 Matthew Wall
  9.  
  10. # Location of output from nagiosgraph data processing
  11. logfile = /usr/local/nagiosgraph/var/log/nagiosgraph.log
  12.  
  13. # Location of output from nagiosgraph CGI scripts
  14. cgilogfile = /usr/local/nagiosgraph/var/log/nagiosgraph-cgi.log
  15.  
  16. # Location of nagios performance data log file.
  17. perflog = /usr/local/nagios/var/perfdata.log
  18.  
  19. # Directory in which to store RRD files
  20. rrddir = /usr/local/nagiosgraph/var/rrd
  21.  
  22. # File containing regular expressions to identify service and perf data
  23. mapfile = /usr/local/nagiosgraph/etc/map
  24.  
  25. # Nagiosgraph CGI URL.
  26. nagiosgraphcgiurl = /nagiosgraph/cgi-bin
  27.  
  28. # Nagios CGI URL.  If the Nagiosgraph CGI scripts are in a directory other
  29. # than the Nagios CGI directory, then specify the Nagios CGI URL here.
  30. nagioscgiurl = /nagios/cgi-bin
  31.  
  32. # JavaScript: URL to the nagiosgraph javascript file.
  33. javascript = /nagiosgraph/nagiosgraph.js
  34.  
  35. # Stylesheet: URL to the nagiosgraph stylesheet.
  36. stylesheet = /nagiosgraph/nagiosgraph.css
  37.  
  38. # File containing labels for services and data (optional)
  39. labelfile = /usr/local/nagiosgraph/etc/labels.conf
  40.  
  41. # Location of showhost control file (optional)
  42. #hostdb = /etc/nagiosgraph/hostdb.conf
  43.  
  44. # Location of showservice control file (optional)
  45. #servdb = /etc/nagiosgraph/servdb.conf
  46.  
  47. # Groups can be enumerated explicitly in the groupdb file, gathered
  48. # automatically from the service group definitions in the Nagios
  49. # configuration, or a combination of both.
  50. # Location of showgroup control file (optional)
  51. #groupdb = /etc/nagiosgraph/groupdb.conf
  52. # Location of the Nagios configuration file (optional)
  53. #groupcfgfile = /etc/nagios/nagios.cfg
  54.  
  55. # File containing sets of data sources to select in queries (optional)
  56. datasetdb = /usr/local/nagiosgraph/etc/datasetdb.conf
  57.  
  58. # Access control configuration (optional)
  59. # The authorization method can be one of nagios3 or nagiosgraph.  If no
  60. # method is defined, access will be granted to all hosts and services.
  61.  
  62. # For access control via nagios, specify the nagios configuration files.
  63. # Nagios3 defaults to use authentication.  nagiosgraph looks for the
  64. # use_authentication variable to determine whether authentication is enabled.
  65. # If authentication is enabled, nagiosgraph looks for the
  66. # authorized_for_all_hosts, authorized_for_all_services, and default_user_name
  67. # variables to determine permissions.
  68. #authzmethod = nagios3
  69. #authzfile = /etc/nagios/cgi.cfg
  70.  
  71. # For access control via nagiosgraph, specify a single access control file.
  72. # See the sample access control file for syntax and examples.
  73. #authzmethod = nagiosgraph
  74. #authzfile = /etc/nagiosgraph/access.conf
  75.  
  76.  
  77. # Logging can be enabled for a specific CGI script and/or specific hosts or
  78. # services.  When level is set to 5, the logs will see a lot of extra output,
  79. # so be sure to reset the level when you have finished debugging.
  80.  
  81. # Log Levels
  82. # 0 = None
  83. # 1 = Critical
  84. # 2 = Error
  85. # 3 = Warn
  86. # 4 = Info
  87. # 5 = Debug
  88. debug = 3
  89.  
  90. ### log level for specific scripts
  91. # log level for insert.pl
  92. #debug_insert = 5
  93. # if this is set to a hostname, then only log for this host
  94. #debug_insert_host = host1
  95. # if this is set to a service, then only log for this service
  96. #debug_insert_service = PLW
  97. # *_host and *_service together for a specific service on a specific host.
  98. # log level for show.cgi
  99. #debug_show = 5
  100. #debug_show_host = host1
  101. #debug_show_service = ping
  102. # log level for showhost.cgi
  103. #debug_showhost = 5
  104. #debug_showhost_host = host1
  105. #debug_showhost_service = ping
  106. # log level for showservice.cgi
  107. #debug_showservice = 5
  108. #debug_showservice_host = host1
  109. #debug_showservice_service = ping
  110. # log level for showgroup.cgi
  111. #debug_showgroup = 5
  112. #debug_showgroup_host = host1
  113. #debug_showgroup_service = ping
  114. # log level for showgraph.cgi
  115. #debug_showgraph = 5
  116. #debug_showgraph_host = host1
  117. #debug_showgraph_service = ping
  118. # log level for testcolor.cgi
  119. #debug_testcolor = 5
  120.  
  121. # graph sizes
  122. geometries = 650x50,800x100,1000x200,2000x100
  123.  
  124. # default graph size (optional)
  125. #default_geometry = 600x100
  126.  
  127. # Color scheme for graphs.  There are 8 pre-defined schemes (1-8) and one
  128. # custom scheme (9).  The pre-defined schemes use a color based on the
  129. # characters in the name of each data source.  The custom scheme uses each
  130. # color, in order.  Use testcolor.cgi to see what the color schemes
  131. # look like and how they apply to specific service and data set names.
  132. colorscheme = 9
  133.  
  134. # Sets the saturation and value used by color schemes 1-8. Use any number
  135. # from 0 to 1, inclusive.  The hues are randomly generated based on the
  136. # characters in the name of each data source.
  137. #colorsaturation = 0.8
  138. #colorvalue = 0.95
  139.  
  140. # Custom color scheme is defined by a comma-separated list of RGB hex colors.
  141. # rainbow: reddish, orange, yellow, green, light blue, dark blue, purple, grey
  142. #colors = D05050,D08050,D0D050,50D050,50D0D0,5050D0,D050D0,505050
  143. # light/dark pairs: blue, green, purple, orange
  144. colors = 90d080,30a030,90c0e0,304090,ffc0ff,a050a0,ffc060,c07020
  145. # green from light to dark
  146. #colors = 80d080,50a050,308030
  147.  
  148. # Colors for the maximum and minimum values, applied to the data for services
  149. # in withmaximums and withminimums
  150. #colormax = 888888
  151. #colormin = BBBBBB
  152.  
  153. # Default line style (LINE1, LINE2, LINE3, AREA, TICK); see rrdgraph_graph
  154. plotas = LINE2
  155.  
  156. # Line styles for specific data sources.
  157. #
  158. # Each style is a list of qualified data source names separated by semicolons.
  159. # A single qualified data source must end with a semicolon.
  160. #   [[[host,]service,]database,]datasource;[[[h2,]s2,]db2,]ds2
  161. # The old-style specification is deprecated:
  162. #   datasource1[,datasource2[,datasource3[,...]]]
  163. #
  164. # For example, this uses LINE3 for all PING sources called 'data' from acme.com
  165. #   plotasLINE3 = .*.acme.com,PING,.*,data;
  166. plotasLINE1 = load5,data;load15,data
  167. plotasLINE2 =
  168. plotasLINE3 =
  169. plotasAREA = idle,data;system,data;user,data;nice,data
  170. plotasTICK =
  171.  
  172. # Data sources that should be stacked.
  173. #
  174. # This is a list of qualified data source names separated by semicolons.
  175. # A single qualified data source must end with a semicolon.
  176. stack = system,data;user,data;nice,data
  177.  
  178. # Data sources whose value should be negated.
  179. #
  180. # This is a list of qualified data source names separated by semicolons.
  181. # A single qualified data source must end with a semicolon.
  182. #negate = byte-received;drop-received;error-received;multi-received;packet-received
  183.  
  184. # Specify line formats per data source.  This is a semicolon-separated list of
  185. # line format specifications.  Each format specification contains:
  186. #   [[[host,]service,]database,]ds-name=linestyle[,color][,STACK]
  187. # The old-style specification is deprecated:
  188. #   ds-name,linestyle[,color][,STACK]
  189. #
  190. # For example, this plots every data source called 'crit' as a thin red line:
  191. #lineformat = crit=LINE1,D05050
  192. # This stacks system, nice, and idle onto whatever sources come before them:
  193. #lineformat = system=AREA,FFAAAA;nice=AREA,AAAAFF,STACK;idle,AREA,AAFFAA,STACK
  194. # If the data sources have the same name but different database files, qualify
  195. # them by leading with the database (and service and host, if necessary).
  196. #lineformat = nice,data=AREA,AAAAFF,STACK;idle,data=AREA,AAFFAA,STACK
  197. lineformat = warn=LINE1,D0D050;crit=LINE1,D05050
  198.  
  199. # Services that should receive 'fixed-scale' treatment.  Specifying fixed scale
  200. # does two things: it prevents rrdtool from translating the vertical axis units
  201. # from raw values to milli, kilo, etc. (the '-X 0' rrd option), and it does the
  202. # same for the values displayed in the legend for max, ave, and last.
  203. #
  204. # This is a list of qualified data source names separated by semicolons.
  205. # A single qualified data source must end with a semicolon.
  206. #fixedscale = .*,PING,loss,.*;
  207.  
  208. # Graphs to show in host-service page (hour, day, week, month, quarter, year)
  209. timeall = day,week,month,year
  210. # Graphs to show in host page
  211. timehost = day,week,month
  212. # Graphs to show in service page
  213. timeservice = day,week,month
  214. # Graphs to show in group page
  215. timegroup = day,week,month
  216.  
  217. # Time periods that should default to expanded state.  If not specified here,
  218. # the period will default to a collapsed state.
  219. expand_timeall = hour,day,week,month,quarter,year
  220. expand_timehost = week
  221. expand_timeservice = week
  222. expand_timegroup = day
  223.  
  224. # Formats for time and date.
  225. timeformat_now = %H:%M:%S %d %b %Y %Z
  226. timeformat_hour = %H:%M
  227. timeformat_day = %H:%M %e %b
  228. timeformat_week = %e %b
  229. timeformat_month = Week %U
  230. timeformat_quarter = Week %U
  231. timeformat_year = %b %Y
  232.  
  233. # Set this to automatically refresh the web page.  Value is number of seconds.
  234. #refresh = 300
  235.  
  236. # Set this to hide the nagiosgraph title (useful when nagiosgraph is
  237. # embedded in the nagios frame).
  238. #hidengtitle = true
  239.  
  240. # Set this to show in the footer the time spent generating the page.
  241. #showprocessingtime = true
  242.  
  243. # Set this to display a title for each graph in html.  When appropriate, the
  244. # title also includes links to other views of each host and/or service.
  245. showtitle = true
  246.  
  247. # Set this to display a description for each graph in html.
  248. #showdesc = true
  249.  
  250. # Set this to put a title in each graph.
  251. #showgraphtitle = true
  252.  
  253. # Set this to hide the legend in each graph.
  254. #hidelegend = true
  255.  
  256. # Set this to display only the graph data - no axes, grid, or legend.
  257. #graphonly = true
  258.  
  259. # For services listed here, graphs that contain averages (e.g. weekly, monthly)
  260. # will include maximum/minimum values as well.  This is useful for services
  261. # such as ping or http transfer rates so that you see not only the average
  262. # values, but also the maximum and minimum values over time.  Each is a list
  263. # of services separated by commas.
  264. # These are not related to the RRA maximum, minimum, or last (defined below).
  265. withmaximums = PING,HTTP
  266. withminimums = PING,HTTP
  267.  
  268. # Scaling parameters, see the rrdgraph documentation for use
  269. # Separate multiple services to add the -A option to by commas
  270. #altautoscale = service1,service2
  271. # Separate multiple services to add the -J option to by semicolons, and use a
  272. # command to separate the service name from the desired value
  273. #altautoscalemin = service1,min1;service2,min2
  274. # Separate multiple services to add the -M option to by semicolons, and use a
  275. # command to separate the service name from the desired value
  276. #altautoscalemax = service1,max1;service2,max2
  277. # Separate multiple services to add the -N option to by commas
  278. #nogridfit = service1,service2
  279. # Separate multiple services to add the -o option to by commas
  280. #logarithmic = service1,service2
  281.  
  282. # Specify rrd graph options that apply to all graphs
  283. #rrdopts=--border 0 --color BACK#ffffff
  284.  
  285. # Optional - define rrdopts override file, this enables you to specify
  286. # particular rrdgraph options against each service.
  287. #rrdoptsfile=/etc/nagiosgraph/rrdopts.conf
  288.  
  289. # If perfloop is set, insert.pl will loop waiting for input data.  The value
  290. # is the polling interval, in seconds.  Set this only if you intend to run
  291. # insert.pl independently of Nagios.
  292. #perfloop = 30
  293.  
  294. # The heartbeat, stepsize, and resolution are rrdtool parameters.  They are
  295. # used when RRD files are created.  Changes to these values have no effect
  296. # on existing RRD files.  See the rrdtool documentation for details.
  297. # These values must be coordinated with nagios service check settings and
  298. # the nagiosgraph data processing interval.
  299.  
  300. # RRD heartbeat, in seconds.  This defines the maximum length of an interval
  301. # with no data update before rrd considers the data unknown.  Typically twice
  302. # the size of servicecheck interval.  600 is the rrdtool default.
  303. #heartbeat = 600
  304. # Specify a heartbeat for specific hosts and services.
  305. #heartbeats = HOST,SERVICE,DATABASE=1200;HOST,SERVICE,.*=1800;.*,.*,.*=600
  306.  
  307. # RRD step size, in seconds.  This defines how often the data will be updated.
  308. # Typically the size of the servicecheck interval.  300 is the rrdtool default.
  309. #stepsize = 300
  310. # Specify a step size for specific hosts and services.
  311. #stepsizes = HOST,SERVICE,DATABASE=600;HOST,SERVICE,.*=1200;.*,.*,.*=300
  312.  
  313. # RRD parameters.  These numbers control the number of stored data values
  314. # and thus RRD file size.  They are used when creating RRD files.
  315. # Each RRD file is created with 4 lines of RRA arguments:
  316. #   RRA:(AVERAGE|MIN|MAX|LAST):xff:step1:row1
  317. #   RRA:(AVERAGE|MIN|MAX|LAST):xff:step2:row2
  318. #   RRA:(AVERAGE|MIN|MAX|LAST):xff:step3:row3
  319. #   RRA:(AVERAGE|MIN|MAX|LAST):xff:step4:row4
  320. #
  321. # Using default values, the RRAs are as follows:
  322. #   RRA:AVERAGE:0.5:1:600
  323. #   RRA:AVERAGE:0.5:6:700
  324. #   RRA:AVERAGE:0.5:24:775
  325. #   RRA:AVERAGE:0.5:288:797
  326. #
  327. # The rows are defined by the four resolution values.
  328. # The default results in RRD files that are 20K to 75K in size:
  329. #resolution = 600 700 775 797
  330. # These values keep many more data points, but result in much larger files:
  331. #resolution = 17280 17520 32850 1095
  332. # Specify resolution for specific hosts and services.
  333. #resolutions = HOST,SERVICE,.*=17280 17520 32850 1095;.*,.*,.*=600 700 775 797
  334. #
  335. # The steps are defined by the four step values.
  336. # The default results in consolidated data points for day, week, month, year
  337. #step = 1 6 24 288
  338. # Specify step for specific hosts and services.
  339. #steps = HOST,SERVICE,.*=1 12 48 596;.*,.*,.*=1 6 24 288
  340. #
  341. # The xff (xfiles factor) defines what part of a consolidation interval may be
  342. # made up from UNKNOWN data while the consolidated value is still regarded as
  343. # known.  It is given as the ratio of allowed UNKNOWN PDPs to the number of
  344. # PDPs in the interval.  It ranges from 0 to 1, exclusive.
  345. #xff = 0.5
  346. # Specify xff for specific hosts and services.
  347. #xffs = HOST,SERVICE,.*=0.9;.*,.*,.*=0.5
  348.  
  349. # By default, each RRD records average values.  To record maximum, minimum, or
  350. # last value instead of the average value, specify the service and database
  351. # names here, optionally qualified by hostname.
  352. #   [host,]service,database;[[host,]service2,database][;...]
  353. # The old-style specification is deprecated:
  354. #   service1[,service2[,service3[,...]]]
  355. #maximums = .*.acme.com,service1,.*;
  356. #maximums = host1,service1,database;service2,database2;.*.acme.com,service3,.*
  357. maximums = Current Load,.*;Current Users,.*;Total Processes,.*;PLW,.*
  358. minimums =
  359. lasts =
  360.  
  361. # This lists data that need to go into separate rrd files.  This is used
  362. # when creating new rrd files when a change to the map is not possible.  Use
  363. # this to segregate a value from other returned values for a specific host.
  364. # Each entry consists of a comma separated set of host,service,value.  Separate
  365. # each set with a semicolon.
  366. #hostservvar = server1,service1,val1;server2,service2,val2
  367. #hostservvar = host2,PLW,smtp_error
  368.  
  369. # Organization of RRD files.  There are two ways to organize the RRD files:
  370. # flat : all in a single directory (the old way):
  371. #   rrddir/HOST_SERVICE_DATABASE.rrd
  372. # subdir : organized by host (the new way):
  373. #   rrddir/HOST/SERVICE___DATABASE.rrd
  374. dbseparator = subdir
  375.  
  376. # Optionally force the language.  If no language is specified, the language
  377. # is determined from the browser environment or explicit cgi argument.  The
  378. # possible values are standard language/country codes such as es, fr, de,
  379. # en_US, en_UK, ...  If there is no corresponding language file, the language
  380. # reverts to english.
  381. #language = es
  382.  
  383. # JavaScript must be enabled for full functionality.  But if you need to
  384. # disable it and you do not want the warnings, this lets you hide them.
  385. #hidejswarnings = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement