NIC Traffic monitor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: NIC Traffic monitor

Post by HAL »

Thats the same I asked. How to create command through check_command option while creating service. I have checked the usage /usr/local/nagios/libexec/check_win_net_usage.sh -H OSLMS003 -p 12489 -s **** -i " Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client)" -o KB working fine. But how to deal with this while creating service.

2: Ok fine let me try creating command as suggested first, will get back to you in case of any issues.

3: I have created the command now by name check_win_net_usage with syntax /usr/local/nagios/libexec/check_win_net_usage.sh -H OSLMS003 -p 12489 -s ****** n -i " Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client)" -o KB and saved the configuration and activate. Still this command is not coming under check_command option while creating service. Kindly suggest.


4: Hi,
I have created the service now, the only problem now is that in graph its showing only 0 KB at the time, seems not fetching real data. I have used the ethernet names as Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client) from the concerned Windows Server. Please suggest.
Last edited by slansing on Thu Mar 07, 2013 10:29 am, edited 1 time in total.
Reason: Condensing your posts.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NIC Traffic monitor

Post by BanditBBS »

Did you apply the configuration? try doing that so the command gets written and then try and create the service.

Also, if you want to be able to use this command with other boxes, you could create it to use arguments.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NIC Traffic monitor

Post by BanditBBS »

HAL wrote:Hi,
I have created the service now, the only problem now is that in graph its showing only 0 KB at the time, seems not fetching real data. I have used the ethernet names as Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client) from the concerned Windows Server. Please suggest.
I'm not sure. As I stated, I have not used this plugin personally. Give it a few minutes(10-20) and see if the graph shows data.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NIC Traffic monitor

Post by sreinhardt »

Aside from giving it time, as bandit mentioned, have you tried running the command via cli and seeing if that outputs the data you are looking for? You may just need to tweak a few things, and it is generally easier to do via cli then modify your command definition.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: NIC Traffic monitor

Post by HAL »

Hi,
Even through commandline also the result is 0 KB always. Please advise, still under service graph too there is no real figure captured.

[root@oslms018 ~]# /usr/local/nagios/libexec/check_win_net_usage.sh -H OSLMS003 -p 12489 -s ***** -i "Broadcom BCM5709C NetXtreme II GigE (NDIS VBD Client)"
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0

PFB output for another windows server.
[root@oslms018 libexec]# ./check_win_net_usage.sh -H ZOSLDO002 -p 12489 -s **** -i "VMware PCI Ethernet Adapter #6"
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0

PFB the results even if I used eth0 as network interface for the concerned windows servers.
[root@oslms018 libexec]# ./check_win_net_usage.sh -H ZOSLDO002.lhc4net.lhc.com -p 12489 -s **** -i "eth0"
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0
[root@oslms018 libexec]# /usr/local/nagios/libexec/check_win_net_usage.sh -H OSLMS003 -p 12489 -s **** -i "eth0"
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NIC Traffic monitor

Post by BanditBBS »

I'm sure I'll need something like this, so let me play around with it a little and see if it works for me.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: NIC Traffic monitor

Post by HAL »

Thanks for the update,please do consider this as an urgent requirement.Also let me know how I can prioritized this, if reqd. may be thru opening the request thru some case to Nagios or something.
PFB output for another windows server.
[root@oslms018 libexec]# ./check_win_net_usage.sh -H ZOSLDO002 -p 12489 -s **** -i "VMware PCI Ethernet Adapter #6"
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0

PFB the results even if I used eth0 as network interface for the concerned windows servers.
[root@oslms018 libexec]# ./check_win_net_usage.sh -H ZOSLDO002.lhc4net.lhc.com -p 12489 -s **** -i "eth0"
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0
[root@oslms018 libexec]# /usr/local/nagios/libexec/check_win_net_usage.sh -H OSLMS003 -p 12489 -s **** -i "eth0"
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0

Even if I am not supplying interfact details, its resulting same output.
[root@oslms018 libexec]# ./check_win_net_usage.sh -H ZOSLDO002 -p 12489 -s **** -i ""
Network OK - 0 Bytes received/sec, 0 Bytes sent/sec|bytes_in=0;bytes_out=0

Able to see many other plugins under http://exchange.nagios.org/directory/Pl ... idth/page3 like ck_iftraffic64 for monitoring network interfact traffic of windows server. Could you please suggest whether the existing script/plugin check_win_net_usage.sh would solve the purpose someway or we need to think using some other option.

Anyone looking?
Regards,
Sanjeev
Last edited by slansing on Thu Mar 07, 2013 10:31 am, edited 1 time in total.
Reason: Condensing your posts.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NIC Traffic monitor

Post by BanditBBS »

HAL wrote:Thanks for the update,please do consider this as an urgent requirement.Also let me know how I can prioritized this, if reqd. may be thru opening the request thru some case to Nagios or something.

Regards,
Sanjeev
Just making sure you realize, I am not a nagios employee, just another user like yourself trying to help out. As I said, I'll play around with it today and see if I can figure it out on my system, but am currently working on another issue myself.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: NIC Traffic monitor

Post by HAL »

Ok Fine, thanks for the information.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NIC Traffic monitor

Post by abrist »

HAL, are you sure there is traffic in/out on the interfaces in question?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked