[Nagiosplug-help] Check_snmp and Could not open pipe: error

Pietro Bandera pietrob at lansystems.it
Wed Jun 4 02:01:07 CEST 2003


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

Unfortunatly the output of that snmp call i this:

enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."110" = empty(7)
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."111" = empty(7)
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."112" = empty(7)
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."113" = online(2)
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."114" = empty(7)
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."115" = online(2)
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."116" = empty(7)
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."117" = empty(7)

I said unfortunatly because, as you can see, the identifier fo the disk
i betweeen "comma"!!!(arggg damn ibm)

That seems not to be a problem for snmpget command in fact if i do this:

[]# 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"


Why?

Can someone help me?

Thanks 

Pietro






More information about the Help mailing list