I didn't see much info out there about a limit, but I did find this link, which (along with my findings in the status.log file) leads me to believe that the 330 character limit is imposed by Nagios per se, rather than the ndo2db add-on: <a href="http://tinyurl.com/4lpeog">http://tinyurl.com/4lpeog</a>.  I guess I'll be writing a less verbose check_disk plugin now...<br>
<br><div class="gmail_quote">On Mon, May 12, 2008 at 4:28 PM, Frank J. Gómez <<a href="mailto:frank@crop-circle.net">frank@crop-circle.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I confirmed this 330 character limit on another server.<br><br>However, I'm trying to determine whether the limit is being imposed by the ndo2db add-on or someplace else -- not that it matters, I guess... I'll probably just work around the limitation.  I noticed that the perfdata is also truncated in this file: /var/nagios/status.log.  I'm not sure where Nagios logs data though...<br>

<br>Anyone?<br><br>Thanks!<br><font color="#888888">-Frank</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Mon, May 12, 2008 at 3:42 PM, Frank J. Gómez <<a href="mailto:frank@crop-circle.net" target="_blank">frank@crop-circle.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I'm using Nagios 2.10 and the ndo2db add-on in a Gentoo environment, and I'm running into problems with the check_disk command, which I'm executing via NRPE.  I suspect I may actually be hitting a limitation of the ndo2db add-on, though...<br>


<br>In the Nagios config file for server1, I have:<br>define service{<br>
        host_name               server2,server1,server3<br>        service_description     disk usage<br>        check_command           check_nrpe!check_disk<br>        use                     serviceTemplate<br>}<br><br>



In the NRPE config file on server2, I have:<br>command[check_disk]=/usr/nagios/libexec/check_disk -w 40% -c 20%<br><br>In the database, the nagios_servicechecks table shows truncated perfdata for checks on server2.<br><br>



The "output" field is intact:<br>DISK CRITICAL - free space: / 3806 MB (16% inode=93%): /dev 1005 MB (100% inode=98%): /home 85167 MB (77% inode=99%): /usr/portage 85167 MB (77% inode=99%): /dev/shm 1005 MB (100% inode=100%):<br>



<br>However, the "perfdata" field is truncated:<br>/=19666MB;14082;18776;93;23471 /dev=0MB;602;803;97;1004 /home=25220MB;66232;88309;98;110387 /usr/portage=25220MB;66232;88309;98;110387 /<br><br>The database is set up to allow 255 characters for the "perfdata" field -- the above, truncated value is only 136 characters long.<br>



<br>When I run the following command from server1's CLI, I get what I expect, without truncation:<br><br>CLI:<br>/usr/nagios/libexec/check_nrpe -H dev -c check_disk<br><br>Result:<br>DISK CRITICAL - free space: / 3804 MB (16% inode=93%); /dev 1005 MB (100% inode=98%); /home 85167 MB (77% inode=99%); /usr/portage 85167 MB (77% inode=99%); /dev/shm 1005 MB (100% inode=100%);| /=19667MB;14082;18776;93;23471 /dev=0MB;602;803;97;1004 /home=25220MB;66232;88309;98;110387 /usr/portage=25220MB;66232;88309;98;110387 /dev/shm=0MB;602;803;99;1004<br>



<br>The CLI result is 357 characters long.  If you truncate it where the truncation occurs in the database, you end up with a string exactly 330 characters long.  I wonder if that is some sort of magic number for the ndo2db add-on.  I suspect that there isn't any such limitation in the check_disk or check_nrpe commands themselves, since the full output is displayed when called from the command line.<br>


<br>I hope I didn't supply so much detail that nobody bothers to read this!  Has anyone experienced something similar?<br><font color="#888888">-Frank<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>