Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
harald21
Contributor

Logging CPU and Memory Usage with MRTG

Hello, I' m using MRTG for monitoring interface traffic statistics of fortigate devices since many years, but now I also want to monitor cpu load. For me it seems the logfile inside the " workdir" only contains the last (current) value, older values are not shown. Here is an example of my logfile: 1318322787 26 26 1318322787 0 0 0 0 1318322492 0 0 0 0 1318322400 0 0 0 0 1318322100 0 0 0 0 1318321800 0 0 0 0 26 % CPU load seems me a reasonable value for my fortigate (we are using a log of ips). And here comes my config file: ### Global Defaults Options[_]: growright, bits XSize[_]: 500 YSize[_]: 125 EnableIPv6: no Workdir: C:\Programme\MRTG\bin\MRTG_DATA\Fortigate\data LoadMIBs: C:\Programme\MRTG\bin\MIB\FORTINET-FORTIGATE-MIB-4.2.7.mib ### Fortigate CPU Load ### Target[fortigate_cpu]:1.3.6.1.4.1.12356.1.8.0&1.3.6.1.4.1.12356.1.8.0:snmp-community@fortigate-ip::::::2 Title[fortigate_cpu]: Fortigate CPU Load MaxBytes[fortigate_cpu]: 100 ShortLegend[fortigate_cpu]: % YLegend[fortigate_cpu]: CPU Utilization Legend1[fortigate_cpu]: Current CPU percentage load LegendI[fortigate_cpu]: Used LegendO[fortigate_cpu]: Options[fortigate_cpu]: growright,nopercent Unscaled[fortigate_cpu]: ymwd PageTop[fortigate_cpu]: <h1>Fortigate CPU Load</h1> I hope someone can tell me where my error is. Sincerely Harald
6 REPLIES 6
harald21
Contributor

Hello, finally I solved the issue myselve: Options[fortigate_cpu]: growright,nopercent,gauge Sincerely Harald
ede_pfau
SuperUser
SuperUser

Thanks for sharing!

Ede

"Kernel panic: Aiee, killing interrupt handler!"
Ede"Kernel panic: Aiee, killing interrupt handler!"
lutfi
New Contributor

hello every body, just want to ask. i' m using fortinet 60C, can I using MRTG to? where i can get MRTG source?
ede_pfau
SuperUser
SuperUser

you' re joking - ever heard of Google? http://oss.oetiker.ch/mrtg/ Can monitor any device with SNMP.

Ede

"Kernel panic: Aiee, killing interrupt handler!"
Ede"Kernel panic: Aiee, killing interrupt handler!"
JavBsd
New Contributor II

Hello, Someone used this config successfully?. I' m getting the following error when run mrtg. 2014-06-17 12:59:14: ERROR: Target[fortigate_cpu][_IN_] ' 1.3.6.1.4.1.12356.101.4.1. $target->[0]{$mode} ' evaluated to ' いe59465227' instead of a number 2014-06-17 12:59:14: ERROR: Target[fortigate cpu][_OUT_] ' 1.3.6.1.4.1.12356.101.4.1. $target->[0]{$mode} ' evaluated to ' いe763185894' instead of a number. Any advice?. Greetings. Jav.
JavBsd
New Contributor II

Sorry, bad OID' s . Now working perfect. Greetings. Jav.
Labels
Top Kudoed Authors