<def-group>
  <definition class="compliance" id="snmpd_not_default_password" version="2">
    <metadata>
      <title>SNMP default communities disabled</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>SNMP default communities must be removed.</description>
      <reference source="galford" ref_id="20140813" ref_url="test_attestation" />
    </metadata>
    <criteria operator="OR">
      <extend_definition comment="SMNP installed" definition_ref="package_net-snmp_removed" />
      <criterion comment="SNMP communities" test_ref="test_snmp_default_communities" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="Check snmpd configuration" id="test_snmp_default_communities" version="1">
    <ind:object object_ref="object_snmp_default_communities" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_snmp_default_communities" version="1">
    <ind:filepath>/etc/snmp/snmpd.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*(com2se|rocommunity|rwcommunity|createUser).*(public|private)</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
