Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring SNMP disk space - inaccurate numbers Post 302478964 by SkySmart on Thursday 9th of December 2010 09:52:00 AM
Old 12-09-2010
Quote:
Originally Posted by Neo
What are the units for each indicator above?
this is what i get when i search for units

Code:
[nagios-03.kewr0:636] snmpwalk -v 1 -c ajajaja billing-host.com HOST-RESOURCES-MIB::hrStorage | egrep -i unit
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.32 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.33 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.34 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.35 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.36 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.37 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.38 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.39 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.40 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.41 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.42 = INTEGER: 4096 Bytes
[nagios-03.kewr0:637]

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

available disk space on disk device???

Hello, Can someone please tell me which command to use to determine the available disk space on a given disk device? I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be? Thanks in advance! Al. (4 Replies)
Discussion started by: alan
4 Replies

2. Infrastructure Monitoring

Using SNMP to monitor remote processes and disk space

snmpget -v 1 -c COMMUNITYSTR hostname OID what OIDs would I use to get information on all the processes and disk space information that are on a particular host. where can i find out information on all of this? thanks (3 Replies)
Discussion started by: SkySmart
3 Replies

3. UNIX for Dummies Questions & Answers

Inserting space between numbers

Are there any one-liners or short codes to separate 4-digit numbers into 2? For example, input.txt: 1234 5678 3091 2851 Output.txt: 12 34 56 78 30 91 28 51 (7 Replies)
Discussion started by: pxalpine
7 Replies

4. UNIX for Dummies Questions & Answers

Snmp Disk Problem = Negative Values

Ok, so i monitor disk space on remote machines using snmp. Works great for me. But whenever a particular partition happens to have Terabytes of data, snmp starts reporting negative values. Can someone please tell me how to get around this problem? The AllocationUnit is 512 bytes. Weird... (0 Replies)
Discussion started by: SkySmart
0 Replies

5. UNIX for Dummies Questions & Answers

insert white space between numbers

Hello all, I have a file with several lines like this: (1,1) (4,10) (8,23) (17, 4) (6,8) etc. and I need this: ( 1 , 1 ) ( 4 , 10 ) ( 8 , 23 ) ( 17 , 4 ) ( 6 , 8 ) How do I insert a space between the left parenthesis and the first number, between the first number and the comma,... (2 Replies)
Discussion started by: MDeBiasse
2 Replies

6. Shell Programming and Scripting

How to use the sub command to replace a <space> between two numbers

Hi I have file which stores dates. 2008-09-12|2008-09-12<space1>00:00:12|<space2>2008-09-12 Some one please help me on how should I use the sub command to replace only the space which has numbers on both sides. Expected output 2008-09-12|2008-09-1200:00:12|<space2>2008-09-12 --... (4 Replies)
Discussion started by: machomaddy
4 Replies

7. Solaris

Inaccurate file size report with du?

This is really strange... my system's du is reporting file size smaller than it really is... and it is only happening on one of Solaris 10 I have... #ls -lrt tracks.txt -rw-r--r-- 1 oracle oinstall 2166525362 May 16 03:32 tracks.txt # du -k tracks.txt 953805 tracks.txt # du -h... (4 Replies)
Discussion started by: JT-KGY
4 Replies

8. Shell Programming and Scripting

Inaccurate awk response

can someone help me figure out what's wrong with this awk code? awk '/CRON/ && /./ {i++;} { if((i>=4) && (i<8)) {print | "TIMO=$(date +%s) ; TIMO2=$(uname;who) ; echo $TIMO ---- 1 ---- Yes_Recoded,$TIMO2 ---- i >> /tmp/gona.txt" } else if (i>=8) {print | "TIMO=$(date +%s) ;... (2 Replies)
Discussion started by: SkySmart
2 Replies

9. Shell Programming and Scripting

Remove space before numbers in delimited file

Hi, I have a file which looks like this FORD|1333-1| 10000100010203| 100040507697|0002|356.45|5555| SSSSY|KKKKM|1000005|10| N096|10043| C987 I need the output to look like this FORD|1333-1|10000100010203|100040507697|0002|356.45|5555| SSSSY|KKKKM|1000005|10| N096|10043| C987 The leading... (8 Replies)
Discussion started by: wahi80
8 Replies

10. UNIX for Beginners Questions & Answers

Inaccurate scanning of Bash array elements

username=cogiz #!/bin/bash shuffle() #@ USAGE: shuffle { #@ TODO: add options for multiple or partial decks Deck=$( printf "%s\n" {2,3,4,5,6,7,8,9,T,J,Q,K,A}{H,S,D,C} | awk '## Seed the random number generator BEGIN { srand() } ## Put a random number in front... (4 Replies)
Discussion started by: cogiz
4 Replies
snmp-ups(8)						      Network UPS Tools (NUT)						       snmp-ups(8)

NAME
snmp-ups - Driver for RFC 1628 SNMP UPS equipment NOTE
This man page only documents the hardware-specific features of the snmp-ups driver. For information about the core driver, see nutups- drv(8). SUPPORTED HARDWARE
Any UPS that is RFC 1628 (UPS MIB) compliant. EXPERIMENTAL DRIVER
This driver has been tagged experimental and is not built by default. REQUIREMENTS
This driver needs UCD SNMP, aka Net-SNMP installed to compile successfully. See http://www.net-snmp.org/ for more information. On Red Hat 7.2, these packages are required: ucd-snmp-devel-4.2.3-1, ucd-snmp-4.2.3-1, ucd-snmp-utils-4.2.3-1 You must install SNMP-UPS-MIB.txt in your MIBs directory - typically /usr/share/snmp/mibs/, but it may vary from system to system. You can generate this from chapter 4 of RFC 1628 (see http://www.faqs.org). EXTRA ARGUMENTS
This driver supports the following optional settings in the ups.conf(5): community=name Set community name (default = public) snmp_version=version Set SNMP version (default = v1, the other allowed value is v2c) INSTALLATION
This driver is not built by default. You can build it by using "configure --with-drivers=snmp-ups" before calling make. IMPLEMENTATION
The hostname of the UPS is specified with the "port" value in ups.conf, i.e.: [snmp] driver = snmp-ups port = snmp-ups.example.com community = public snmp_version = v1 SUPPORTED VARIABLES
INFO_MFR UPS Manufacturer INFO_MODEL UPS Model INFO_FIRMREV Firmware/Software Version INFO_STATUS OFF, OL, OB, BOOST, TRIM INFO_BATTPCT Battery percentage INFO_RUNTIME Predicted runtime on battery INFO_BATTVOLT Battery Voltage INFO_OUTVOLT Output Voltage PLANNED SUPPORT
INFO_UTILITY Input Voltage INFO_ACFREQ AC Frequency INFO_UPSTEM UPS Temperature INFO_LOADPCT Load Percentage CMD_? Not determined AUTHORS
Arnaud Quette, Hans Ekkehard Plesser SEE ALSO
The core driver: nutupsdrv(8) Internet resources: The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/ NUT mailing list archives and information: http://lists.exploits.org/ Tue Oct 22 2002 snmp-ups(8)
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy