Thank you for your review!

Your review has been submitted and is pending approval.

Description

This plugins monitor realtime traffic on linux server interface on any distribution centos,redhat,debian etc . In old version by joseph stats are calculated wrong way not realtime but after my changes it will monitor your stats realtime transfer rate of interface. Steps: apply this plugin like this --------------------------------------------------- ./check_eth -i eth0 -w 1024K Bps -c 2048K Bps where i=interface -w=Warning can be defined in KB,MB etc like (-w 1024K Bps or -w 1M Bps) -c =Critical can be defined in KB,MB etc like (-c 2048K Bps or -c 2M Bps) 2.also # cd /tmp # ls -lha | grep traffic there is file name traffic-eth0 or traffic-eth1 according to your interface change its permission as per your nrpe user like chown nagios:nagios traffic-eth0 or if nrpe user is nrpe then chown nrpe:nrpe traffic-eth0 so that nrpe have write permission on it. Result:after that apply as per in your nrpe.cfg on remote and cheers you will get realtime traffic rate on nagios :) #./check_eth -i eth0 -w 1024K Bps -c 2048K Bps Traffic on eth0 : RX Bytes: 1TB, TX Bytes: 3TB: RX Speed: 129KBps, TX Speed: 248KBps: OK bandwidth utilization #### for commands.cfg if you want to monitor nagios interface traffic ## vim /usr/local/nagios/etc/objects/commands.cfg then add # 'check_eth' command definition define command{ command_name check_eth command_line $USER1$/check_eth -i eth0 -w 1024K Bps -c 2048K Bps } ### after that in nagios service monitoring file add like this. define service{ use local-service ; Name of service template to use host_name NMS service_description Interface Eth0 check_command check_eth } ## after adding restart nagios service after verification command. Thanks


Project Details

Current Version

1.2

Last Release Date

2016-10-20

Owner

Adeel

License

GPL

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

Recommend

To:


From: