NRPE Checks Give false Positive

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE Checks Give false Positive

Post by tgriep »

These are the commands that are failing to that Windows server.

Code: Select all

Failed to execute command: PSCheckSystemEventLog
Failed to execute command: check_tasksched
The following error was generated by a check from the Nagios server but the command is not defined in the nsclient.ini file causing the unknown command message.

Code: Select all

Unknown command(s): pscheckapplicationeventlog
It looks like the problem is with how the commands are defined in the nsclient.ini file on that server so make sure they are correct and that the powershell scripts on that server exist and that they can be run on the server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE Checks Give false Positive

Post by kwhogster »

which machine are you pointing to ?

I will post the nsclient.ini so we can review it
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE Checks Give false Positive

Post by tgriep »

Those errors came from the nsclient.log file from your post from Wed Mar 22, 2017 7:36 pm.
What system did that file come from?
Be sure to check out our Knowledgebase for helpful articles and solutions!
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE Checks Give false Positive

Post by kwhogster »

this is happening again and again

Does anyone on this forum have an answer

Why is it when I post a serious problem nothing gets answered

All the vms just posted a false error on all nrpe checks

How about a solution?


This is a Nagios issue.

I hate Linux cant you run Nagios on a windows system

all my problems are with Linux machines my other posting is about Linux issues also again no answers on that one either.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NRPE Checks Give false Positive

Post by avandemore »

I don't see the nsclient.ini or the answer to tgriep's question:
What system did that file come from?
Did you provide them to someone else?
Previous Nagios employee
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE Checks Give false Positive

Post by kwhogster »

They are coming from every bloody VM on the network not just one

Every dam nrpe check times out with 120 secs

Do I need to upgrade nrpe?

Is Nagios just not the right tool for this?

What is up with Nagios

Does it need to be a physical machine or can it be a VM ? I asked this before no answer

is version 4.1 core no good?

cant be the config has to be the core product

Does the Ubuntu machine need more resources if so what is the requirements
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE Checks Give false Positive

Post by kwhogster »

I believe all these false positive errors are caused by the load on the Nagios server

The only thing running in this server is Nagios

When I run Top it shows different number from what the cpu load shows on the server from Nagios

on Nagios CRITICAL - load average: 0.76, 6.25, 5.08

TOP

top - 23:33:22 up 13 days, 5:43, 2 users, load average: 0.27, 2.62, 3.82
Tasks: 207 total, 1 running, 206 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.2 us, 0.3 sy, 0.0 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8072636 total, 946920 free, 5619396 used, 1506320 buff/cache
KiB Swap: 8286204 total, 8286204 free, 0 used. 2056836 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

very different

the Nagios server is a little sluggish at this time but I am using ssh to connect to it.

Thoughts
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE Checks Give false Positive

Post by tgriep »

It could be the load of the server causing the issue as well as the version of Nagios Core.
Try and upgrade Core to the latest version which you can find in this link below.
https://www.nagios.org/downloads/nagios ... 1490878378

Without seeing the errors, log files and how the system is configured, it is difficult to help out.
If you have the issue again, the first thing you can do is to post the nagios.log file which, on a default install, can be found in this folder.

Code: Select all

/usr/local/nagios/var
That is the current days log so to post a log file from a previous day, you would find them in this folder.

Code: Select all

/usr/local/nagios/var/archives
Be sure to check out our Knowledgebase for helpful articles and solutions!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Checks Give false Positive

Post by rkennedy »

kwhogster wrote:They are coming from every bloody VM on the network not just one

Every dam nrpe check times out with 120 secs

Do I need to upgrade nrpe?

Is Nagios just not the right tool for this?

What is up with Nagios

Does it need to be a physical machine or can it be a VM ? I asked this before no answer

is version 4.1 core no good?

cant be the config has to be the core product

Does the Ubuntu machine need more resources if so what is the requirements
Nagios is the right tool. Personally, I think you need to learn how to administer the environments you're working with, AND THEN learn how to use Nagios. I feel like you're throwing all sorts of noodles at a wall and seeing what sticks. This leads to countless rabbit holes, and plenty of wasted time all around.

Many of these books may help you -
https://www.amazon.com/s/ref=nb_sb_noss ... Ck%3Alinux
https://www.amazon.com/s/ref=nb_sb_noss ... ows+server
https://www.amazon.com/s/ref=nb_sb_noss ... rds=nagios
Former Nagios Employee
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRPE Checks Give false Positive

Post by mcapra »

@kwhogster let us know if you have additional questions regarding this!
Former Nagios employee
https://www.mcapra.com/
Locked