isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw:...

19
Working with NAGVIS

Transcript of isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw:...

Page 1: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Working with NAGVIS

Page 2: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Content

Extra.......................................................................................................................................................3

Iconset....................................................................................................................................................4

Whitespace during scrolling (Nagvis image)...........................................................................................4

Whitespace between (‘dashboard-menu’ and ‘edit current map’)........................................................5

Admin menu: access profile en logout...................................................................................................5

Delete the OPSVIEW menu (logo, header etc.)......................................................................................6

File overrides variables...........................................................................................................................6

The height of the screen (Nagvis)...........................................................................................................6

Send email on alert................................................................................................................................7

Logo Login..............................................................................................................................................9

Map Rotation Tools................................................................................................................................9

Monitoring system on IPhone/Smartphone via IOS or Android:..........................................................10

MRTG...................................................................................................................................................11

Change the SOUNDS for warning/critical/up etc..................................................................................11

UPGRADE OPSVIEW..............................................................................................................................12

Forgotten Root Paswoord?...................................................................................................................13

Change and create new maps and images...........................................................................................14

Page 3: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Extra

/usr/local/nagios/nagvis/etc/nagvis.ini.php

Everything in the color purple, needs to be altered after an update Everything in the green-blue color, doesn’t change after an update

Key-board set to Azerty (In Linux command prompt) SUDO dpkg-reconfigure console-data

NOTE: we are working with the file manager of Opsview!

Modules > Webmin

Password: conf

Username: conf

Others > File manager

Page 4: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Iconset

Modules/webmin (in Opsview website)user: confpasw: conf

Others/file manager/ usr/local/nagios/nagvis/nagvis/images/iconsets Icons for nagvis interface (ok/warning/ critical) uploaden

Whitespace during scrolling (Nagvis image)

usr/local/nagios/share/stylesheets/navmenu/navigation.css

.opsview_navigation_wrapper {width:100%;min-width:876px;height:25px;background:#FFF;position: fixed;top: 0px;font-size: 8pt; }

Change the height of the navigation wrapper if position: fixed changed to :relative to delete the menu above (dashboard) everything is

scrollable

Page 5: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Whitespace between (‘dashboard-menu’ and ‘edit current map’)

usr/local/nagios/share/stylesheets/opsview2.css

#wrapper_top_push_down { /* This is wrapper_nav + wrapper_page_nav height + wrapper_page_nav padding-top */height: 25px;}

#wrapper_top_push_down.noheader { /* wrapper_page_nav height + wrapper_page_nav padding- top */

height: 25px;}

To delete the whitespace between dashboard-menu and edit current map alter the height (must be the same height as the dashboard-menu =25px)

Admin menu: access profile en logout

/usr/local/opsview-web/root/navmenu/cta-help.html

