mc_nagvis / nagvis functions

You can add your own key/values in backends, rotations and actions subdictionaries.

mc_states.modules.mc_nagvis.add_geomap_settings(name, hosts, **kwargs)

Settings for the add_geomap macro

mc_states.modules.mc_nagvis.add_map_settings(name, _global, objects, keys_mapping, **kwargs)

Settings for the add_map macro

mc_states.modules.mc_nagvis.settings()

nagvis settings

location
installation directory
package
list of packages to install navgis
configuration_directory
directory where configuration files are located
root_account

dictionary to store root account information. It is the account with the userId=1 in the sqlite database

login
login for root login on web interface
hashed_password
password for root login on web interface
salt
salt used to hash the password
default_password
the password inserted when nagvis is installed. it is to check that the password was not previously modified
nginx

dictionary to store values of nginx configuration

domain
name of virtualhost created to serve webpages
doc_root
root location of virtualhost
vh_content_source
template file for nginx content file
vh_top_source
template file for nginx top file
nagvis

dictionary to store values used in templates given in vh_content_source and vh_top_source

web_directory
location under which webpages of nagvis will be available
fastcgi_pass
socket used to contact fastcgi server in order to interpret php files
phpfpm

dictionary to store values of phpfpm configuration

open_basedir
paths to add to open_basedir
doc_root
root location for php-fpm
session_auto_start
must be 0 to run nagvis
global_php

dictionary to store values used in global.php

AUTH_PASSWORD_SALT
salt used for password. We notice the salt used is the same for all passwords which is a security weakness.
nagvis_ini_php

dictionary to store values used in nagvis_ini_php each subdictionary represents an ini section if a key is not present, the directive will not be added in the configuration file

global

dictionary to store values of global section in nagvis_ini_php

authmodule
name of authentication module
authorisationmodule
name of authorisation module
file_group
group used to launch nagvis script
file_mode
default file mode for temporary files
geomap_server
url of geomap server
http_proxy
http proxy
http_proxy_auth
auth for http proxy
paths

dictionary to store values of paths section in nagvis_ini_php

base
location of nagvis installation
htmlbase
location of php files. It should be the same value that nginx.nagvis.web_directory
defaults

dictionary to store values of defaults section in nagvis_ini_php

backend
default backend
automap

dictionary to store values of automap section in nagvis_ini_php

defaultparams
default parameters
defaultroot
default root
graphvizpath
location of graphviz binary
backends

dictionary to store values of backends section in nagvis_ini_php each subdictionary corresponds to a “backend_foo” section

foo

dictionary to store values of foo backend. foo must be replaced with the name of the backend the keys and values expected depends on the backend type

backendtype
type of backend
rotations

dictionary to store values of rotations section in nagvis_ini_php each subdictionary corresponds to a “rotation_foo” section

foo

dictionary to store values of foo rotation. foo must be replaced with the name of the rotation

maps
list of maps which are in the rotation
interval
interval
actions

dictionary to store values of actions section in nagvis_ini_php each subdictionary corresponds to a “action_foo” section

foo

dictionary to store values of foo action. foo must be replaced with the name of the action

action_type
type of action
obj_type
“host” or “service” or “host,service”
condition
condition to apply the action
domain
domain
username
username