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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
talalmog
Posts: 18
Joined: Thu Jan 24, 2019 5:20 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
talalmog
Posts: 18
Joined: Thu Jan 24, 2019 5:20 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
talalmog
Posts: 18
Joined: Thu Jan 24, 2019 5:20 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

Are you just seeing this when monitoring a single system, or are you seeing it when connecting to any NCPA agent?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
talalmog
Posts: 18
Joined: Thu Jan 24, 2019 5:20 am

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

Post by talalmog »

hi,
i dont know how but it start functioning...
i'll ignore that issue till the next time
thank you anyway
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked