zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
586 stars 173 forks source link

Allow output width setting #90

Open jefft opened 6 years ago

jefft commented 6 years ago

nagios-cli appears to limit output to 100 characters wide. This means that some longer service statuses get truncated. It would be nice if the maximum width could be set in the configuration.

It appears that line width is hardcoded in commands/objects.py line 320:

    str(host.services[service].plugin_output)[:48]))

(PS: thanks for nagios-cli - I use it pretty much every day on servers where port-forwarding the Nagios HTTP interface is too cumbersome)