[Nagiosplug-help] Check_snmp and Could not open pipe: error
Subhendu Ghosh
sghosh at sghosh.org
Wed Jun 4 07:59:03 CEST 2003
On Wed, 4 Jun 2003, Pietro Bandera wrote:
> Hi all
>
> I need to check the disk of some ibm server by this oid
>
> enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
> cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ib
> mServeRaidPhysDeviceEntry.ibmServeRaidPhysDeviceStatus
>
<snip>
>
> []# snmpget 192.168.0.37 public
> enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
> cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
> ntry.ibmServeRaidPhysDeviceStatus.\"113\"
> enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
> cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
> ntry.ibmServeRaidPhysDeviceStatus."113" = online(2)
>
> I got a right answer
>
> while if i use the check_snmp command with the same sintax i got this:
>
>
> []# /usr/local/netsaint/libexec/check_snmp 192.168.0.37 -C public -o
> enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
> cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
> ntry.ibmServeRaidPhysDeviceStatus.\"113\" -l Disco -s "online(2)"
> Could not open pipe: /usr/bin/snmpget -m ALL -v 1 192.168.0.37 public
> enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
> cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
> ntry.ibmServeRaidPhysDeviceStatus."113"
>
>
The error says "could not open pipe"
check_snmp was probably compiled on a different system and the snmpget
binary is in a different location or doesn't have o+x permissions.
--
-sg
More information about the Help
mailing list