Page 3 of 4

Re: NRPE Checks Give false Positive

Posted: Fri Mar 24, 2017 10:48 am
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.

Re: NRPE Checks Give false Positive

Posted: Fri Mar 24, 2017 7:00 pm
by kwhogster
which machine are you pointing to ?

I will post the nsclient.ini so we can review it

Re: NRPE Checks Give false Positive

Posted: Mon Mar 27, 2017 9:36 am
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?

Re: NRPE Checks Give false Positive

Posted: Wed Mar 29, 2017 3:48 pm
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.

Re: NRPE Checks Give false Positive

Posted: Wed Mar 29, 2017 4:58 pm
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?

Re: NRPE Checks Give false Positive

Posted: Wed Mar 29, 2017 5:37 pm
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

Re: NRPE Checks Give false Positive

Posted: Wed Mar 29, 2017 10:34 pm
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

Re: NRPE Checks Give false Positive

Posted: Thu Mar 30, 2017 1:38 pm
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

Re: NRPE Checks Give false Positive

Posted: Mon Apr 03, 2017 10:22 pm
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

Re: NRPE Checks Give false Positive

Posted: Tue Apr 04, 2017 11:06 am
by mcapra
@kwhogster let us know if you have additional questions regarding this!