get more details about an error

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.
Locked
Hoygen83
Posts: 16
Joined: Mon Oct 28, 2019 10:30 am

get more details about an error

Post by Hoygen83 »

Hello,
I would like to understand what I'm doing wrong.
I have a windows host that is signaled as down.
I followed this guide https://assets.nagios.com/downloads/nag ... ndows.html
the check that's having problems is this one:
CPU Usage
This service has 1 comment associated with it This service is flapping between states
UNKNOWN 10-29-2019 16:27:12 0d 0h 0m 54s 1/5 Incorrect credentials given.

What credentials are given, from who and where?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: get more details about an error

Post by benjaminsmith »

Hello,

Did you install and setup the NCPA agent on the Windows system. Do you have the correct password set in the check command in Nagios. Log into the terminal and try running the plugin directly from the shell. Post any errors to the thread. Thanks.

Code: Select all

cd /usr/local/nagios/libexec
check_ncpa.py -H 1<ipaddreess> -t 'password' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Hoygen83
Posts: 16
Joined: Mon Oct 28, 2019 10:30 am

Re: get more details about an error

Post by Hoygen83 »

benjaminsmith wrote:Hello,

Did you install and setup the NCPA agent on the Windows system. Do you have the correct password set in the check command in Nagios. Log into the terminal and try running the plugin directly from the shell. Post any errors to the thread. Thanks.

Code: Select all

cd /usr/local/nagios/libexec
check_ncpa.py -H 1<ipaddreess> -t 'password' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
I'm sure I'm missing something.
I installed the ncpa agent version 2.2.0 on the windows machine.
During the installation, since I'm still testing the product I set up a token, I did not set up a bind ip because I don't know what it is, then I clicked next and next and next.

if I give this command:
check_ncpa.py -H 1<10.100.0.8> -t 'password' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
I get
-bash: 10.100.0.8: No such file or directory

Now I have even more questions: what is the password and where (in what file on the host and on the nagios server) I define it?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: get more details about an error

Post by scottwilkerson »

Pardon my colleagues typo error. You would run

Code: Select all

./check_ncpa.py -H 10.100.0.8 -t 'password' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Hoygen83
Posts: 16
Joined: Mon Oct 28, 2019 10:30 am

Re: get more details about an error

Post by Hoygen83 »

Hello,
thank you for clearing it.

if I give

Code: Select all

./check_ncpa.py -H 10.100.0.8 -t 'password' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
Incorrect credentials given.
what password should i insert? the one of a local administrator in the windows machine?

Anyway I repeated the procedure following this guide:
https://assets.nagios.com/downloads/nag ... ndows.html
and now I have NO credentials error on nagios.
so as I suspected I was doing something wrong.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: get more details about an error

Post by scottwilkerson »

Hoygen83 wrote:what password should i insert? the one of a local administrator in the windows machine?
this is the token you setup when installing NCPA
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked