Page 2 of 5

Re: Bandwidth on passive host

Posted: Fri Aug 14, 2015 2:00 pm
by Jam1987
NRPE is there but isn't that an active service? Or will passive work for it?

Re: Bandwidth on passive host

Posted: Fri Aug 14, 2015 2:05 pm
by tgriep
Check_nrpe is active.
Which performance counters do you want to monitor?

Re: Bandwidth on passive host

Posted: Fri Aug 14, 2015 2:25 pm
by Jam1987
Sending and receiving would be my go to choices.

Re: Bandwidth on passive host

Posted: Sun Aug 16, 2015 7:24 pm
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

Re: Bandwidth on passive host

Posted: Mon Aug 24, 2015 8:51 am
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.

Re: Bandwidth on passive host

Posted: Mon Aug 24, 2015 9:44 am
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.

Re: Bandwidth on passive host

Posted: Mon Aug 24, 2015 10:28 am
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

Re: Bandwidth on passive host

Posted: Mon Aug 24, 2015 1:48 pm
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?

Re: Bandwidth on passive host

Posted: Mon Aug 24, 2015 2:36 pm
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.

Re: Bandwidth on passive host

Posted: Mon Aug 24, 2015 3:16 pm
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.