Re: NET-SNMP and AIX Storage Statistics

2012-04-16 Thread Stephen Grecni
I also noticed in the config.log the following messages:
 
# cat config.log | grep disk
configure:16216: checking sys/diskio.h usability
conftest.c:117:24: error: sys/diskio.h: No such file or directory
| #include sys/diskio.h
configure:16216: checking sys/diskio.h presence
conftest.c:84:24: error: sys/diskio.h: No such file or directory
| #include sys/diskio.h
configure:16216: checking for sys/diskio.h
configure:16527: checking for sys/disklabel.h
conftest.c:130:27: error: sys/disklabel.h: No such file or directory
| #include sys/disklabel.h
ac_cv_header_sys_diskio_h=no
ac_cv_header_sys_disklabel_h=no
Is that an issue ? 
 
Thanks,
 
Steve


 Dave Shield d.t.shi...@liverpool.ac.uk 4/13/2012 5:35 AM 
On 12 April 2012 17:30, Stephen Grecni sgre...@metrohealth.org
wrote:
 I installed net-snmp 5.7.1 on AIX 5.3. (Thanks for the compile help).
When I
 run the command  snmpwalk -v2c -c private hostname dsk I do not get
anything
 returned for the UCD-SNMP-MIB::dis**  fields.

Two possibilities spring to mind:
   - either the agent is not configured to allow access to these
objects,
   - or the agent does not provide this information under AIX

You can check the first by seeing what else you can see under the
'ucd-snmp'
tree.   If the output of
 snmpwalk -v2c -c private hostname   ucdavis

is essentially empty when querying the AIX agent, then the first is
the
most likely cause.   Check the access control settings in the agent.

If the output is broadly similar for both AIX and Linux agents, but
with
individual chunks missing under AIX,  then it's more likely to be due
to
the agent implementation code   (which is highly OS-specific)

Given that you've compiled the agent yourself, it's reasonably simple
to
determine what modules are being used.
  Please list the contents of 'agent/mibgroup/ucd-snmp' and look at
the
object files (.o/.lo).   I would expect to see either disk.o  *or* 
disk_hw.o
Which is present?
   If it's disk_hw.o, then please list  'agent/mibgroup/hardware/fsys'
as well.
Which .o files are present there?


 is there documentation on configuring
 net-snmp on AIX or is it the same as other OS versions ?

It's essentially the same across all OS's.
The main difference is with what code is present, and hence which
MIB modules are implemented on particular OS's.   Given that AIX
is an environment that (AFAIK) none of the core developers have
access to,  this may well be one of the weaker systems.

Dave

MetroHealth is an Academic Health Care System committed to Our
Communities by Saving Lives, Restoring Health, Promoting Wellness, and
providing Outstanding, Life-long Care Accessible to All. Visit us at
http://www.metrohealth.org. See remarkable patient stories at 
thecomeback.org. Follow us 
on Facebook: http://www.facebook.com/MetroHealthCLE, Twitter:
http://twitter.com/MetroHealthCLE, and
YouTube:http://www.youtube.com/user/MetroHealthCLE.

This email and all attachments that may have been included are intended
only for the use of the party to whom/which the email is addressed and
may contain information that is privileged, confidential, or exempt from
disclosure under applicable law. If you are not the addressee or the
employee or 
agent of the intended recipient, you are hereby notified that you are
strictly prohibited from printing, storing, disseminating, distributing,
or copying this communication. If you have received this notification in
error, please contact the Director of Risk/Privacy Management at
(216)778-5728. For a copy of 
our Notice of Privacy Practices, please visit:
http://www.metrohealth.org/general/privacy.asp

--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: NET-SNMP and AIX Storage Statistics

2012-04-16 Thread Stephen Grecni
From the displays it looks like the issue is  the agent is not
configured to allow access to these objects. Is that  normal AIX
permissions or related to net-snmp configuration ? 
 
Thanks for the help. 
 
Steve 
 
../agent/mibgroup/ucd-snmp
# ls -l | grep disk
-rw-r--r--   1 1274 1274  26470 Sep 28 2011  disk.c
-rw-r--r--   1 1274 1274632 Sep 28 2011  disk.h
-rw-r--r--   1 1274 1274  12110 Sep 28 2011  disk_hw.c
-rw-r--r--   1 1274 1274674 Sep 28 2011  disk_hw.h
-rw-r--r--   1 1274 1274  43553 Sep 28 2011  diskio.c
-rw-r--r--   1 1274 1274   1133 Sep 28 2011  diskio.h
 
../agent/mibgroup/hardware/fsys
# ls -l
total 104
-rw-r--r--   1 1274 1274   5009 Sep 28 2011 
fsys_getfsstats.c
-rw-r--r--   1 1274 1274   4691 Sep 28 2011  fsys_mntctl.c
-rw-r--r--   1 1274 1274   7480 Sep 28 2011  fsys_mntent.c
-rw-r--r--   1 1274 1274390 Sep 28 2011  fsys_void.c
-rw-r--r--   1 1274 1274   8310 Sep 28 2011  hw_fsys.c
-rw-r--r--   1 1274 1274 56 Sep 28 2011  hw_fsys.h
-rw-r--r--   1 1274 1274   3548 Sep 28 2011  mnttypes.h
-rw-r--r--   1 1274 1274   3199 Sep 28 2011  mounts.h
 
