top of page
Search
ostsorungarri

Nagvis Centos 7: How to Create Custom Templates, Shapes, Iconsets and Gadgets for Nagvis



NagVis is a visualization tool. You can create great visualized maps using nagvis software, along with Nagios monitoring tool or icigna you can use it. NagVis Installation CentOS 8 step by step guide for you in this article.


# Use mod_rewrite for old url redirection even if there are php files which # redirect the queries itselfs. In some cases the mod_rewrite redirect # is better than the php redirect. # # Using the php redirect seems to be better in some cases where https/http servers # are mixed. For example in OMD setups where using apache own mode and https in the # frontend and http in the backend apache servers. # # Disabling this redirect by default in the hope that the php direct works better. #RewriteCond %REQUEST_URI ^/nagvis/nagvis(/config\.php/index\.php/)(\?.*)$ #RewriteRule ^(.*)$ /nagvis/nagvis/frontend/nagvis-js/%1%2 [R=301,L]




Nagvis Centos 7



# Redirect old regular map links RewriteCond %REQUEST_URI ^/nagvis/nagvis/frontend/(wuinagvis-js) RewriteCond %QUERY_STRING map=(.*) RewriteRule ^(.*)$ /nagvis/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=%1 [R=301,L]


# Without map= param RewriteCond %REQUEST_URI ^/nagvis/nagvis/frontend(/wui)?/?(index.php)?$ RewriteRule ^(.*)$ /nagvis/nagvis/frontend/nagvis-js/index.php [R=301,L] # Redirect old rotation calls RewriteCond %REQUEST_URI ^/nagvis/nagvis/frontend/nagvis-js RewriteCond %QUERY_STRING !mod RewriteCond %QUERY_STRING rotation=(.*) RewriteRule ^(.*)$ /nagvis/nagvis/frontend/nagvis-js/index.php?mod=Rotation&act=view&show=%1 [R=301,L]


Switch to the Appearance tab and set view_type to gadget. Directlybelow, activate gadget_url. Here there are a number of display variationswhich correspond to the data in share/nagvis/htdocs/userfiles/gadgets/.Select std_speedometer.php for the speedometer display.


On NagVis' overview page you may have noticed the point Rotations at thelower left, or respectively in the middle of the list of maps in Rotation Pools.Maps can be set to rotate automatically at any desired interval,which for example is practical for publicly-visible information monitors.The configuration is performed in the NagVis configurations File. Openthe /omd/mysite/etc/nagvis/nagvis.ini.php file, and scroll to line 440where the Rotation pool definitions can be found. Here three lines arerequired to define a Rotations-Pool, the appropriate maps, and the interval.In the below example the pool myrotation has been configured with themaps mymap1, mymap3 and mymap, and with an interval of 30 seconds:


La instalación nos realiza preguntas acerca de rutas de nuestro sofware, usuarios, Backends a usar (seleccionaremos solo mklivestatus -por defecto-). Si hemos seguido paso a paso este artículo nos valdrán las opciones por defecto.Por último editamos el fichero de configuración que nos crea para apache en /etc/httpd/conf.d/nagvis.conf y hacemos un par de cambios para que funcione correctamente en esta versión de apache (2.4):


/opt/monitor/op5/nagvis_ls/share/userfiles/sounds/std_critical.mp3 /opt/monitor/op5/nagvis_ls/share/userfiles/sounds/std_down.mp3 /opt/monitor/op5/nagvis_ls/share/userfiles/sounds/std_error.mp3 /opt/monitor/op5/nagvis_ls/share/userfiles/sounds/std_unreachable.mp3 /opt/monitor/op5/nagvis_ls/share/userfiles/sounds/std_warning.mp3 2ff7e9595c


0 views0 comments

Recent Posts

See All

Commenti


bottom of page