Add performance read/write bytes to disks and FCP or ISCSI
in FCPOPS and ISCSIOPS check.
Now is nagioscache files with only necessary values
(for FCPOPS only FCP values, no NFS or CIFS or ISCSI).
On all *OPS check store value to global variable when
writing to nagioscache file. Now getting value only once,
this output is precisely and using less SNMP queries.
On big volumes (bigger then 32bit counter = 4GB) overflow to
negative values. SNMP on version 2c can transport 64bit value,
it's not necessary using Low and High 32bit part of 64bit number.
Fix DISKUSED on SNMPv1 if using more then 4GB of space.
New _ulong64() function for counting 64bit number from its high
and low 32bit parts. This function computing correct 64bit number
on 32bit operating system.
* Add ISCSIOPS and FCPOPS checks type similar to CIFSOPS
* New -V option sets SNMP version (needs 2c for reading 64bit values)
* New -I option return every time OK state (if you needs only performance data)
* redesign help message and append examples
* nagioscache files create only if check needs caching
* each check has own *.nagioscache file (when I using multiple tests I get
inexact values of performance data)
* change version to 1.2
A list of valid UOM (unit of measurement) is available here https://nagios-plugins.org/doc/guidelines.html
Change percent to %
cifs ops/sec or nfs ops/sec are invalid. In this case use no unit.
Invalid units can cause some problems in tools like pnp4nagios which expect a valid unit.