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

Bandwidth on passive host

Post by Jam1987 »

Hi Guys,

Thanks again for all your help last time, I was wondering if you could help me out with another question. I was thinking of using Cacti if it's possible but I wanted to know if Nagios can monitor bandwidth and send an alarm when a units throughput/bandwidth usage reaches a certain MB which is defined in the service. Is this possible? The passive hosts I have setup now which are working great, I also added freshness checks so it works like a dream use data everyday and I wanted to be able to monitor them to make sure they don't go over a monthly allowed limit of 900mb. Is this possible in Nagios?

Thanks,
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth on passive host

Post by tgriep »

I haven't heard if the NSCLient++ can monitor bandwidth and send the results to the Nagios system. Is that what you are trying to achieve?
Are you looking more for the amount of data transferred over time?
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 »

Yeah I want to be able to set a quota where I'll get an email if a unit goes over a certain threshold. I looked into SNMP sending and Cacti but that doesn't seem to be usable in a passive, no public IP environment. I was hoping NSClient++ may be able to send SNMP data passively like it does with Nagios but I guess that can't be done and I can't find any checks for network traffic for it either.

I found a plugin that is called: check_iftraffice64 but that seems to be a Nagios plugin and without any input from the Windows host I guess it wont be able to populate data. Others say install syslog on the windows client and use that info to send but I also don't know if NSClient++ can send that kind of info either.
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:Yeah I want to be able to set a quota where I'll get an email if a unit goes over a certain threshold. I looked into SNMP sending and Cacti but that doesn't seem to be usable in a passive, no public IP environment. I was hoping NSClient++ may be able to send SNMP data passively like it does with Nagios but I guess that can't be done and I can't find any checks for network traffic for it either.

I found a plugin that is called: check_iftraffice64 but that seems to be a Nagios plugin and without any input from the Windows host I guess it wont be able to populate data. Others say install syslog on the windows client and use that info to send but I also don't know if NSClient++ can send that kind of info either.
Have you tried asking on the NSClient++ support forums?
Former Nagios Employee.
me.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post by Jam1987 »

Have you tried asking on the NSClient++ support forums?[/quote]

I have, I'm like the 7th one down on that link you sent. 9 views no answers. According to another forum Cacti needs an IP Address to talk to a client but seeing as my units don't have address on the local network that the Cacti Server is on and I don't have public IP or NOIP addresses for them (Cellular connection unable to achieve either), I don't think it is possible. I was hoping NSClient could send the info for the network traffic like it does for the cpu and mem info.

Does anyone know of any other Windows clients I could give a go that may do network traffic sending?
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 »

The best suggestion I can offer is using performance counters in NSClient++ and sending those results back using the NSCA module.

Here's some stuff on NSCA and Windows:
http://sites.box293.com/nagios/guides/n ... core-4-0-x
http://sites.box293.com/nagios/guides/n ... ient-0-4-x
http://sites.box293.com/nagios/guides/n ... efinitions

Here's some stuff on Network interfaces and performance coutners:
http://sites.box293.com/nagios/guides/c ... interfaces
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 »

Box293 wrote:The best suggestion I can offer is using performance counters in NSClient++ and sending those results back using the NSCA module.

Here's some stuff on NSCA and Windows:
http://sites.box293.com/nagios/guides/n ... core-4-0-x
http://sites.box293.com/nagios/guides/n ... ient-0-4-x
http://sites.box293.com/nagios/guides/n ... efinitions

Here's some stuff on Network interfaces and performance coutners:
http://sites.box293.com/nagios/guides/c ... interfaces
That's great I'll give them a read over and let you guys know.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth on passive host

Post by tgriep »

Let us know how it works out for you.
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 »

Hey guys sorry for the wait, been a bit of a cluster at work. The nrpe commands that dictate the received and sent data records, where do the get entered into? commands.cfg? I've also been asked to put the bandwidth on hold for a tad but I wanted to try one NRPE command before I stop for a bit. I wanted to let you guys know to as I don't know what the deal is with open tickets left for a few weeks and if you wanted to close it and I'll re-open another one when I can get back to it. But don't close it until I hopefully here something back on my NRPE question!

Thanks.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth on passive host

Post by tgriep »

Did you install NRPE on the Nagios server?

Take a look in the command.cfg file to see in the check is already defined like below.

Code: Select all

define command {
       command_name                             check_nrpe
       command_line                             $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
Then you can create the service checks like the examples in the links that Box293 provided.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked