ncpa agent

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

ncpa agent

Postby biem » Thu Nov 30, 2017 3:15 pm

Hi all!

I installed nagios NCPA agent on windows 2008r2 server.
It's all ok after installation of vc++ redist, but when i query api for "Interface"
i can see only packet transmitted/received, but not Bytes...
Same problem on windows 2012r2.

Agent Information
Version 2.0.6

here is what i see:

{
"Local Area Connection": {
"packets_sent": [
18131458,
"packets"
],
"dropin": [
0,
"packets"
],
"bytes_recv": [
0,
"B"
],
"packets_recv": [
40304477,
"packets"
],
"errin": [
0,
"errors"
],
"dropout": [
0,
"packets"
],
"bytes_sent": [
0,
"B"
],
"errout": [
0,
"errors"
]
}
}

Why this?

Thank's a lot!
biem
 
Posts: 1
Joined: Thu Nov 30, 2017 5:38 am

Re: ncpa agent

Postby lmiltchev » Fri Dec 01, 2017 11:39 am

NCPA gets the data from the Windows Performance Counters via the psutil. It is possible that you have an issue with these counters. Do you see sent/received bytes when you open the "Performance Monitor" on your Windows server?

You can try rebuilding the Windows Performance Counters to see if this is going to fix the issue:
https://support.microsoft.com/en-us/help/2554336/how-to-manually-rebuild-performance-counters-for-windows-server-2008-6

I would also recommend rebooting the Windows server after you rebuild the counters.

If this doesn't fix the issue, post the entire "ncpa_listener.log", usually located in "C:\Program Files (x86)\Nagios\NCPA\var\log\" directory. Also, run the following commands on the nagios server in the CLI (from the plugins directory), and show the output:

Code: Select all
./check_ncpa.py -H <ip address> -t '<token>' -M 'interface/Local Area Connection/bytes_recv' -v
./check_ncpa.py -H <ip address> -t '<token>' -M 'interface/Local Area Connection/bytes_sent' -v
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 9775
Joined: Mon May 23, 2011 12:15 pm


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 1 guest