GithubHelp home page GithubHelp logo

Comments (6)

VincentROLLAND avatar VincentROLLAND commented on September 27, 2024 1

Hi,
it's OK and reflect the memory form fortigate GUI:
./check_fortigate.pl.1 -H A.B.C.D -C [COMMUNITY] -p [FORTISERIAL_PATH] -T mem-sys
OK: A.B.C.D (Current device: [FORTISERIAL]) Memory is okay: 60%|'memory'=60%;80;90

from monitoring.

sgruber94 avatar sgruber94 commented on September 27, 2024

I opened a new issue for tracking this issue down.

I discovered the problem of that. It's the handling about the health check.
Sadly I haven't any FGT 201 or FGT 60 Cluster, so I can't verify Cluster State

The Issue is, that the Value adds an .1 and .2 instead of nothing.

We can replace the HC with another function (internal change) or adding a Mode to the health check and try to call a "mode" for particular checks)

if ( $slave == 1 ) {
$oid = $_[0] . ".2";
$label = "slave_" . $label;
} elsif ( $curr_serial =~ /^FG100A/ ) {
$oid = $_[0];
} elsif ( $curr_serial =~ /^FG201/ ) {
$oid = $_[0];
} elsif ( $curr_serial =~ /^FG/ ) {
$oid = $_[0] . ".1";
} else {
$oid = $_[0];
}

from monitoring.

sgruber94 avatar sgruber94 commented on September 27, 2024

@VincentROLLAND take a look and test it please.

from monitoring.

VincentROLLAND avatar VincentROLLAND commented on September 27, 2024

Hi,

Sorry i was out of office, i have try the scrypt with 0e9b802, but it add again the .1 for master and .2 for slave:

./check_fortigate.pl -H A.B.C.D -C [COMMUNITY] -p [FORTISERIAL_PATH] -T cpu-sys
UNKNOWN: OID .1.3.6.1.4.1.12356.101.4.1.3.0.1 does not exist

./check_fortigate.pl -H A.B.C.D -C [COMMUNITY] -p [FORTISERIAL_PATH] -T mem-sys
UNKNOWN: OID .1.3.6.1.4.1.12356.101.4.1.4.0.1 does not exist

./check_fortigate.pl -H A.B.C.D -C [COMMUNITY] -p [FORTISERIAL_PATH] -T cpu-sys -s
UNKNOWN: OID .1.3.6.1.4.1.12356.101.4.1.3.0.2 does not exist

./check_fortigate.pl -H A.B.C.D -C [COMMUNITY] -p [FORTISERIAL_PATH] -T mem-sys -s
UNKNOWN: OID .1.3.6.1.4.1.12356.101.4.1.4.0.2 does not exist

from monitoring.

VincentROLLAND avatar VincentROLLAND commented on September 27, 2024

in fact i have try the same script than 1.8.10 with this link

if ( $slave == 1 ) {
$oid = $_[0] . ".2";
$label = "slave_" . $label;
} elsif ( $curr_serial =~ /^FG100A/ ) {
$oid = $_[0];
} elsif ( $curr_serial =~ /^FG201/ ) {
$oid = $_[0];
} elsif ( $curr_serial =~ /^FG/ ) {
$oid = $_[0] . ".1";
} else {
$oid = $_[0];
}

i'm not used to with github...
Could you provide me the link?

from monitoring.

sgruber94 avatar sgruber94 commented on September 27, 2024

Hi Vincent,
thats the link: https://github.com/sgruber94/Monitoring-riskersen/blob/check_fortigate_unkownmem/fortigate/check_fortigate.pl

from monitoring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.