Skip to main content

Hi,

We’ve got a question/suggestion about the « formatting » node and outputs messages of virtual curves.

Let’s say 2 virtual curves are defined for traffic network, summing incoming interfaces on one hand, outgoing on the other. Since the same printf_msg is used for each virtual curve, it has to be generic. So, just reading the « status information », one can’t figure out which one is the incoming traffic an which is the outgoing.
Ex of current output:
Status information
OK: Traffic on data interfaces is OK
Traffic SUM is: 15.32 Mb/s
Traffic SUM is: 7.82 Mb/s

Figuring it out requires to get to the « performance data » and is neither explicit nor convenient.

Persona : ITOps teams

Problem to solve : same output message for all the set of metrics of a virtual curves service

Expected outcome : customize output of virtual curves services

Potential solution :

Offer possibility to define a « comment » entry in the virtual curves definition section with free entry.

Ex :
"virtualcurve": {
        "sum_traffic_in": {
            "pattern": "^traffic_in$",
            "aggregation":"sum",
            "comment":"IN"
        },
        "sum_traffic_out": {
            "pattern": "^traffic_out$",
            "aggregation":"sum",
            "comment":"OUT"
        }
    }

Then formatting node could be :

"formatting": {
        "change_bytes_network": 1,
        "custom_message_global": "Traffic on data interfaces is OK",
        "printf_msg": "Traffic %s SUM is: %s %s/s",
        "printf_var": "$self->{result_values}->{comment},$self->{result_values}->{value}, $self->{result_values}->{unit}"
    }

And expected result

Status information
OK: Traffic on data interfaces is OK
Traffic IN SUM is: 15.32 Mb/s
Traffic OUT SUM is: 7.82 Mb/s

Regards

 

Very nice one, we’ll add this in the next release. 

 

Thanks


NewIn Backlog

Hi,

Any news about a release date ?

Thanks.


In BacklogDiscussion ongoing

We’ll reach out to you to further define the need and evaluate the best solution.


Discussion ongoingNeeds Votes

i voted for the topic, It would be nice to be able to have different texts depending on the different virtual curves.

 

I also would have the possiblity to use the output variables in "custom_message_global".
Today in 24.04.7, I do not know how to make a short-output that displays the values ​​of several curves.

The "custom_message_global" seem static.


And as soon as I have several curves, the values ​​fall into separate news lines therefore in the long-output which is not displayed in the status resource tables.

 

Thanks a lot


@FredericGerard 

for your problem of printf label IN or OUT, I found this solution.

Informations d'état étendues
sum_traffic_in: 6.15 Gb/s
sum_traffic_out: 1.42 Gb/s

 

    "virtualcurve": {
        "sum_traffic_in": {
            "pattern": "^traffic_in$",
            "aggregation":"sum"
        },
        "sum_traffic_out": {
            "pattern": "^traffic_out$",
            "aggregation":"sum"
        }
    },

 

    "formatting": {
        "change_bytes_network": 1,
        "custom_message_global": " ",
        "printf_msg": "%s: %s %s/s",
        "printf_var": "$self->{result_values}->{instance}, $self->{result_values}->{value}, $self->{result_values}->{unit}"
    }

 

however I still don't know how to display this on one line for the short-output…

Does anyone have the solution?