Giter VIP home page Giter VIP logo

Comments (5)

atc0005 avatar atc0005 commented on June 1, 2024

The same holds true for MS Teams notifications.

from check-vmware.

atc0005 avatar atc0005 commented on June 1, 2024

I just double-checked and I see that the brackets are present in the web UI, so this might be a Nagios-specific setting. Maybe Nagios is attempting to sanitize text in outgoing notifications?

from check-vmware.

atc0005 avatar atc0005 commented on June 1, 2024

I'm not sure if this is due to a Nagios-specific setting or if tabwriter or fmt.Fprintf are encoding the angle brackets somehow.

Looks like it is a Nagios setting:

# ILLEGAL MACRO OUTPUT CHARACTERS
# This option allows you to specify illegal characters that are
# stripped from macros before being used in notifications, event
# handlers, etc. This DOES NOT affect macros used in service or
# host check commands.
# The following macros are stripped of the characters you specify:
# $HOSTOUTPUT$
# $HOSTPERFDATA$
# $HOSTACKAUTHOR$
# $HOSTACKCOMMENT$
# $SERVICEOUTPUT$
# $SERVICEPERFDATA$
# $SERVICEACKAUTHOR$
# $SERVICEACKCOMMENT$
illegal_macro_output_chars=`~$&|'"<>

from check-vmware.

atc0005 avatar atc0005 commented on June 1, 2024

from check-vmware.

atc0005 avatar atc0005 commented on June 1, 2024

It's worth dropping the pre tags entirely and instead experimenting with tabs, or another formatting option. If needed just a straight list of VMs with values in parenthesis or brackets would do.

Something like:

* Ubuntu-MATE-18.04-disk-test-RES-DC1-S6200-vol12  [Size: 29.1GB, Datastore Usage: 0.06%]

It's simple, gets the point across. It will be a little jarring to see the saw-toothed appearance on the right side due to varied length of VM names, but it's most likely to be accepted as-is without munging by systems in-between the plugin and the final recipient.

from check-vmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.