Hi again!
I would like to put some notes and urls in my host description. Of course i’m using “notes” and “notes_url” but I would like 1 note then 1 url and then another note followed by another url.
This is what it looks like in Nagios:
This is my icinga code right now :
notes = “‘Dell PowerEdge M1000e, Service Tag: FR04MJ1’ ‘DELL Warranty status Phone number: 1-800-456-3355’”
notes_url = “‘http://www.dell.com/support/home/ca/en/bsdt1/Products/?app=warranty ’ ‘https://techdirect.dell.com/Portal/Dashboard.aspx ’”
mcktr
(Michael Insel)
August 26, 2019, 7:57pm
2
Hi,
with Icinga Web 2.7.0 you can use Markdown flavored notes.
(the text here is a link for example)
The definition inside the Host object:
notes = {{{# Server
You can find more about the server [here](www.google.com)
# Hardware
This is a test box.}}}
The three curly braces {{{ }}} are the literals for multi-line strings.
You can put your note and URLs in one Markdown formatted text, this way you can have multiple links and notes for one host.
Cheers
Michael
6 Likes
@mcktr
Sorry to ask but are you sure?
I had to upgrade since I had 2.6 and I now have 2.7.1, however it is giving me an error.
mcktr
(Michael Insel)
August 27, 2019, 4:39pm
4
Can you please show us the error you got?
@mcktr
This is my code :
notes = {{{ abc
def
ghi
}}}
mcktr
(Michael Insel)
August 27, 2019, 5:15pm
6
Looks like the function mb_strlen() can’t be found. Did you installed the PHP extension mbstring?
Which operating system and version you are using?
Ubuntu 18.04
I have not installed mbstring but I will right now.
I installed the one called php-mbstring, does not change anything. There’s another one called php7.2-mbstring…maybe that one?
mcktr
(Michael Insel)
August 27, 2019, 5:30pm
9
Installing the package php-mbstring on Ubuntu 18.04 should install the package php7.2-mbstring since on Ubuntu this is the default php version afaik.
You need to restart the php-fpm process and/or your web server to fully enable the newly installed php mbstring package.
Restarting my server worked ! tks a lot
1 Like