Bandwidth on passive host

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.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post by Jam1987 »

NRPE is there but isn't that an active service? Or will passive work for it?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth on passive host

Post by tgriep »

Check_nrpe is active.
Which performance counters do you want to monitor?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post by Jam1987 »

Sending and receiving would be my go to choices.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Bandwidth on passive host

Post by Box293 »

So using NSCA, you would need two passive services, one called "NIC Sent" and "NIC Received".

Then in your nsclient.ini file you would define something like:

Code: Select all

[/settings/scheduler/schedules]
NIC Sent = CheckCounter 'Counter:Bytes Sent/sec=\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Sent/Sec' ShowAll MaxWarn=786432000 MaxCrit=943718400
NIC Received = CheckCounter 'Counter:Bytes Received/sec=\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Received/Sec' ShowAll MaxWarn=786432000 MaxCrit=943718400
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post by Jam1987 »

Hey guys, sorry for the delay. Got hit by a truck while biking last week so not been able to do anything until today. I will jump on your suggestions right away.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Bandwidth on passive host

Post by hsmith »

Jam1987 wrote:Hey guys, sorry for the delay. Got hit by a truck while biking last week so not been able to do anything until today. I will jump on your suggestions right away.
Wow, sorry to hear that :( . Glad you're in good enough condition to come back to us though! Just let us know what happens.
Former Nagios Employee.
me.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post by Jam1987 »

Is there a module I have to enable on the NSClient++ for the data checking, I keep getting the following error:

Code: Select all

error:D:\source\nscp\modules\Scheduler\Scheduler.cpp:74: Exception in Failed to add target: NIC Received: unknown escape sequence
2015-08-24 11:15:37: error:D:\source\nscp\modules\Scheduler\Scheduler.cpp:74: Exception in Failed to add target: NIC Sent: unknown escape sequenc
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth on passive host

Post by tgriep »

You will have to edit the example that Box293 provided with the name of the Ethernet Interface that is installed on your Windows systems, you cannot use the example.
That could be why it is failing for you.
If you did change the interface name, can you post the settings?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post by Jam1987 »

tgriep wrote:You will have to edit the example that Box293 provided with the name of the Ethernet Interface that is installed on your Windows systems, you cannot use the example.
That could be why it is failing for you.
If you did change the interface name, can you post the settings?
I changed the interface in the settings, attached is my nsclient++ config file. I used the name given in the device manager on the Windows unit.
Attachments
nsclient.ini
(8.06 KiB) Downloaded 138 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth on passive host

Post by tgriep »

Try changing the 2 commands from

Code: Select all

NIC Sent = CheckCounter 'Counter:Bytes Sent/sec=\Network Interface(Intel(R) 82583V Gigabit Network Connection)\Bytes Sent/Sec' ShowAll MaxWarn=70000 MaxCrit=75000
NIC Received = CheckCounter 'Counter:Bytes Received/sec=\Network Interface(Intel(R) 82583V Gigabit Network Connection)\Bytes Received/Sec' ShowAll MaxWarn=70000 MaxCrit=75000
to

Code: Select all

NICSent = CheckCounter "Counter:Bytes Sent/Sec=\\Network Interface(Intel[R] 82583V Gigabit Network Connection)\\Bytes Sent/Sec" ShowAll MaxWarn=70000 MaxCrit=75000
NICReceived = CheckCounter "Counter:Bytes Received/Sec=\\Network Interface(Intel[R] 82583V Gigabit Network Connection)\\Bytes Received/Sec" ShowAll MaxWarn=70000 MaxCrit=75000
Save out the changes and restart the NSClient++ service.
I had some issues using the single quotes and spaces in the name so that is why I changed to double quotes and removed the spaces.
Also, I think it is using the Square Brackets [] around the R for the registered trademark in the name.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked