Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory

nishith

Reviews(66)
Page 1 of 2
bynishith, January 1, 2020
Follow this link to testify your nagios configuration. Mine is working aboslutely fine & able to monitor entire IBM Storage with mostly all kind of monitoring parameters.

https://www.bityard.org/blog/2013/12/28/nagios_monitoring_ibm_svc_storwize
bynishith, December 30, 2019
On the nagios client side, NRPE is giving proper output. But, Nagios Core is showing something else.

On Nagios Clinet (NRPE):
/usr/lib64/nagios/plugins/check_numoffiles.sh -d /var/named/
213 files - ok

NRPE.CFG File Configuration:
command[check_files]=/usr/lib64/nagios/plugins/check_numoffiles.sh -d /var/named/

Error comes in Nagios Core:
/usr/local/nagios/libexec/check_nrpe -H 203.77.200.10 -c check_files

0 files - ok

I don't understand why it is showing -0 files? The plugin is pretty much simple to run.
check_file_count
Nagios Clinet (NRPE) is giving perfect output while the same doesn't happen from Nagios Core Server.

Here is the state:

On NRPE (Nagios Client) Server:-

./check_file_count -t=all -s=yes -wt=high -w 250 -c 300 -p=yes /var/named/
OK: Number of files and directories in /var/named/ is 216 (Warn=250, Crit=300) Files=213, Directories=3 | Total=216Count;250;300 Files=213Files 'Directories'=3Directories

From Nagios Core Server:-
./check_nrpe -H 172.16.1.10 -c check_file_count
OK: Number of files and directories in /var/named/ is -1 (Warn=250, Crit=300) Files=0, Directories=-1 | Total=-1Count;250;300 Files=0Files 'Directories'=-1Directories

Something is wrong with the script or call from Nagios Server. May be sudo...!!!

Please Guide.
bynishith, December 30, 2019
Unable to download plugin.... Please provide alternative link.
bynishith, December 30, 2019
I'm using NRPE on Client Side. Below is the configuration.

Upload "check_dirsize11.sh" script on Nagios Client Node under "/usr/lib64/nagios/plugins/" directory.

Open nrpe.cfg file & append new line as follows.
vim /etc/nagios/nrpe.cfg
command[check_syslog_dir]=/usr/lib64/nagios/plugins/check_dirsize11.sh -d /var/log/

Restart NRPE Service.
systemctl restart nrpe

Now on the Nagios Server Side, configure remote host as follows:

define service{
use generic-service
host_name linuxbox1.example.local
service_description SYSLOG Directory Size
check_command check_nrpe!check_syslog_dir
}

Save & Exit.

You can also run the NRPE Command from Nagios Server to get the output. The command is,

/usr/local/nagios/libexec/check_nrpe -H 172.16.1.96 -c check_syslog_dir

Important Note:

If you're getting sudo error to access "DU" command, append below line inside Nagios client sudo file.
%nagios ALL=(ALL) NOPASSWD:ALL

Now, modify "check_dirsize11.sh" plugin, line no:46
DU="/usr/bin/sudo /usr/bin/du"

If you want directory size output in "GB", then change line no. 159 as follows.

duresult=`$DU -sh $dirpath 2>&1` || error="Error"

(Replace -sk with -sh)

That's it.
bynishith, December 30, 2019
Below are the simple steps that I've performed:
1) Downloaded the plugin in "/usr/local/nagios/libexec" directory.
2) chmod +x /usr/local/nagios/libexec/nagios_ntp.sh
3) RUN: /usr/local/nagios/libexec/nagios_ntp.sh

RESULT:
It is giving output as;
NTP OK - Server: 5.103.139.163 Offset: 0.965 Jitter: 0.470; | Offset=0.965ms;10;20 Jitter=0.470ms;;

The plugin works well but would like to know where this IP Address "5.103.139.163" comes from?

I'm from INDIA & local NTP Server is "in.pool.ntp.org" only. I just want to check my NTP Service/Server is listeninig on port 123 or not.

That's it.
bynishith, September 19, 2019
Check APC UPS
This plugin worked well on my SmartUPS RT 2000 XL.

Just follow the instructions given by the author & walla....
bynishith, September 17, 2019
This plugin is working well on my HP SAN MSA 2040 Storage.

The CLI Output is:

./check_msa -u nagios -p N@gios123 -h 172.16.1.124
OK: [Vdisk1 (6594.6GB,RAID5,12/) FTOL] [Vdisk2 (9592.2GB,RAID5,5/) FTOL] [CTRLs OK]
##################################
It gives perfect information of,

Total Disk Space
RAID Configured
No of. Disks allotted.
##################################
Here is the commands.cfg file:

define command{
command_name check_msa_2040
command_line $USER1$/check_msa -u nagios -p N@gios123 -h 172.16.1.124
}
#################################
Here is the san.cfg file:

define service{
use generic-service
host_name HP-MSA2040_SP1
service_description Vdisks_RAID_Space_Info
check_command check_msa_2040
check_interval 30
retry_interval 1
}
#################################

But, Nagios Frontend is still giving Net/Telnet.pm & Net/XML.pm error.

Strange thing is, I've already installed both missing plugins thru. CPAN...!!!

Can anyone help?
bynishith, September 17, 2019
Below is the command:
# ./check_hp_msa2000_vdisks.pl -H 172.16.1.124 -u nagios -p N@gios123 -d Vdisk1

OUTPUT:-
Vdisk1 is online.
############################
commands.cfg file:-

define command{
command_name check_hp_msa_2040_vdisks
command_line $USER1$/check_hp_msa2000_vdisks.pl -H 172.16.1.124 -u $ARG1$ -p $ARG2$ -d $ARG3$
}
############################
san.cfg file

define service{
use generic-service
host_name HP-MSA2040_SP1
service_description Vdisk1 Status
check_command check_hp_msa_2040_vdisks!nagios!N@gios123!Vdisk1
check_interval 15
retry_interval 1
}
##############################
bynishith, October 23, 2018
Configured this plugin to monitor Hitachi HDS VSP G200 SAN Storage.

Below is the output:
./check_hitachi.sh -H 192.168.1.254 -C common
OK - [Model : UNKNOWN, S/N : XXXXXX, Mcode info : "21-01-76-40/00"]

OK - Status is NORMAL [DKC_HW_PROCESSOR]
OK - Status is NORMAL [DKC_HW_CACHE]
OK - Status is NORMAL [DKC_HW_POWERSUPPLY]
OK - Status is NORMAL [DKC_HW_BATTERY]
OK - Status is NORMAL [DKC_HW_FAN]
OK - Status is NORMAL [DKU_HW_POWERSUPPLY]
OK - Status is NORMAL [DKU_HW_FAN]
OK - Status is NORMAL [DKU_HW_Drive]
bynishith, December 1, 2017
check_snmp_uptime
Working Properly.

[root@linuxbox3 libexec]# ./check_snmp_uptime -H linuxbox2.example.local -C public -w 30 -c 50
The uptime is 6 hours and 21 minutes | uptime=0;30;50;0
bynishith, September 21, 2017
check_network.py
This plugins worked well but generating separate bandwidth graphs of Linux "eth0" interface. Below is my configuration.

####Nagios Server####
define service{
use generic-service
host_name mail.example.local
service_description eth0 Network
check_command check_nrpe!eth0_network
check_interval 1
}

####NRPE Client####
vim /usr/local/nagios/etc/nrpe.cfg

command[eth0_network]=/usr/local/nagios/libexec/check_network.py eth0
#############################

-Nishith N.Vyas
bynishith, September 21, 2017
Very Simple to use with NRPE. :)
###########################
Nagios Server Configuration:

define service{
use generic-service
host_name mail.example.local
service_description KERNEL Version
check_command check_nrpe!check_kernel
check_interval 1440
}
###########################
NRPE File Configuration:
vim /usr/local/nagios/etc/nrpe.cfg
command[check_kernel]=/usr/local/nagios/libexec/check_kernel
###########################


-Nishith N.Vyas
bynishith, September 20, 2017
Here is my NRPE Output:

####NRPE Command####
# /usr/local/nagios/libexec/check_disk -w 80 -c 90 -d /dev/cciss/c0d0p1

OK - /dev/cciss/c0d0p1 space used=79% | '/dev/cciss/c0d0p1 usage'=79%;80;90;

###NRPE Config in /usr/local/nagios/etc/nrpe.cfg file###

command[check_root]=/usr/local/nagios/libexec/check_disk -w 80 -c 90 -d /dev/cciss/c0d0p1

###NAGIOS SERVER CONFIG###
define service{
use generic-service
host_name test.example.local
service_description ROOT Partition
check_command check_nrpe!check_root
check_interval 15
retry_interval 1
}
bynishith, September 20, 2017
My cPanel is under 3 year license but this script is showing "License Inactive" message...!! :(

The URL mentioned inside this script seems proper as below,
http://verify.cpanel.net/index.cgi?ip=%s

Nishith N.Vyas
bynishith, September 19, 2017
[root@support libexec]$ ./check_snmp_traffic 172.16.1.8 public 1 ">200" ">400"
Traffic OK - .01 Mb/s in Sum|traffic=.01;>200;>400;0; In=.01;;;0; Out=0;;;0;

OUTPUT IS:-
IF-MIB::ifName.1 = STRING: Vl1
IF-MIB::ifName.5049 = STRING: Lo0
IF-MIB::ifName.10101 = STRING: Gi0/1
IF-MIB::ifName.10102 = STRING: Gi0/2
IF-MIB::ifName.10103 = STRING: Gi0/3
IF-MIB::ifName.10104 = STRING: Gi0/4
IF-MIB::ifName.10105 = STRING: Gi0/5
IF-MIB::ifName.10106 = STRING: Gi0/6
IF-MIB::ifName.10107 = STRING: Gi0/7
IF-MIB::ifName.10108 = STRING: Gi0/8
IF-MIB::ifName.10109 = STRING: Gi0/9
IF-MIB::ifName.10110 = STRING: Gi0/10
IF-MIB::ifName.10111 = STRING: Gi0/11
IF-MIB::ifName.10112 = STRING: Gi0/12
IF-MIB::ifName.10113 = STRING: Gi0/13
IF-MIB::ifName.10114 = STRING: Gi0/14
IF-MIB::ifName.10115 = STRING: Gi0/15
IF-MIB::ifName.10116 = STRING: Gi0/16
IF-MIB::ifName.10117 = STRING: Gi0/17
IF-MIB::ifName.10118 = STRING: Gi0/18
IF-MIB::ifName.10119 = STRING: Gi0/19
IF-MIB::ifName.10120 = STRING: Gi0/20
IF-MIB::ifName.10121 = STRING: Gi0/21
IF-MIB::ifName.10122 = STRING: Gi0/22
IF-MIB::ifName.10123 = STRING: Gi0/23
IF-MIB::ifName.10124 = STRING: Gi0/24
IF-MIB::ifName.10125 = STRING: Gi0/25
IF-MIB::ifName.10126 = STRING: Gi0/26
IF-MIB::ifName.10127 = STRING: Gi0/27
IF-MIB::ifName.10128 = STRING: Gi0/28

But, monitoring Gi0/24 interface gives below error.

[root@support libexec]$ ./check_snmp_traffic 172.16.1.8 public 24 ">200" ">400"
./check_snmp_traffic: line 93: [: Such: integer expression expected
./check_snmp_traffic: line 96: [: Such: integer expression expected
./check_snmp_traffic: line 105: [: Such: integer expression expected
./check_snmp_traffic: line 108: [: Such: integer expression expected
(standard_in) 1: illegal character: S
(standard_in) 1: syntax error
./check_snmp_traffic: line 151: [: -eq: unary operator expected
./check_snmp_traffic: line 154: [: -eq: unary operator expected
./check_snmp_traffic: line 157: [: too many arguments
Traffic UNKNOWN - Mb/s in Sum|traffic=;>200;>400;0; In=;;;0; Out=;;;0;

I need a common plugin thru which I can monitor all SNMP enabled network devices graph i.e. CIsoc, Fortigate, Juniper, Windows & Linux OSes.
bynishith, September 10, 2017
Here is my commands.cfg file:

check_website -H $HOSTADDRESS$ $ARG1$

My service Monitoring Command is,

check_website "www.example.com/login.aspx"

It gives HTTP OK Message in Nagios Web Frontend.
bynishith, July 28, 2016
This plugin worked well on VNX 5300 SAN Storage. Below is my configuration.

Used below RPM on CentOS 7:
UnisphereCLI-Linux-64-x86-en_US-3.0.0.1.16-1.x86_64.rpm
#################################################
Command Output:
./check_emc_clariion_vnx.pl -H 10.0.0.1 -u sysadmin -p password -t lun --lun_id 0

OK {State:Bound} {ID:0} {Name:Application} {Size:500.00GB} {Free Space:0.00B = 0%} {RAID Group Type:N/A, N/A} {Percentage Rebuilt:100%}|'Size'=500.00GB;;;; 'Free Space'=0.00B;;;; 'Free Space Percentage'=0%;;;;
#################################################
/usr/local/nagios/libexec/check_emc_clariion_vnx.pl -H 10.0.0.1 -u sysadmin -p password -t disk

15 physical disks are OK. 1 Hotspares are ready. 0 Unbound. Probably for HotSpare.
#################################################

Able to monitor below services:
Individual LUN Info
Raid Group Info (RAID 1 and RAID 5)
Service Processor Status
Faults


Thanks,
Nishith N.Vyas
bynishith, July 27, 2016
2 of 2 people found this review helpful
Nagios Business Process Intelligence (BPI)
This review rating is meant for Mr. Stecino only for providing nice way guidance to run Nagips BPI very well.

Below are the perfect steps:
* cd /tmp
* git clone git://git.code.sf.net/p/nagios/nagiosbpi nagios-nagiosbpi
* cd nagios-nagiosbpi
* cp -R nagiosbpi /usr/local/nagios/share
* *cd /usr/local/nagios/share/nagiosbpi
* mkdir /usr/local/nagios/share/nagiosbpi/tmp
* chmod o+rx config_functions functions images tmp
* chmod o+rxw tmp
* chmod +x set_bpi_perms.sh

Edit "/usr/local/nagios/share/nagiosbpi/constants.conf" as below:

CONFIGFILE= /usr/local/nagios/share/nagiosbpi/bpi.conf
CONFIGBACKUP=/usr/local/nagios/share/nagiosbpi/tmp/bpi.conf.backup

##optional xml output of BPI group data. USE ABSOLUTE DIRECTORIES FOR ALL FILE LOCATIONS
XMLOUTPUT=/usr/local/nagios/share/nagiosbpi/tmp/bpi.xml

Finally, open NagiosBPI:
http://Nagios_IP/nagios/nagiosbpi

Enjoy....!!!
bynishith, July 27, 2016
Nagios Business Process Intelligence (BPI) Wizard
I suggest to go thru below URL for proper way of installation.

https://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details
bynishith, July 26, 2016
nagios-dash
Github URL isn't accessible. My sincere request is to make it available for testing purpose ASAP.
bynishith, July 26, 2016
1 of 1 people found this review helpful
Nuvola Style
Using on Nagios 3x and 4x version since long.

It changes entire look of traditional nagios interface, which most people do not like.
bynishith, June 6, 2016
Need to improve this plugin. Below is my output.

./check_windows_update.pl -H 10.0.77.10 public
Use of uninitialized value $opt_p in concatenation (.) or string at ./check_windows_update.pl line 69.
snmpwalk: Unknown host (HOST-RESOURCES-MIB::hrSWRunName) (No such file or directory)


Thanks,
Nishith
bynishith, June 6, 2016
Check the status of DELL PowerEdge server
This plugin is functioning well in below listed Servers.

Dell PowerEdge 2950
Dell R510
Dell R710
Dell PowerEdge 1900

Command Output is:
##########################################
./check_snmp_dell_poweredge -H 10.0.77.43 -C public -t redundancy
Power supply redundancy is OK

./check_snmp_dell_poweredge -H 10.0.77.43 -C public -t temperature
Ambient temperature : 15 Degres Celsius | temperature=15;0;0;0

./check_snmp_dell_poweredge -H 10.0.77.43 -C public -t health
Etat general : Warning

./check_snmp_dell_poweredge -H 10.0.77.43 -C public -t info
Information : Dell PowerEdge 2950 possede le service TAG '8B1PX1S'

./check_snmp_dell_poweredge -H 10.0.77.43 -C public -t disk -d 2
Disk Status 'Physical Disk 0:0:1' : Online, RAID array is OK
Will work with all Disks, Just change the Disk ID in the end
##########################################
My commands.cfg file:

define command{
command_name check_snmp_dell_poweredge_temp
command_line $USER1$/check_snmp_dell_poweredge -H $HOSTADDRESS$ -C $ARG1$ -t $ARG2$ -w $ARG3$ -c $ARG4$
}
define command{
command_name check_snmp_dell_poweredge_disk
command_line $USER1$/check_snmp_dell_poweredge -H $HOSTADDRESS$ -C $ARG1$ -t $ARG2$ -d $ARG3$
}
define command{
command_name check_snmp_dell_poweredge
command_line $USER1$/check_snmp_dell_poweredge -H $HOSTADDRESS$ -C $ARG1$ -t $ARG2$
}
########################################

Thanks to the author... I'm first to put +ve review....ha ha ha...!!!
bynishith, June 3, 2016
Simple Execution of this plugins provides below output:

./check_FCBrocade_hardware.sh -H 10.0.77.4 -c Secret-C0de
HARDWARE OK : SLOT#0TEMP#1=22C, SLOT#0TEMP#2=22C, SLOT#0TEMP#3=24C, FAN#1=5769RPM, FAN#2=5769RPM, FAN#3=5769RPM, PowerSupply#1=1,|22;22;24;5769;5769;5769;1;

Still in process to make it functional properly in nagios config file.
bynishith, June 1, 2016
Below is the output of command line:

./check_snmp_memory.pl -w 85 -c 90 public 10.0.77.10
SNMP problem - no value returned

./check_snmp_memory.pl -w 85 -c 90 -- -c public 10.0.77.10
SNMP problem - no value returned

./check_snmp_memory.pl -w 85 -c 90 -- -c public 10.0.77.10
SNMP problem - no value returned

No Luck...
bynishith, February 26, 2016
0 of 1 people found this review helpful
I have used below command to get "Windows Interfaces".

./check_traffic.sh -V 1 -C nocgnr -H 172.16.1.105 -L

List Interface for host 172.16.1.105.
Interface index 1 orresponding to Software Loopback Interface 1.
Interface index 2 orresponding to WAN Miniport (SSTP).
Interface index 3 orresponding to WAN Miniport (L2TP).
Interface index 4 orresponding to WAN Miniport (PPTP).
Interface index 5 orresponding to WAN Miniport (PPPOE).
Interface index 6 orresponding to WAN Miniport (IPv6).
Interface index 7 orresponding to WAN Miniport (Network Monitor).
Interface index 8 orresponding to WAN Miniport (IP).
Interface index 9 orresponding to RAS Async Adapter.
Interface index 10 orresponding to WAN Miniport (IKEv2).
Interface index 11 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128.
Interface index 12 orresponding to Microsoft ISATAP Adapter.
Interface index 13 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131.
Interface index 14 orresponding to Microsoft ISATAP Adapter #2.
Interface index 15 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130.
Interface index 16 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135.
Interface index 17 orresponding to Microsoft ISATAP Adapter #3.
Interface index 18 orresponding to Microsoft ISATAP Adapter #4.
Interface index 19 orresponding to Microsoft 6to4 Adapter.
Interface index 20 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131-Trend Micro NDIS 6.0 Filter driver-0000.
Interface index 21 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128-QoS Packet Scheduler-0000.
Interface index 22 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128-WFP LightWeight Filter-0000.
Interface index 23 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131-QoS Packet Scheduler-0000.
Interface index 24 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131-WFP LightWeight Filter-0000.
Interface index 25 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130-Trend Micro NDIS 6.0 Filter driver-0000.
Interface index 26 orresponding to WAN Miniport (Network Monitor)-Trend Micro NDIS 6.0 Filter driver-0000.
Interface index 27 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130-QoS Packet Scheduler-0000.
Interface index 28 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130-WFP LightWeight Filter-0000.
Interface index 29 orresponding to WAN Miniport (IPv6)-Trend Micro NDIS 6.0 Filter driver-0000.
Interface index 30 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135-Trend Micro NDIS 6.0 Filter driver-0000.
Interface index 31 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135-QoS Packet Scheduler-0000.
Interface index 32 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135-WFP LightWeight Filter-0000.
Interface index 33 orresponding to WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000.
Interface index 34 orresponding to QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128-Trend Micro NDIS 6.0 Filter driver-0000.
Interface index 35 orresponding to WAN Miniport (IP)-QoS Packet Scheduler-0000.
Interface index 36 orresponding to WAN Miniport (IP)-Trend Micro NDIS 6.0 Filter driver-0000.
Interface index 37 orresponding to WAN Miniport (IPv6)-QoS Packet Scheduler-0000.

But, don't know which "Interface Index" I need to mention in command line to generate output.

The error is,

./check_traffic.sh -V 1 -C nocgnr -H 172.16.1.105 -N "Interface index 20"
Can not get the interface index with Interface index 20 at 172.16.1.105.

Same error for Linux OS. Please see below.
#########################
./check_traffic.sh -V 1 -C public -H 172.16.1.73 -L
List Interface for host 172.16.1.73.
Interface index 1 orresponding to lo
Interface index 2 orresponding to enP4p1s0f0
Interface index 3 orresponding to enP4p1s0f1
Interface index 4 orresponding to eth1
Interface index 5 orresponding to eth2
Interface index 6 orresponding to virbr0
Interface index 7 orresponding to virbr0-nic
#########################


Please Guide.
Nishith N.Vyas
Owner's reply

./check_traffic.sh -V 1 -C nocgnr -H 172.16.1.105 -I 2,
or
./check_traffic.sh -V 1 -C nocgnr -H 172.16.1.105 -N eth0

You can get the full usage at: https://github.com/cloved/check_traffic/blob/master/README.md

bynishith, February 23, 2016
check_iis
Here is my command output.

./check_iis 172.16.1.105
currentAnonymousUsers 0,maxAnonymousUsers 4,currentConnections 0,maxConnections 98,|'currentAnonymousUsers'=0 'maxAnonymousUsers'=4 'currentConnections'=0

But, configuring the same in nagios configuration gives below error.

SNMP error, plugin missing?

Really don't know how to make it worked...!?
bynishith, February 21, 2016
1 of 1 people found this review helpful
After a very long search to have a plugin which shows Total Bandwidth on Linux/AIX/Unix Interfaces, I must say that this simple and effective plugins worked well.

Below is my command output:

./check_bw.sh -H 192.16.1.1 -b 100 -v 1 -C public -m input -i eth0 -p 15
Current input bandwidth usage is 80.011 Mb/s, 80.00% used

./check_bw.sh -H 192.168.1.1 -b 100 -v 1 -C public -m output -i eth0 -p 15
Current output bandwidth usage is 2.102 Mb/s, 2.00% used

Here, it is mandatory to mention 2 commands, input and output from the respective server.

The parameter understanding is,
-b=100 Mbps
-p = Every 15 seconds. (You can change this to 10 Mbps or 1000 Mbps as per the server configuration)

The confusing part is, what to give for "Windows Server Network Card", which is always "Local Area Connection" name...??? :(

Except Windows, this is a superb plugin.

Hats off the creator.
Owner's reply

It will work also for windows machine, it's just a bit more tricky how to find out the interface name that is exposed to snmp.

You have to query first off that oid
1.3.6.1.2.1.2.2.1.2 which contain the real name of your interface (note down the entry number)

now query 1.3.6.1.2.1.31.1.1.1.1 and the correspondent entry number you noted down from the previous query contain the exposed name of your interface that you should use in my script

hope it helps

bynishith, February 21, 2016
Below is the command output:

[root@gjvatwb1 libexec]# ./check_snmp_netint.pl -H 172.16.1.105 -C nocgnr -k -M -w5,5 -c8,8 -n "QLogic"

QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135-Trend Micro NDIS 6.0 Filter driver-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131-QoS Packet Scheduler-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130-QoS Packet Scheduler-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128-WFP LightWeight Filter-0000:UP (no usable data - 5 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135-QoS Packet Scheduler-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131-Trend Micro NDIS 6.0 Filter driver-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131-WFP LightWeight Filter-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128-Trend Micro NDIS 6.0 Filter driver-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #128-QoS Packet Scheduler-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130-WFP LightWeight Filter-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #135-WFP LightWeight Filter-0000:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #131:UP (no usable data - 4 rows) , QLogic BCM57840 10 Gigabit Ethernet (NDIS VBD Client) #130-Trend Micro NDIS 6.0 Filter driver-0000:UP (no usable data - 4 rows) :(16 UP): OK |


This isn't the final result. Can I have final command, which should show total bandwidth utilization of single network interface?
bynishith, February 21, 2016
Kindly provide what I need to mention in "Network Interface"?

Below is the command, which is showing an error.

./check_snmp_netifio -H 172.16.1.105 -C nocgnr -i QLogic -w 10 -c 10

Use of uninitialized value $state in exit at ./check_snmp_netifio line 192.
bynishith, February 16, 2016
I get below error while executing the script on Zimbra Server.
########################################
-bash: ./check_zimbra_mailboxquota.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
########################################
But, my perl file location is same as mentioned in the script. Please See below command output:

which perl
/usr/bin/perl

What should I do now? Something is missing in the script.

Kindly resolve.
bynishith, February 16, 2016
Working Properly. Below is my output.
#########################################
./sgichk_cisco_chassis.pl -H 192.168.1.1 -C public
OK: All Environmental Sensors ok
Switch#1, Fan#1 = Normal
Sw1, PS1 Normal, RPS NotExist = Normal
#########################################
./sgichk_cisco_chassis.pl -H 192.168.1.2 -C public
OK: All Environmental Sensors ok
chassis = Normal
chassis = Normal
internal power supply = Normal
redundant power supply = notPresent
#########################################
./sgichk_cisco_chassis.pl -H 192.168.1.3 -C public
OK: All Environmental Sensors ok
Switch#1, Fan#1 = Normal
Sw1, PS1 Normal, RPS NotExist = Normal
#########################################
bynishith, February 16, 2016
I don't get output on Cisco 2960, 3550 and 3750 Switches.

Below is the error.
#################################
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.2016892988
#################################
bynishith, February 16, 2016
Here is my output:

On Nagios Server:

./check_nrpe -H 172.16.1.20 -c check_net_transfer
NETIO CRITICAL: - eth0 DOWN:94.376 Kbps UP:147.536 Kbps TOTAL:241.912 Kbps


On Nagios NRPE Client:
command[check_net_transfer]=/usr/lib/nagios/plugins/check_net_transfer -i eth0 -v
############
Restart nrpe service and enjoy the plugin output.
bynishith, February 16, 2016
My commands.cfg file

define command{
command_name check_bandwidth
command_line $USER1$/check_iftraffic.pl -H $HOSTADDRESS$ -C $ARG1$ -r -i $ARG2$ -b 1000 -u g
}
###############################
My server.cfg file

define service{
use generic-service,srv-pnp
host_name linux_pc1
service_description Bandwidth Utilization
check_command check_bandwidth!public!eth0
normal_check_interval 1
retry_check_interval 1
}
bynishith, February 2, 2016
Worked Perfectly.. Single plugin for Linux "/" swap, "/home" and "/tmp" partition monitoring.
bynishith, February 2, 2016
My "commands.cfg" file.
define command{
command_name check_snmp_uptime
command_line /usr/local/nagios/libexec/check_snmp_uptime.pl -H $HOSTADDRESS$ -C "$ARG1$"
}
#####################################
My "Linux.cfg" file
define service{
use generic-service
host_name cPanel
service_description UPTIME
check_command check_snmp_uptime!public
}
#######################
commands output:
/usr/local/nagios/libexec/check_snmp_uptime.pl -H 192.168.1.1 -C public

SNMP uptime: 35 days, 0 hours, 12 minutes, 21 seconds : OK
#######################
bynishith, February 2, 2016
Command Line Output:
./check_volume.sh -v /home -w 80 -c 90
/home is at 4% capacity, 16G of 478G

#################################################
command.cfg file configuration:
#################################################
define command{
command_name check_volume
command_line $USER1$/check_volume.sh -v $ARG1$ -w $ARG2$ -c $ARG3$
}

#################################################
localhost.cfg file configuration:
#################################################
define service{
use local-service
host_name localhost
service_description Home Partition
check_command check_volume!/home!75!90
}
#################################################
bynishith, October 4, 2013
Working properly on the nagios shell prompt. But, still it should work in frontend, on which I get errors.

./check_setting_sshd.sh
OK - The SSHD deamon setting is ok: PermitRootLogin:no, Port:22, Protocol:2, PermitEmptyPasswords:no

Also, it would be great if we can monitor remote server ssh settings using Nagios Engine.
bynishith, October 4, 2013
2 of 2 people found this review helpful
Worked perfectly. Just download it & make following changes in Nagios configuration.

In /usr/local/nagios/etc/objects/commands.cfg

define command {
command_name check_abc.com
command_line $USER1$/check_domain -d $ARG1$ -w $ARG2$ -c $ARG3$
}
####################################
In /usr/local/nagios/etc/objects/localhost.cfg

define service{
use generic-service ; Inherit values from a template
host_name localhost
service_description Domain Expiry of abc.com

check_command check_abc.com!abc.com!30!10

Here, 30 = Warning of 30 days remaining
10 = Critical message of 10 days remaining

Nishith N.Vyas
bynishith, August 24, 2013
aNag
Configured Nagios on Linux machine & found "anag" very useful for my android phone.

Must Install
bynishith, February 17, 2013
0 of 1 people found this review helpful
Effortless Plugin.
./check_win_snmp_disk.pl 10.0.64.173 public 2 80 90
OK : Percent Used : 33%, Total : 33.8 GiB, Used : 11.2 GiB, Free : 22.6 GiB
bynishith, January 26, 2013
Plugins worked properly without giving more efforts. Thanks for SNMP V1.

Now, Newly implemented firewall contains SNMP V2 & V3 Only. No option to configure SNMP V1 to use this plugin any more.

Can somebody help me to find SNMP V2/V3 plugin?

Nishith N.Vyas
bynishith, January 24, 2013
Tested on EMC Clariion SAN Switch & below is the result.

./check_fiberalliance.sh -H 10.0.64.214 -C public -T status
Overall unit status: OK
Product: "Fibre Channel Switch."
Serial number: "6YFR34D1"

./check_fiberalliance.sh -H 10.0.64.214 -C public -T sensors
TEMP #1" = type 3 is OK, value is 27"
TEMP #2" = type 3 is OK, value is 29"
" FAN #1" = type 4 is OK, value is 4129"
" FAN #2" = type 4 is OK, value is 4129"
" FAN #3" = type 4 is OK, value is 4129"
" Power Supply #1" = type 5 is OK, value is 1"

Nishith N.Vyas
bynishith, January 24, 2013
check_apcupsd
Below is the exercise,which I have done on Nagios Core 3.4.3.

Command1
touch /sbin/apcaccess
chmod +x /sbin/apcaccess

Command2
./check_apcupsd -h timeleft
Output: OK - Time Left: Minutes

Command3
/check_apcupsd -h ups1 bcharge
OK - Battery Charge: %

Means, it is not showing output in % properly. It seems that there is a need to modify the plugin again.

Nishith N.Vyas
bynishith, January 24, 2013
There are no contents inside this plugin. Please clarify if I am wrong.....

I am interested whether UPS is on "AC Mains Power" or "Battery Power". If it is on battery power, then I would like to monitor "Max Battery Run Time in Hours"...

Is it possible?
Nishith
bynishith, January 24, 2013
./check_apc.php 10.0.64.191 public
No Result

php check_apc.php 10.0.64.191 public
No Result

php check_apc.php 10.0.64.191
No Result
bynishith, January 20, 2013
Hello,

All plugins are working properly except "disk". My EMC Clariion enclosure contains 9 disks only, but nagios plugin is showing all 15 enclosures as 15 individual disks???!!! How it is possible?
bynishith, January 8, 2013
Jeff Manross
Very easy to setup. Also, I would like to know what is the mean of "UPS Status". Is it possible to get "Email/SMS" alerts for below states.

ALERT Report(Email/SMS) if UPS is on Battery Power
ALERT Report(Email/SMS) if UPS is on AC Mains Power

Presently, my "UPS Status" STATE shows "SNMP OK-Main UPS Status 2". What does it mean?
Page 1 of 2