Full Disk Metrics - Text Getting Truncated
Posted: Thu Mar 03, 2016 1:11 am
Hi,
we are using one of the community plugins ( https://exchange.nagios.org/directory/P ... ks/details)
for getting the “Full Disk Usage” metric .
The data from the plugin is being pulled using the api url (http://XX.XX.XX.XX/nagiosxi/backend/?cm ... t=6bm9jkb0). This returns the usage of all the disk mount points.
The problem is when the number of disks attached to the machine are more, the output which comes in the <status-text></status-text> is trimmed. Looks like Nagios is not allowing more than 255 characters.
following is a sample response from the API -
<status_text>All drive usage is healthy. Drive(s) checked: N: (Used 122639 MB of 204818 MB, 59.88%), K: (Used 76653 MB of 143378 MB, 53.46%), J: (Used 36147 MB of 71698 MB, 50.42%), G: (Used 63654 MB of 102418 MB, 62.15%), F: (Used 6030 MB of 51218 MB, 11.77%), E: (Us</status_text>
If you look at the above response from the API the information related to drive E has been truncated.
Is there any way to get full status text?
Thanks
Parthiv
we are using one of the community plugins ( https://exchange.nagios.org/directory/P ... ks/details)
for getting the “Full Disk Usage” metric .
The data from the plugin is being pulled using the api url (http://XX.XX.XX.XX/nagiosxi/backend/?cm ... t=6bm9jkb0). This returns the usage of all the disk mount points.
The problem is when the number of disks attached to the machine are more, the output which comes in the <status-text></status-text> is trimmed. Looks like Nagios is not allowing more than 255 characters.
following is a sample response from the API -
<status_text>All drive usage is healthy. Drive(s) checked: N: (Used 122639 MB of 204818 MB, 59.88%), K: (Used 76653 MB of 143378 MB, 53.46%), J: (Used 36147 MB of 71698 MB, 50.42%), G: (Used 63654 MB of 102418 MB, 62.15%), F: (Used 6030 MB of 51218 MB, 11.77%), E: (Us</status_text>
If you look at the above response from the API the information related to drive E has been truncated.
Is there any way to get full status text?
Thanks
Parthiv