System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

SNMP and LVM Configuration in HPUX v3

SOLVED
Go to solution
Joao Rei
Frequent Advisor

SNMP and LVM Configuration in HPUX v3


Hello,

We use SNMP to generate alarms in our nagios system.

In a itanium 11.31 system after vgimport of a volume group we cant get the filesystem information with SNMP.

I mounted two new filesystems from the vgimport VG:

/dev/vg02/backup 4096000000 3547867238 513874518 87% /backup_omniback
/dev/vg02/backup2 1228800000 281361175 888223904 24% /backup_omniback2


Is It because the size the filesystem?
Or the lenght of the data?

We use the following command in a working system:

./check_snmp_hpux_storage.pl -H [IP2] -C [SNMPSTRING] -m / -w 99 -c 100
[FS1]: 100%used(0MB/0MB) [FS2]: 17%used(424MB/2512MB) [FS3]: 81%used(6482MB/8000MB) [FS4]: 31%used(625MB/2000MB) [FS5]: 39%used(5814MB/15008MB) [FS6]: 7%used(22MB/304MB) [FS7]: 1%used(2MB/128MB) [FS8]: 29%used(4336MB/15008MB) [FS9]: 58%used(582MB/1008MB) (>100%) : CRITICAL

But on my vgimport system we get:

./check_snmp_hpux_storage.pl -H [IP1] -C [SNMPSTRING] -m / -w 99 -c 100
ERROR: Description/Type table : Requested table is empty or does not exist.

We stop having access to SNMP data after vgimport and mount of 2 filesystems.

Did anyone had the same problem?

Regards,

Joao Rei










5 REPLIES
Olivier Masse
Honored Contributor

Re: SNMP and LVM Configuration in HPUX v3

That script probably might not support the output of LVM commands at 11.31 which had a few changes due to LVM 2.0. You can try contacting the author of the script or try modifying it yourself.
Fabio Ettore
Honored Contributor

Re: SNMP and LVM Configuration in HPUX v3

Hi,

I don't know if it's your situation but I'd check if SNMP agents are running on the vgimport-system. Consider that SNMP replies to all of that kind of requests only if agents are running. They are usually 4:

# ps -ef|grep -i snmp
root 5860 1 0 Dec 15 ? 0:33 /usr/sbin/snmpdm
root 5903 1 0 Dec 15 ? 0:00 /usr/lbin/cmsnmpd
root 9769 9749 1 09:58:59 pts/0 0:00 grep -i snmp
# ps -ef|grep -i mib
root 5887 1 0 Dec 15 ? 3:12 /usr/sbin/mib2agt
# ps -ef|grep -i unix
root 5871 1 0 Dec 15 ? 0:00 /usr/sbin/hp_unixagt

- snmpdm starts with /sbin/init.d/SnmpMaster;
- cmsnmpd starts with /sbin/init.d/cmsnmpagt;
- mib2agt starts with /sbin/init.d/SnmpMib2;
- hp_unixagt starts with /sbin/init.d/SnmpHpunix.

If they are not up then run them by rc script under /sbin/init.d starting from SnmpMaster.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Fabrice Pouchot
Occasional Visitor

Re: SNMP and LVM Configuration in HPUX v3

Hi,
Do you finaly found an explanation ?
Is it related to LVM V2.0 or something else?

Regards
Fabrice
Joao Rei
Frequent Advisor

Re: SNMP and LVM Configuration in HPUX v3

I found no solution.
Dave Johnson_1
Super Advisor
Solution

Re: SNMP and LVM Configuration in HPUX v3

If you post the program check_snmp_hpux_stroage.pl I would be happy to have a look at it.