I wrote a plugin for a fortimail device but I get the following error:
This resource is turned off or has not been configured properly.
The problem is: Invalid configuration: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)
Please turn on the server, or fix its Configuration Properties.
There is network connectivity, and I can do an snmpwalk to the server.
What is going wrong here? Do I need to include snmp settings (snmpIp, snmpCommunity) in my plugin or use the shared configuration properties?
How can I test it from the command line with the correct snmpIp?
Regards, Dieter
<plugin>
<platform name="Fortimail">
<config include="snmp"/>
<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="UTILIZATION"
units="jiffys"
defaultOn="true"
collectionType="static"/>
<metric name="CPU Utilization"
alias="fmlSysCpuUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Deferred Mail Queue"
alias="fmlMailOptionsDeferQueue.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Log Disk Usage"
alias="fmlSysLogDiskUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Mail Disk Usage"
alias="fmlSysMailDiskUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Memory Usage"
alias="fmlSysMemUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
</platform>
</plugin>
This resource is turned off or has not been configured properly.
The problem is: Invalid configuration: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)
Please turn on the server, or fix its Configuration Properties.
There is network connectivity, and I can do an snmpwalk to the server.
What is going wrong here? Do I need to include snmp settings (snmpIp, snmpCommunity) in my plugin or use the shared configuration properties?
How can I test it from the command line with the correct snmpIp?
Regards, Dieter
<plugin>
<platform name="Fortimail">
<config include="snmp"/>
<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="UTILIZATION"
units="jiffys"
defaultOn="true"
collectionType="static"/>
<metric name="CPU Utilization"
alias="fmlSysCpuUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Deferred Mail Queue"
alias="fmlMailOptionsDeferQueue.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Log Disk Usage"
alias="fmlSysLogDiskUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Mail Disk Usage"
alias="fmlSysMailDiskUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
<metric name="Memory Usage"
alias="fmlSysMemUsage.0"
category="UTILIZATION"
units="percent"
defaultOn="true"
collectionType="static"/>
</platform>
</plugin>