Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: truncate string to byte count

by morgon (Priest)
on Feb 28, 2019 at 10:02 UTC ( #1230660=note: print w/replies, xml ) Need Help??

in reply to Re: truncate string to byte count
in thread truncate string to byte count

It is not an XY-Problem.

It's the actual problem at hand.

The backgound is a program that implements a (passive) check for a monitoring system where you need to write your message to a pipe but the monitoring system imposes a byte-limit on the message.

Replies are listed 'Best First'.
Re^3: truncate string to byte count
by karlgoethebier (Abbot) on Mar 01, 2019 at 10:03 UTC

    Sounds like it is Nagios. Can‘t you modify the output length of your checks in the database? Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1230660]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2023-03-21 17:12 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.