Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Pb with check_centreon_snmp_process_detailed & run_path_table #645

Closed
centreon opened this issue Jul 15, 2009 · 1 comment
Closed

Pb with check_centreon_snmp_process_detailed & run_path_table #645

centreon opened this issue Jul 15, 2009 · 1 comment

Comments

@centreon
Copy link
Collaborator


Author Name: Nicolas COULIN (Nicolas COULIN)
Original Redmine Issue: 1039, https://forge.centreon.com/issues/1039
Original Date: 2009-07-15


Je crois qu'il y a un probleme dans le script : check_centreon_snmp_process_detailed

Mon process se trouve dans la table run_path_table. Le script devrait le trouver, mais ca ne marche pas.

En inversant les OIDsuivants, mon process est trouvé

my $run_name_table = '1.3.6.1.2.1.25.4.2.1.2';
my $run_path_table = '1.3.6.1.2.1.25.4.2.1.4';

Visiblement, la condition suivante ne fonctionne pas, le script ne va pas vérifier dans le "else"

  1. Look for process in name or path name table
    my $resultat=undef;
    if ( !defined ($o_path) ) {
    $resultat = $session->get_table(
    Baseoid => $run_name_table
    );
    } else {
    $resultat = $session->get_table(
    Baseoid => $run_path_table
    );
    }
@centreon
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Nicolas COULIN (Nicolas COULIN)
Original Date: 2009-07-15T10:25:09Z


Autant pour moi, il fallait juste rajouté l'option -f pour the full path...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants