Fortigate Template Creation

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
User avatar
ARC1450
Cacti User
Posts: 104
Joined: Wed Jun 24, 2009 9:42 am

Fortigate Template Creation

Post by ARC1450 »

I'm trying to create an SNMP query for my Fortigate 600B and I'm running into problems.

This is the XML query:

Code: Select all

<interface>
	<name>Get Fortigate HA CPUs</name>
	<description>Queries Fortigate HA Pair for CPU usage</description>
	<oid_index>1.3.6.1.4.1.12356.101.13.2.1.1.3</oid_index>
	
	<fields>
		<fgHaStatsCpuUsage>
			<name>CPU Usage</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.12356.101.13.2.1.1.3</oid>
		</fgHaStatsCpuUsage>
	</fields>
</interface>
This is the SNMP walk and SNMP table:

Code: Select all

C:\Users\Administrator>snmpwalk -v 2c -c <snmp> -On <ip> .1.3.6.1.4.1.12356.101.13.2.1.1.3
.1.3.6.1.4.1.12356.101.13.2.1.1.3.1 = Gauge32: 59
.1.3.6.1.4.1.12356.101.13.2.1.1.3.2 = Gauge32: 95

Code: Select all

C:\Users\Administrator>snmptable -v 2c -c <snmp> <ip> FORTINET-FORTIGATE-MIB::fgHaStatsTable
SNMP table: FORTINET-FORTIGATE-MIB::fgHaStatsTable

fgHaStatsSerial fgHaStatsCpuUsage fgHaStatsMemUsage fgHaStatsNetUsage fgHaStatsSesCount fgHaStatsPktCount fgHaStatsByteCount fgHaStatsIdsCount fgHaStatsAvCount fgHaStatsHostname
<sn>                           49                57            175331            130307        2640195748         1357750992                 2                0      <name>
<sn>                           95                21                12                18            406375          284902030                 0                0      <name>
As you can see, no index. The tutorial to me isn't too clear, so a little guidance would be awesome.

TIA
[color=black]mount -o protected -t voluptuous,selfmaintaining /dev/woman /mnt/me
Attitude is no substitute for competence
See through faded, super jaded, out of my mind[/color]
User avatar
ARC1450
Cacti User
Posts: 104
Joined: Wed Jun 24, 2009 9:42 am

Re: Fortigate Template Creation

Post by ARC1450 »

Nevermind. . .figured it out.
[color=black]mount -o protected -t voluptuous,selfmaintaining /dev/woman /mnt/me
Attitude is no substitute for competence
See through faded, super jaded, out of my mind[/color]
sacaliabu
Posts: 1
Joined: Fri Feb 21, 2025 9:20 am

Re: Fortigate Template Creation

Post by sacaliabu »

I am having an issue figuring what this OID does and what are the default values.
I have opened a case with fortinet, and it looks that not even their support is able to give me this info.
What is this field ? fgHaStatsSesCount ??
What are the min and max values?
i have searched all the internet and all i get is their basic description:

fgHaStatsSesCount
1.3.6.1.4.1.12356.101.13.2.1.1.6
Current session count of specified cluster member.
User avatar
macan
Cacti Guru User
Posts: 1264
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Fortigate Template Creation

Post by macan »

In official cacti fortigate template I used OID .1.3.6.1.4.1.12356.101.4.1.8.0
I'm queriing each unit in FG separatelly not from HA tables

Maybe you can compare these values
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests