In NetOps Portal we see missing data in Juniper FW Sessions.
Here is a snip from the csv Export (I will attach the full data):
"6/12/2024 16:18:00","0.0"
"6/12/2024 16:19:00","0.0"
"6/12/2024 16:20:00","0.0166666666666667"
"6/12/2024 16:21:00",
"6/12/2024 16:22:00",
"6/12/2024 16:23:00",
"6/12/2024 16:24:00",
"6/12/2024 16:25:00",
"6/12/2024 16:26:00",
"6/12/2024 16:27:00","0.0"
"6/12/2024 16:28:00","0.0"
"6/12/2024 16:29:00","0.0"
You can see that every time a new session is created, a data gap will follow.
Here we see that the device answers correctly but PM seems to have problems with calculating the metric:
Juni 12 16:21:59.966: response=RESPONSE[requestID=210886109, errorStatus=Success(0), errorIndex=0, VBS[
Juni 12 16:21:59.966: 1.3.6.1.4.1.2636.3.39.1.12.1.4.1.3.0 = 46
Juni 12 16:21:59.966: 1.3.6.1.4.1.2636.3.39.1.12.1.4.1.5.0 = 1
Juni 12 16:21:59.966: 1.3.6.1.2.1.1.3.0 = 366 days, 3:33:51.83
Juni 12 16:21:59.966: ]]
.....
Juni 12 16:21:59.966: Poll Response after data processing: ProcesssedPollResponse:AbstractPollResponse [itemID=2699562, internetAddress=x.x.x.x, optimized=false, sequenceId=0, pollGroupId=2731241,
Juni 12 16:21:59.966: cycleTimestamp=1718202060000, readTimeStamp=1718202119965, duration=60000, pollRate=-1, deviceItemId=807561, dcmdItemId=0, rowData=[
Juni 12 16:21:59.966: DCMResponseVariable [name={http://im.ca.com/normalizer}NormalizedVirtualSessionInfo.SessionCreationPerSecond, value=NULL ]
Juni 12 16:21:59.966: DCMResponseVariable [name={http://im.ca.com/normalizer}NormalizedVirtualSessionInfo.CurrentTotalSessionInUse, value=46 (Long) ]
PM 23.3.6 or older
When we look at vendor certification:
<Attribute name="jnxJsNodeSessionCreationPerSecond" type="Long">
<Documentation/>
<IsKey>true</IsKey>
<IsIndex>false</IsIndex>
<NeedsDelta>true</NeedsDelta>
<Source>1.3.6.1.4.1.2636.3.39.1.12.1.4.1.5</Source>
</Attribute>
the problem is with the NeedsDelta;
jnxJsNodeSessionCreationPerSecond is type CounterBasedGauge64:
jnxJsNodeSessionCreationPerSecond OBJECT-TYPE
SYNTAX CounterBasedGauge64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Node average session created in last 96 seconds."
::= { jnxSPUClusterObjectsEntry 5 }
ref:
https://mibs.observium.org/mib/JUNIPER-SRX5000-SPU-MONITORING-MIB/
CounterBasedGauge64 is defined here: https://mibs.observium.org/mib/HCNUM-TC/
CounterBasedGauge64 is not a counter and cannot have Delta.
To fix create the VC extension:
curl -k -X PUT -H "Content-Type: application/xml" -u admin:<pass> http://da:8581/typecatalog/certifications/snmp/extension/JuniperSPUNodeSessionMib -d @JuniperSPUNodeSessionMib-extension.xml
JuniperSPUNodeSessionMib-extension.xml file content:
<?xml version="1.0" encoding="UTF-8"?>
<DataModel namespace="http://im.ca.com/certifications/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SNMPCertificationFacet.xsd">
<Author>CA</Author>
<Version>1.0</Version>
<FacetType name="JuniperSPUNodeSessionMib" descriptorClass="com.ca.im.core.datamodel.certs.CertificationFacetDescriptorImpl">
<FacetOf namespace="http://im.ca.com/core" name="Item" />
<AttributeGroup name="jnxOperatingTable" external="true" list="true">
<Attribute name="jnxJsNodeSessionCreationPerSecond" type="Long">
<Documentation/>
<IsKey>true</IsKey>
<IsIndex>false</IsIndex>
<NeedsDelta>false</NeedsDelta>
<Source>1.3.6.1.4.1.2636.3.39.1.12.1.4.1.5</Source>
</Attribute>
</AttributeGroup>
</FacetType>
</DataModel>
To revert :
curl -X PUT -H "Content-Type: application/xml" -k -u admin:<pass> http://da:8581/typecatalog/certifications/snmp/extension/JuniperSPUNodeSessionMib -d @JuniperSPUNodeSessionMib-extension-reset.xml
JuniperSPUNodeSessionMib-extension-reset.xml file content:
<?xml version="1.0" encoding="UTF-8"?>
<DataModel namespace="http://im.ca.com/certifications/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SNMPCertificationFacet.xsd">
<Author>CA</Author>
<Version>1.0</Version>
<FacetType name="JuniperSPUNodeSessionMib" descriptorClass="com.ca.im.core.datamodel.certs.CertificationFacetDescriptorImpl">
<FacetOf namespace="http://im.ca.com/core" name="Item" />
</FacetType>
</DataModel>