VMware Cloud Community
Leanid
Contributor
Contributor

CISCO CSS plugin problems

I have tried to use unsupported CISCO CSS plugin.
Problem is it can not auto-detect server, it returns (0), so it never goes to detecting services and interfaces. At the same time generic network device plugin works fine. It just does not have services I really need.

What could be the problem? snmpwalk does find all information. Maybe I am missing something simple. There is simplified version of CSS plugin:

<?xml version="1.0"?>
<plugin>
<classpath>
<include name="pdk/plugins/netdevice-plugin.jar" />
</classpath>

<property name="MIBDIR"
value="C:/HQ/CSS" />
<property name="MIBS"
value="${MIBDIR}/cisco-apent.mib,${MIBDIR}/svcext.mib,${MIBDIR}/RFC1213-MIB.my,${MIBDIR}/CISCO-SMI.my,${MIBDIR}/SNMP-FRAMEWORK-MIB.my,${MIBDIR}/SNMPv2-SMI.my,${MIBDIR}/SNMPv2-TC-V1SMI.my,${MIBDIR}/DISMAN-EVENT-MIB.txt" />

<platform name="Cisco CSS">
<config include="snmp"/>

<plugin type="measurement"
class="org.hyperic.hq.product.SNMPMeasurementPlugin" />
<plugin type="log_track"
class="org.hyperic.hq.plugin.netdevice.SNMPTrapReceiverPlugin"/>

<property name="template" value="${snmp.template}:${alias}" />

<metric name="Availability"
template="${snmp.template},Avail=true:sysUpTime"
indicator="true"/>

<metric name="Uptime" alias="sysUpTime"
category="AVAILABILITY" units="jiffys" defaultOn="true"
collectionType="static" />

<filter name="index"
value="snmpIndexName=${snmpIndexName},snmpIndexValue=%snmpIndexValue%" />
<filter name="template"
value="${snmp.template}:${alias}:${index}" />

<server>
<plugin type="autoinventory"
class="org.hyperic.hq.plugin.netdevice.NetworkDeviceDetector" />
<service name="Service">
<config>
<option name="snmpIndexValue"
description="SNMP Index Value" />
</config>

<property name="snmpIndexName" value="apSvcName" />
<plugin type="autoinventory" />
<metric name="Availability"
template="${snmp.template},Avail=true:apSvcState:${Index}"
indicator="true" />
<metric name="Average Response Time"
alias="apSvcAvgResponseTime" category="PERFORMANCE" units="ms"
indicator="true" />
</service>
</server>
</platform>
</plugin>


I always getting:
2008-11-28 16:38:47,726 INFO [Thread-79] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@697] Received auto-inventory report from name.domain.com; IPs -> 100.00.0.100; CertDN -> CAM-AGENT-1226781436840-5000003eee505756511-3845625515667899526; (0 servers)

and no services autodescovered.

Message was edited by: Leanid
Reply
0 Kudos
4 Replies
excowboy
Virtuoso
Virtuoso

Hi,

maybe it's because of the missing NetworkDevicePlatformDetector:

plugin type="autoinventory"
class="org.hyperic.hq.plugin.netdevice.NetworkDevicePlatformDetector"/>

There is an example in your HQ Agent installation for an implementation for a SNMP plugin: pdk/examples/vyatta-plugin.xml

Cheers,
Mirko
Reply
0 Kudos
Leanid
Contributor
Contributor