<p><h3>[% IF logged_in -%] <p>[% login_message %]</p> [% IF asuser %] <p>[% c.loc("ui.user.viewingAs [_1]", asuser.name) | html %]</p> [% END; # IF asuser %]<p><a href="[% c.uri_for("/logout").path | html %]" class="opsview_statusline">[% c.loc("ui.label.logout") | html %]</a></p> [% ELSE %]<p><a href="[% c.uri_for("/login").path | html %]" class="opsview_statusline">[% c.loc("ui.label.login") | html %]</a></p> [%- END -%]</h3></p>

Alter the location of Admin: access profile en logout will be placed in the help-menu

Page 6: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Delete the OPSVIEW menu (logo, header etc.)

/usr/local/opsview-web/root/navmenu/megamenu

copy/paste the altered file: megamenu

File overrides variables

usr/local/nagios/etc/opsview/opsview.conf

this file overrides variables from opsview.defaults and will not be overwritten on upgradesdoesn’t work with me, but I added it in case you wanted to know its location

The height of the screen (Nagvis)

/usr/local/opsview-web/root/nagvis/index.tt

<iframe style="height:1020px; width: 100%" frameborder="0" marginheight="0" marginwidth="0" id="nagvis_frame" name="nagvis_frame" scrolling="no" width="100%" height="2000" src="../nagvis/nagvis/index.php"></iframe>

to shorten the image (no more white space when the image ends… alter the height of the iframe)http://lists.opsview.org/lurker/message/20120809.173946.0f3d8951.nl.html

Page 7: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Send email on alert

Not necessary to alter this file: /usr/local/nagios/libexec/notifications/com.opsview.notificationmethods.email.tt

http://docs.opsview.com/doku.php?id=opsview-community:notificationmethodshttp://www.opsview.com/forum/opsview-community-edition/how-do-i/how-do-i-send-notifications-emailhttp://www.opsview.com/forum/opsview-community-edition/getting-started/mail-alerts

Just alter the data in Opsview (website)Opsview>settings>contacts>list I added Its (just give it a name), and alter the settings of Personal to your choosing

Page 8: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Click on personel

Page 9: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Logo Login

/usr/local/nagios/share/images/ OpsviewCommunityLogo-large.png

To change the logo (login page) Save original OpsviewCommunityLogo-large.png create your own logo in for example Photoshop save it (use the same naming intervention) alter the name of the original image upload your new image

After the update you have to re-upload the image and overwrite the old image

Map Rotation Tools

the browser switches between maps /usr/local/nagios/nagvis/etc/nagvis.ini.php; Enable/Disable rotation listing; Opsview patch - we disable it for now as you cannot configure rotations from the UI (0)showrotations=1

; in this example the browser switches between the maps __automap and opsview_interface every 5seconds, the rotation is enabled by url: index.php?rotation=Opsview_interface[rotation_Opview_interface]; These steps are rotated. The "Opsview_interface:" is a label which is being displayed in the index pages rotation list.maps="__automap, Opsview_interface:Opsview_interface"; rotation interval (seconds)interval=5

__automap.cfg en Opsview_interface.cfg (use the same names as the files that are located in the map

/usr/local/nagios/nagvis/etc/maps

Page 10: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

http://192.168.0.2/nagvis/docs/en_US/nagvis_config_format_description.htmlhttp://docs.nagvis.org/1.5/en_US/user_interface.html

Now you have 1 rotation in your pool

Monitoring system on IPhone/Smartphone via IOS or Android:

http://www.opsview.com/technology/downloads/extras/opsview-mobile?hosthash=D57D2BE9F36E5C9692A709B998C8EFA2&uuid=4B764C60-8A28-11E2-8562-E0138AE1761D

http://www.opsview.com/forums/opsview-core/opsview-mobile

http://www.opsview.com/technology/downloads/extras/cool-stuff

Page 11: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

MRTG

http://www.opsview.com/technology/guides-help/module-configuration

MRTG, or Multi Router Traffic Grapher, is a project which provides basic input/output traffic information for devices that communicate via SNMP.

http://www.opsview.com/technology/guides-help/module-configuration

only available on Opsview Pro/Enterprise

Change the SOUNDS for warning/critical/up etc.

/usr/local/nagios/nagvis/nagvis/sounds

Upload the soundtracks (+- 1 sec) preferable mp3 or wav format Before the upload, alter the root in nagios!!!! Then select your audio file and press upload

/usr/local/nagios/nagvis/nagvis/includes/js/nagvis.js change the names and format for your soundtracks in this file

Don’t forget to empty your browsers cache and reload config in Opsview

Page 12: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

UPGRADE OPSVIEW

In Linux: SUDO dpkg-reconfigure console-data (as root)

/etc/apt/sources.list

In etc/apt/sources.list.d/opsview.list

https://.....

copy/paste it to etc/apt/ sources.list

In linux command:Upgrade by running as root user: (?-> shift= en !->shift&) in quertyapt-get updateapt-get install opsview

NOTE: All FILES FOR THE INTERFACE WILL ALTER AFTER THE UPDATE EVERYTHING IN PURPLE NEEDS TO BE RESET

Page 13: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Forgotten Root Paswoord?

Go to Opsview modules/webmin (enter your password and username both are conf

Go to system > change password

.click on root and change your paswoord

Page 14: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

Change and create new maps and images

Modules > Nagvis > edit current map

Right Click >manage >maps

Fill in all data for ‘create map’ and click ‘create’Select your new map > edit current map > click right > manage > backgrounds

Upload background image > choose an image > Click upload > close thisRight click > options

Page 15: isabelaerts.files.wordpress.com€¦ · Web viewwebmin (in . Opsview. website) user: confpasw: conf. Others/file manager/ usr /local/ nagios / nagvis / nagvis /images/ iconsets. Icons.

- Select your new image map_image-Select on iconset you like or created iconset =mini

Click save

To place icons on the image: click right > add object >icon> hostPlace the mouse on the icon > click modifyChange the hostname, position of the icon (x,y), the iconset> save this