# snmpwalk -v2c -c private hostname ucdavis
UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
UCD-SNMP-MIB::prNames.1 = STRING: /usr/sbin/cron
UCD-SNMP-MIB::prMin.1 = INTEGER: 1
UCD-SNMP-MIB::prMax.1 = INTEGER: 0
UCD-SNMP-MIB::prCount.1 = INTEGER: 0
UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: error(1)
UCD-SNMP-MIB::prErrMessage.1 = STRING: No /usr/sbin/cron process
running
UCD-SNMP-MIB::prErrFix.1 = INTEGER: noError(0)
UCD-SNMP-MIB::prErrFixCmd.1 = STRING:
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 4194304 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 4193360 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 4194304 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 2975488 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 7168848 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 0
UCD-SNMP-MIB::dskIndex.2 = INTEGER: 1
UCD-SNMP-MIB::dskIndex.3 = INTEGER: 2
UCD-SNMP-MIB::dskIndex.4 = INTEGER: 3
UCD-SNMP-MIB::dskPath.1 = STRING: /dev/hd4
UCD-SNMP-MIB::dskPath.2 = STRING: /dev/hd2
UCD-SNMP-MIB::dskPath.3 = STRING: /
UCD-SNMP-MIB::dskPath.4 = STRING: /usr
UCD-SNMP-MIB::dskDevice.1 = STRING:
UCD-SNMP-MIB::dskDevice.2 = STRING:
UCD-SNMP-MIB::dskDevice.3 = STRING:
UCD-SNMP-MIB::dskDevice.4 = STRING:
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.2 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.3 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.4 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.3 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.4 = INTEGER: 10
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.2 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.3 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.4 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.2 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.3 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.4 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.2 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.3 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.4 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.2 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.3 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.4 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.2 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.3 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.4 = INTEGER: 0
UCD-SNMP-MIB::dskTotalLow.1 = Gauge32: 0
UCD-SNMP-MIB::dskTotalLow.2 = Gauge32: 0
UCD-SNMP-MIB::dskTotalLow.3 = Gauge32: 0
UCD-SNMP-MIB::dskTotalLow.4 = Gauge32: 0
UCD-SNMP-MIB::dskTotalHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskTotalHigh.2 = Gauge32: 0
UCD-SNMP-MIB::dskTotalHigh.3 = Gauge32: 0
UCD-SNMP-MIB::dskTotalHigh.4 = Gauge32: 0
UCD-SNMP-MIB::dskAvailLow.1 = Gauge32: 0
UCD-SNMP-MIB::dskAvailLow.2 = Gauge32: 0
UCD-SNMP-MIB::dskAvailLow.3 = Gauge32: 0
UCD-SNMP-MIB::dskAvailLow.4 = Gauge32: 0
UCD-SNMP-MIB::dskAvailHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskAvailHigh.2 = Gauge32: 0
UCD-SNMP-MIB::dskAvailHigh.3 = Gauge32: 0
UCD-SNMP-MIB::dskAvailHigh.4 = Gauge32: 0
UCD-SNMP-MIB::dskUsedLow.1 = Gauge32: 0
UCD-SNMP-MIB::dskUsedLow.2 = Gauge32: 0
UCD-SNMP-MIB::dskUsedLow.3 = Gauge32: 0
UCD-SNMP-MIB::dskUsedLow.4 = Gauge32: 0
UCD-SNMP-MIB::dskUsedHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskUsedHigh.2 = Gauge32: 0
UCD-SNMP-MIB::dskUsedHigh.3 = Gauge32: 0
UCD-SNMP-MIB::dskUsedHigh.4 = Gauge32: 0
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: error(1)
UCD-SNMP-MIB::dskErrorFlag.2 = INTEGER: error(1)
UCD-SNMP-MIB::dskErrorFlag.3 = INTEGER: error(1)
UCD-SNMP-MIB::dskErrorFlag.4 = INTEGER: error(1)
UCD-SNMP-MIB::dskErrorMsg.1 = STRING: 

Re: NET-SNMP and AIX Storage Statistics

2012-04-13 Thread Dave Shield
On 12 April 2012 17:30, Stephen Grecni sgre...@metrohealth.org wrote:
 I installed net-snmp 5.7.1 on AIX 5.3. (Thanks for the compile help). When I
 run the command  snmpwalk -v2c -c private hostname dsk I do not get anything
 returned for the UCD-SNMP-MIB::dis**  fields.

Two possibilities spring to mind:
   - either the agent is not configured to allow access to these objects,
   - or the agent does not provide this information under AIX

You can check the first by seeing what else you can see under the 'ucd-snmp'
tree.   If the output of
 snmpwalk -v2c -c private hostname   ucdavis

is essentially empty when querying the AIX agent, then the first is the
most likely cause.   Check the access control settings in the agent.

If the output is broadly similar for both AIX and Linux agents, but with
individual chunks missing under AIX,  then it's more likely to be due to
the agent implementation code   (which is highly OS-specific)

Given that you've compiled the agent yourself, it's reasonably simple to
determine what modules are being used.
  Please list the contents of 'agent/mibgroup/ucd-snmp' and look at the
object files (.o/.lo).   I would expect to see either disk.o  *or*  disk_hw.o
Which is present?
   If it's disk_hw.o, then please list  'agent/mibgroup/hardware/fsys' as well.
Which .o files are present there?


 is there documentation on configuring
 net-snmp on AIX or is it the same as other OS versions ?

It's essentially the same across all OS's.
The main difference is with what code is present, and hence which
MIB modules are implemented on particular OS's.   Given that AIX
is an environment that (AFAIK) none of the core developers have
access to,  this may well be one of the weaker systems.

Dave

--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users