I have added it. Same thing:
2008-12-16 09:25:14,484 INFO [http-0.0.0.0-7080-14] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@541] AutoinventoryManager.getScanStatus called
2008-12-16 09:25:14,484 INFO [http-0.0.0.0-7080-14] [org.hyperic.hq.autoinventory.agent.client.LegacyAICommandsClientImpl@102] CommandsClient.getScanStatus
2008-12-16 09:25:14,484 INFO [http-0.0.0.0-7080-14] [org.hyperic.hq.agent.client.AgentConnection@120] 100.000.000.000:2144 -> autoinv:getScanStatus
2008-12-16 09:25:14,672 INFO [http-0.0.0.0-7080-14] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@541] AutoinventoryManager.getScanStatus called
2008-12-16 09:25:14,672 INFO [http-0.0.0.0-7080-14] [org.hyperic.hq.autoinventory.agent.client.LegacyAICommandsClientImpl@102] CommandsClient.getScanStatus
2008-12-16 09:25:14,672 INFO [http-0.0.0.0-7080-14] [org.hyperic.hq.agent.client.AgentConnection@120] 100.000.000:2144 -> autoinv:getScanStatus
2008-12-16 09:25:20,562 INFO [http-0.0.0.0-7080-12] [org.hyperic.hq.autoinventory.server.session.AIScheduleManagerEJBImpl@193] Scheduling job for immediate execution: JobDetail 'autoinventory.aiScan-10035-1-config-21187811-1229441120562': jobClass: 'org.hyperic.hq.autoinventory.server.session.AIScanJob isStateful: false isVolatile: true isDurable: false requestsRecovers: false
2008-12-16 09:25:20,609 INFO [org.hyperic.hq.scheduler.server.mbean.SchedulerService_Worker-4] [org.hyperic.hq.autoinventory.agent.client.LegacyAICommandsClientImpl@73] AICommandsClient.startScan for 100.000.000:2144
2008-12-16 09:25:20,609 INFO [org.hyperic.hq.scheduler.server.mbean.SchedulerService_Worker-4] [org.hyperic.hq.agent.client.AgentConnection@120] 100.000.000:2144 -> autoinv:startScan
2008-12-16 09:25:21,703 INFO [Thread-333] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@697] Received auto-inventory report from CSS-XXXXX.my.com; IPs -> 100.000.111; CertDN -> CAM-AGENT-1227121436840-5000009992505756511-3852125515665179526; (0 servers)
2008-12-16 09:25:21,719 INFO [Thread-333] [org.hyperic.hq.appdef.server.session.AI2AppdefDiff@105] Applying existing appdef attributes for device Cisco CSS=CSS-XXXXX.my.com
2008-12-16 09:25:21,719 INFO [Thread-333] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@762] Auto-approving inventory for CSS-XXXXX.my.com
2008-12-16 09:25:21,719 ERROR [Thread-333] [org.hyperic.hq.appdef.server.session.AIQueueManagerEJBImpl@529] processQueue: platform with ID=null
Reply
0 Kudos
Leanid
Contributor
Contributor

My script does show availability and Uptime, but never finds servers.
I guess it can't read apSvcName. It needs MIBS for that, but maybe I specified mibs dir somehow incorrectly so HQ can not find or use it.

at the same time command:
C:\HQ\CSS>snmpwalk.exe -v 2c -M C:/HQ/CSS -m ALL -c mycomunity 100.000.00.111 apSvcName
returns list of services
Reply
0 Kudos
Leanid
Contributor
Contributor

This is my symplyfied version. I even remapped OID, so no need in MIBS. Still does not work. Auto-discovery returns server (0) and no Services found.
but snmpwalk all returns right results. I think I give up on this one. I should be missing something very simple one.

C:\HQ\CSS>snmpwalk.exe -v 2c -c mycomm 100.00.000.111 1.3.6.1.4.1.9.9.368.1
.15.2.1.1
C:\HQ\CSS>snmpwalk.exe -v 2c -c mycomm 100.00.000.111 1.3.6.1.4.1.9.9.368.1
.15.2.1.17
C:\HQ\CSS>snmpwalk.exe -v 2c -c mycomm 100.00.000.111 1.3.6.1.4.1.9.9.368.1
.15.2.1.20

--------------------------------------------------------------
<plugin>
<classpath>
<include name="pdk/plugins/netdevice-plugin.jar" />
</classpath>
<filter name="apSvcName"
value="1.3.6.1.4.1.9.9.368.1.15.2.1.1"/>

<filter name="apSvcStatus"
value="1.3.6.1.4.1.9.9.368.1.15.2.1.17"/>

<filter name="apSvcConnections"
value="1.3.6.1.4.1.9.9.368.1.15.2.1.20"/>



<platform name="Cisco CSS">
<config include="snmp"/>
<plugin type="autoinventory"
class="org.hyperic.hq.plugin.netdevice.NetworkDevicePlatformDetector"/>


<plugin type="measurement"
class="org.hyperic.hq.product.SNMPMeasurementPlugin" />

<property name="template" value="${snmp.template}:${alias}" />

<metric name="Availability"
template="${snmp.template},Avail=true:sysUpTime"
indicator="true"/>

<metric name="Uptime" alias="sysUpTime"
category="AVAILABILITY" units="jiffys" defaultOn="true"
collectionType="static" />

<filter name="index"
value="snmpIndexName=${snmpIndexName},snmpIndexValue=%snmpIndexValue%" />
<filter name="template"
value="${snmp.template}:${alias}:${index}" />
<server>
<plugin type="autoinventory"
class="org.hyperic.hq.plugin.netdevice.NetworkDeviceDetector" />

<service name="Service">
<config>
<option name="snmpIndexValue"
description="SNMP Index Value" />
</config>

<property name="snmpIndexName" value="apSvcName" />
<plugin type="autoinventory"/>
<metric name="Availability"
template="${snmp.template},Avail=true:apSvcStatus:${Index}"
indicator="true" />
<metric name="Connections"
template="${snmp.template}:apSvcConnections:${Index}"
indicator="true"/>

</service>
</server>
</platform>
Reply
0 Kudos