<br><font size=2 face="sans-serif">Stefan,</font>
<br>
<br><font size=2 face="sans-serif">I too have that problem which seems
to be very intermittent. If I reduce the number of checks or rasie the
time between checks then it seems to get better. </font>
<br>
<br><font size=2 face="sans-serif">Unfortunately I am not much of a programmer
to help - but if you should find a way around, please let me know !!</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">Matthew</font>
<br>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Schindewolf, Stefan,
Infraserv-Hoechst/DE" <Stefan.Schindewolf@Infraserv.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: nagios-users-admin@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">17/04/2003 13:37</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">"'nagios-users@lists.sourceforge.net'"
<nagios-users@lists.sourceforge.net>, "'nagiosplug-devel@lists.sourceforge.net'"
<nagiosplug-devel@lists.sourceforge.net>, "'rubiyz1047@swyz.com'"
<rubiyz1047@swyz.com></font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[Nagios-users] NSCLIENT "Malformed
request or internal error. Check EventLog:Non e&2&1"</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hello.<br>
<br>
The problem occurs with NSCLIENT 1.07.1<br>
I received the following error, that has been concerning several people
on<br>
the list:<br>
<br>
The command line is something like: "/usr/local/nagios/libexec/check_nt
-H<br>
$HOSTADDRESS$ -v CPULOAD -l 1,85,95,5,75,85,15,55,75"<br>
The output is: "Malformed request or internal error. Check<br>
EventLog:None&2&1"<br>
The output of event log is: "Division by zero"<br>
<br>
We tracked it down to line 250 in uNSCLIENT.pas:<br>
REQ_CPUTOTAL: FindAnswer:=<br>
IntToStr(CPUBuffer.GetAverage(StrToIntDef(asArgv[2],60)*12));<br>
It must be the GetAverage call because everything else could not raise
this<br>
exception.<br>
<br>
We suppose CPUBuffer.GetAverage is a win32 api call !?<br>
Can we sue MS for that "division by zero" stuff?<br>
<br>
On some hosts (running service pack 2) there is no problem.<br>
We tried to call the windows performance counters directly<br>
(""/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v COUNTER
...")<br>
but are only receiving either 100% or 0% CPULOAD, depending on our<br>
parameters.<br>
<br>
Has anyone a clue how to workaround it?<br>
<br>
Thanks in advance and best regards.<br>
<br>
<br>
> Mit freundlichen Grüßen<br>
> <br>
> Stefan Schindewolf<br>
> <br>
> Infraserv GmbH & Co Höchst KG<br>
> Service Center Informationstechnologie<br>
> D710, D-65926 Frankfurt<br>
> Telefon: (069)305 - 43870<br>
> Fax: (069)305 - 23549<br>
> Mail: stefan.schindewolf@infraserv.com<br>
> <br>
> <br>
<br>
<br>
-------------------------------------------------------<br>
This sf.net email is sponsored by:ThinkGeek<br>
Welcome to geek heaven.<br>
http://thinkgeek.com/sf<br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-users<br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
_____________________________________________________________________<br>
This e-mail has been scanned for viruses by the uuNet Internet Managed
Scanning Service - powered by MessageLabs.<br>
</tt></font>
<br>