<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extending SNMP - how to change STRING to GAUGE in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Extending-SNMP-how-to-change-STRING-to-GAUGE/m-p/125854#M23191</link>
    <description>&lt;P&gt;Hi! I have the same problem, anybody found how to configure the new OID as GAUGE or INTEGER?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 07:24:00 GMT</pubDate>
    <dc:creator>Diego_dg</dc:creator>
    <dc:date>2021-08-06T07:24:00Z</dc:date>
    <item>
      <title>Extending SNMP - how to change STRING to GAUGE</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Extending-SNMP-how-to-change-STRING-to-GAUGE/m-p/73884#M14994</link>
      <description>&lt;P&gt;We are experimenting with using userDefinedSettings.conf settings to SNMP query the gateway for custom statistics and statuses. We have run into an issue where the returned data needs to be formatted as a GAUGE not the default STRING. Any idea how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;UserDefinedSettings.conf:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;[Expert@gateway:0]# cat /etc/snmp/userDefinedSettings.conf&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;extend .1.3.6.1.4.1.8072.35 fwhc /home/admin/fw_health_check.sh snmp checkScore&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Script Output:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;[Expert@gateway:0]# /home/admin/fw_health_check.sh snmp checkScore&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SNMPWALK &lt;U&gt;output:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;[Expert@gateway:0]# snmpwalk -v2c -c public localhost .1.3.6.1.4.1.8072.35&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.1.0 = INTEGER: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.2.4.102.119.104.99 = STRING: "/home/admin/fw_health_check.sh"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.3.4.102.119.104.99 = STRING: "snmp checkScore"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.4.4.102.119.104.99 = ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.5.4.102.119.104.99 = INTEGER: 5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.6.4.102.119.104.99 = INTEGER: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.7.4.102.119.104.99 = INTEGER: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.20.4.102.119.104.99 = INTEGER: 4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.2.1.21.4.102.119.104.99 = INTEGER: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.3.1.1.4.102.119.104.99 = STRING: "8"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.3.1.2.4.102.119.104.99 = STRING: "8"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.3.1.3.4.102.119.104.99 = INTEGER: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.3.1.4.4.102.119.104.99 = INTEGER: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NET-SNMP-MIB::netSnmp.35.4.1.2.4.102.119.104.99.1 = &lt;STRONG&gt;STRING&lt;/STRONG&gt;: "8"&amp;nbsp; &amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;--- Output&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:03:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Extending-SNMP-how-to-change-STRING-to-GAUGE/m-p/73884#M14994</guid>
      <dc:creator>Josh_Dillig</dc:creator>
      <dc:date>2020-01-31T16:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extending SNMP - how to change STRING to GAUGE</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Extending-SNMP-how-to-change-STRING-to-GAUGE/m-p/125854#M23191</link>
      <description>&lt;P&gt;Hi! I have the same problem, anybody found how to configure the new OID as GAUGE or INTEGER?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 07:24:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Extending-SNMP-how-to-change-STRING-to-GAUGE/m-p/125854#M23191</guid>
      <dc:creator>Diego_dg</dc:creator>
      <dc:date>2021-08-06T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extending SNMP - how to change STRING to GAUGE</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Extending-SNMP-how-to-change-STRING-to-GAUGE/m-p/125867#M23192</link>
      <description>&lt;P&gt;Because this is not Check Point specific but standard NetSNMP, I suggest looking at &lt;A href="https://net-snmp.sourceforge.io/docs/man/snmpd.conf.html#lbAZ" target="_self"&gt;Manpage of SNMPD.CONF&lt;/A&gt; and try to make use of the pass directive instead of the extend one.&lt;/P&gt;
&lt;P&gt;I haven't tried this myself, so I cannot tell you if this works on Check Points version of NetSNMP, but it should because &lt;A href="https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_Gaia_Hardening/Topics-GAH/Modified_RPM_Packages_from_RHEL_7_8.htm?Highlight=snmp" target="_self"&gt;Gaia Hardening Specification&lt;/A&gt; says they used the NetSNMP RPM from RHEL 7.4/7.6 distribution and only added SHA-256 and SHA-512 support for USM users.&lt;/P&gt;
&lt;P&gt;Maybe you can share your results here.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 10:39:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Extending-SNMP-how-to-change-STRING-to-GAUGE/m-p/125867#M23192</guid>
      <dc:creator>Tobias_Moritz</dc:creator>
      <dc:date>2021-08-06T10:39:16Z</dc:date>
    </item>
  </channel>
</rss>

