Add own Iconsets

Example

Your boss is coming in and telling you that a technician needs a map with more than 250 hosts clearly laid out. You think: “Hey, that’s not possible, with a full description for every host!” The font in the background image is not the problem, but the std_small-iconset from NagVis is too big for such a request.

Solution

Build your own iconset.

What is an iconset?

A complete iconset consists of 14 files. These files are png images which are named like this:

Filename Description
<set>_ack.png Acknowledged host problem
<set>_critical.png Critical state
<set>_down.png Down state (Host)
<set>_downtime.png Some host state in downtime (Host)
<set>_error.png Error while fetching status
<set>_ok.png OK state
<set>_pending.png PENDING state
<set>_sack.png Acknowledged service problem
<set>_sdowntime.png Some service state in downtime
<set>_unchecked.png Unchecked service (pending)
<set>_unknown.png Unknown state
<set>_unreachable.png Unreachable state (Host)
<set>_up.png Up state (Host)
<set>_warning.png Warning state

NagVis checks for the <set>_ok.png image to list the iconsets, means there has to be at least a <set>_ok.png image to have a choosable iconset.

Which programme should I use to create an iconset?

Almost every graphic art software has the ability to build PNG-files. In this example Photoshop is used to create a smaller version of the std_small iconset called std_mini.

Iconset Icon size icon map
std_small 16×16 pixel

mini 9×9 pixel

Implementing the iconset

To implement the set in your NagVis installation, copy all files to the iconset folder (share/userfiles/images/iconsets).

The test

Open one of your maps and add a new host-icon. You should now be able to select std_mini as iconset.