Page 1 of 1

UNKNOWN: Error occurred while running the plugin. Use the ve

Posted: Thu Jan 31, 2019 9:05 am
by talalmog
few Nagios Agents return an error:
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details.

when checking with verbose flag it return:
An error occurred:<urlopen error [Errno 104] Connection reset by peer

any one experience the same error?

Nagios XI Installed Version: 5.5.5
Nagios Core 4.4.2

Re: UNKNOWN: Error occurred while running the plugin. Use th

Posted: Fri Feb 01, 2019 11:32 am
by scottwilkerson
I'm not sure what plugin you are using, but it looks like it is a http check if you are getting "Connection reset by peer"

Can you curl the URL from the XI server and get expected results?

Code: Select all

curl -vvv http://yourhost.com/

Re: UNKNOWN: Error occurred while running the plugin. Use th

Posted: Sun Feb 03, 2019 3:32 am
by talalmog
im just using the check ncpa.py with some checks, for example: CPU
/usr/local/nagios/libexec/check_ncpa.py -H ServerName -t TokenName -T 59 -M 'cpu/percent' -v
An error occurred:<urlopen error [Errno 104] Connection reset by peer>

when i used the line you sent, this is what i got:
curl -vvv https://ServerName:5693

* About to connect() to ServerName port 5693 (#0)
* Trying 10.215.8.30...
* Connected to ServerName (IP) port 5693 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none

Re: UNKNOWN: Error occurred while running the plugin. Use th

Posted: Mon Feb 04, 2019 12:22 pm
by scottwilkerson
So it is unable to make the connection.

Is the NCPA service running?

Is there a firewall that could be blocking connection on port 5693?

Re: UNKNOWN: Error occurred while running the plugin. Use th

Posted: Tue Feb 05, 2019 5:32 am
by talalmog
the NCPA is running on the agent and FW is open on port 5963

i can telnet to the target on that port

Re: UNKNOWN: Error occurred while running the plugin. Use th

Posted: Tue Feb 05, 2019 11:20 am
by scottwilkerson
Are you just seeing this when monitoring a single system, or are you seeing it when connecting to any NCPA agent?

Re: UNKNOWN: Error occurred while running the plugin. Use th

Posted: Wed Feb 06, 2019 8:59 am
by talalmog
hi,
i dont know how but it start functioning...
i'll ignore that issue till the next time
thank you anyway

Re: UNKNOWN: Error occurred while running the plugin. Use th

Posted: Wed Feb 06, 2019 10:05 am
by scottwilkerson
talalmog wrote:hi,
i dont know how but it start functioning...
i'll ignore that issue till the next time
thank you anyway

Ok,

Locking thread