Page 1 of 5

Bandwidth on passive host

Posted: Mon Aug 10, 2015 4:06 pm
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,

Re: Bandwidth on passive host

Posted: Tue Aug 11, 2015 2:16 pm
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?

Re: Bandwidth on passive host

Posted: Wed Aug 12, 2015 8:30 am
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.

Re: Bandwidth on passive host

Posted: Wed Aug 12, 2015 3:22 pm
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?

Re: Bandwidth on passive host

Posted: Wed Aug 12, 2015 4:02 pm
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?

Re: Bandwidth on passive host

Posted: Wed Aug 12, 2015 7:44 pm
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

Re: Bandwidth on passive host

Posted: Thu Aug 13, 2015 11:09 am
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.

Re: Bandwidth on passive host

Posted: Thu Aug 13, 2015 2:43 pm
by tgriep
Let us know how it works out for you.

Re: Bandwidth on passive host

Posted: Fri Aug 14, 2015 1:11 pm
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.

Re: Bandwidth on passive host

Posted: Fri Aug 14, 2015 1:35 pm
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.