SOURCES: nagios-nagvis-map.cfg (NEW), nagios-nagvis-config.ini.php...

glen glen at pld-linux.org
Wed May 7 01:47:58 CEST 2008


Author: glen                         Date: Tue May  6 23:47:58 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- from http://www.linadd.org/browser/trunk/nagios/visual/

---- Files affected:
SOURCES:
   nagios-nagvis-map.cfg (NONE -> 1.1)  (NEW), nagios-nagvis-config.ini.php (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/nagios-nagvis-map.cfg
diff -u /dev/null SOURCES/nagios-nagvis-map.cfg:1.1
--- /dev/null	Wed May  7 01:47:58 2008
+++ SOURCES/nagios-nagvis-map.cfg	Wed May  7 01:47:53 2008
@@ -0,0 +1,69 @@
+; $Id$
+
+define global {
+  background_color=#fff
+  only_hard_states=0
+  recognize_services=1
+  allowed_user=EVERYONE
+  allowed_for_config=EVERYONE
+  iconset=std_medium
+  map_image=nagvis-demo.png
+  backend_id=ndomy_1
+}
+
+; the following breaks something, leaves output blank.
+;define map {
+;  map_name=localhost
+;  x=408
+;  y=327
+;}
+
+define host {
+  host_name=localhost
+  x=265
+  y=165
+}
+
+define service {
+  host_name=localhost
+  service_description=ping
+  x=588
+  y=165
+  iconset=std_small
+}
+
+define servicegroup {
+  servicegroup_name=comms
+  x=609
+  y=363
+}
+
+define hostgroup {
+  hostgroup_name=local servers
+  x=298
+  y=363
+  iconset=std_big
+}
+
+define textbox {
+  text=This is the default localhost map.
+  x=505
+  y=263
+  w=117
+  background_color=transparent
+}
+
+define hostgroup {
+  hostgroup_name=remote servers
+  x=405
+  y=150
+  iconset=std_big
+}
+
+define textbox {
+  text=Remote servers
+  x=357
+  y=171
+  w=92
+}
+

================================================================
Index: SOURCES/nagios-nagvis-config.ini.php
diff -u /dev/null SOURCES/nagios-nagvis-config.ini.php:1.1
--- /dev/null	Wed May  7 01:47:58 2008
+++ SOURCES/nagios-nagvis-config.ini.php	Wed May  7 01:47:53 2008
@@ -0,0 +1,82 @@
+; <?php return 1; ?>
+; the line above is to prevent viewing this file from web. DON'T REMOVE IT!
+
+; ----------------------------
+; Default NagVis Configuration File
+; At delivery everything here is commented out. The default values are set in
+; the NagVis code. You can make your changes here, it'll overwrite the default
+; settings.
+; ----------------------------
+
+; global options
+[global]
+; select language (english,german,...)
+language="english"
+; rotate maps (0/1)
+rotatemaps=1
+; maps to rotate
+maps="localhost,demo,demo2"
+; show header (0/1)
+displayheader=1
+; options per line in header
+headercount=4
+; use gdlibs (if set to 0 lines will not work, all other types should work fine)
+usegdlibs=1
+; refresh time of pages
+refreshtime=60
+
+; default values for the maps
+[defaults]
+; default backend (id of the default backend)
+backend="ndomy_1"
+; default icons
+icons="std_medium"
+; recognize service states in host/hostgroup objects
+recognizeservices=1
+; recognize only hard states (not soft)
+onlyhardstates=0
+; background color of maps
+backgroundcolor="#fff"
+
+; options for the wui
+[wui]
+; auto update frequency
+autoupdatefreq=25
+
+; path options
+[paths]
+; absolute physical NagVis path
+base="/usr/share/nagios/nagvis/"
+; absolute html NagVis path
+htmlbase="/nagios/nagvis"
+; absolute html NagVis cgi path
+htmlcgi="/nagios/cgi-bin"
+
+; options for the NDO-Backend
+; in this example the ID of the Backend is "ndomy_1" you can define another ID.
+[backend_ndomy_1]
+; type of backend - MUST be set
+backendtype="ndomy"
+; hostname for NDO-db
+dbhost="localhost"
+; portname for NDO-db
+dbport=3306
+; database-name for NDO-db
+dbname="nagios"
+; username for NDO-db
+dbuser="nagios"
+; password for NDO-db
+dbpass="nagios"
+; prefix for tables in NDO-db
+dbprefix="nagios_"
+; instace-name for tables in NDO-db
+dbinstancename="default"
+; maximum delay of the NDO Database in Seconds
+maxtimewithoutupdate=180
+
+; include options
+[includes]
+; header include
+header="header.nagvis.inc"
+
+; EOF
================================================================


More information about the pld-cvs-commit mailing list