AW: NSCLIENT "Malformed request or internal error. Check EventLog:Non e&2&1"
Scholten, Thomas
ThomasScholten at schmuecker.de
Thu Apr 24 12:07:50 CEST 2003
Hello Stefan,
i just solved this error by using the lodctr Tool. May be lodctr
c:\winnt\system32\infoctrs.ini could help to restore the counters. For
sanity you should check before with the perfmon Tool if the Processor
Counters are avaiable. In this case check the mails of Sandro Vaz who has
posted some more hints in this list.
hope it helps
Thomas
-----Ursprüngliche Nachricht-----
Von: Schindewolf, Stefan, Infraserv-Hoechst/DE
[mailto:Stefan.Schindewolf at Infraserv.com]
Gesendet: Donnerstag, 17. April 2003 14:38
An: 'nagios-users at lists.sourceforge.net';
'nagiosplug-devel at lists.sourceforge.net'; 'rubiyz1047 at swyz.com'
Betreff: [Nagios-users] NSCLIENT "Malformed request or internal error.
Check EventLog:Non e&2&1"
Hello.
The problem occurs with NSCLIENT 1.07.1
I received the following error, that has been concerning several people on
the list:
The command line is something like: "/usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v CPULOAD -l 1,85,95,5,75,85,15,55,75"
The output is: "Malformed request or internal error. Check
EventLog:None&2&1"
The output of event log is: "Division by zero"
We tracked it down to line 250 in uNSCLIENT.pas:
REQ_CPUTOTAL: FindAnswer:=
IntToStr(CPUBuffer.GetAverage(StrToIntDef(asArgv[2],60)*12));
It must be the GetAverage call because everything else could not raise this
exception.
We suppose CPUBuffer.GetAverage is a win32 api call !?
Can we sue MS for that "division by zero" stuff?
On some hosts (running service pack 2) there is no problem.
We tried to call the windows performance counters directly
(""/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v COUNTER ...")
but are only receiving either 100% or 0% CPULOAD, depending on our
parameters.
Has anyone a clue how to workaround it?
Thanks in advance and best regards.
> Mit freundlichen Grüßen
>
> Stefan Schindewolf
>
> Infraserv GmbH & Co Höchst KG
> Service Center Informationstechnologie
> D710, D-65926 Frankfurt
> Telefon: (069)305 - 43870
> Fax: (069)305 - 23549
> Mail: stefan.schindewolf at infraserv.com
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list