Announcement

Collapse
No announcement yet.

check_snmp_cpqHealth Version 1.5 **CORRECTIF** (26/04/2013)

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Thanks, i will check it !
    Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
    Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
    Fedora Core 5 - 2.6.20-1.2320

    Comment


    • J'ai mis à jour le plugin à l'aide des nouvelles mibs, cela devrait améliorer nettement les résultats sur des serveurs récents ;-)

      I had update the plugin with new mibs, this should give better results with new hardware ;-)
      Last edited by DonKiShoot; 3 April 2012, 13:00.
      Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
      Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
      Fedora Core 5 - 2.6.20-1.2320

      Comment


      • Thank you. The error is gone. It's working fine.
        With some machines we're getting another error: ERROR: General time-out (Alarm signal)
        The command used was /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl -H $HOSTADDRESS$ -C $USER3$ -m 9999 -t 10 -e 9,14 -v
        I've send you the verbose Output via pm. Any idea?
        Last edited by Madic; 4 April 2012, 14:33.

        Comment


        • Increase timeout in parameters ;-)
          Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
          Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
          Fedora Core 5 - 2.6.20-1.2320

          Comment


          • Hi, I was trying to implement Centreon for the first time and I'm not familiar with additional Nagios Plugins. I need to monitor HP array status on some ESXi server, a couple of Windows 2003, some windows 2000 and a couple of redhat and I think this plugin would solve my problems perfectly.

            I copied the file check_snmp_cpqHealth.pl into directory /usr/lib/nagios/plugins and edited it leaving only this two parameters:

            my (@myMibs)=(3,8 );

            Then I tried two things: in Centreon web interface I created a new command:

            $USER1$/check_snmp_cpqHealth.pl -H $HOSTADDRESS$ -C $ARG1$ and passed public as ARG1

            When checking on web interface it doesn't return an output but only a status Critical.

            If I recall the plugins from command line in centreon servers it returns the right output with the informations I need (array Ok, degraded o rebuilding).

            I found that there is the file nagios-plugins-snmp-cpqHealth-1.4.spec but I don't know how to use it. Anyone can help me?

            Thank u
            Last edited by mante80; 14 April 2012, 12:22.

            Comment


            • .spec is only for rebuilding your own rpm

              if it's ok in cli but not in webui, you miss something in centreon config.
              Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
              Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
              Fedora Core 5 - 2.6.20-1.2320

              Comment


              • Thank you for your reply. Do you have an idea of what I can miss? My centreon machine is the vm provided on the site. I have I copied the file check_snmp_cpqHealth.pl into directory /usr/lib/nagios/plugins and edited it leaving only this two parameters:

                my (@myMibs)=(3,8 );

                In Centreon web interface I created a new command called check_array configured like this:

                $USER1$/check_snmp_cpqHealth -H $HOSTADDRESS$ -C $ARG1$, passed !public! as ARG1 and 192.168.0.232 as HOSTADDRESS.
                Here is what it returns from web interface when I try to pass my parameters to the command check_array (and the value returned from command line instead):



                On the web interface I created the command check_array because I can't see check_snmp_cpqHealth directly in the command. I'm doing something wrong?

                Moreover, if I try to create a service based on check_array command, when I try to save it returns "No argument found for this command".

                Any idea?

                Thanks for your help
                Last edited by mante80; 17 April 2012, 15:29. Reason: I've removed extension.pl from command, now it returns status UNKNOWN and not CRITICAL but I still can't see the output

                Comment


                • Bonjour,

                  Le plugin ne fonctionne pas avec mon nouveau serveur HP Proliant ML 350 G6...
                  Probablement une mise à jour des OID dans le code?

                  Peux tu m'aider?

                  Comment


                  • Je t'ai répondu en MP, on va checker les oid mais on dirait que ton cas est plus grave car t es obligé de tout supprimer pour qu'à la fin le plugin ne serve plus à rien si j'ai bien compris.
                    Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
                    Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
                    Fedora Core 5 - 2.6.20-1.2320

                    Comment


                    • Exactement

                      Comment


                      • Problème sur le controle des disques RAID

                        Bonjour et merci pour votre travail,
                        je shouhaite superviser l'état des disks RAID sur un serveur HP avec un controleur P410i.
                        Après quelques recherches j'ai bien installé l'agent insign manager.
                        quand je lance le script j'ai ce message en retour

                        Code:
                        ERROR in cpqDaCntlrTable or cpqSsDrvBoxTable or cpqDaAccelTable or cpqDaLogDrvTable or cpqDaPhyDrvTable or cpqDaSpareTable, you may suppress mib 3 or/and 8 from @myMibs
                        Quand je suis la recommandation du méssage (suppression des mib 3, 14 qui apparemment posent problème) dans @myMibs j'obtient:

                        Code:
                        NIC1 in Slot0 Port1 is Ok - Embedded NEC98431 is Ok - Event Log is Ok - Powe ... | Fan1System=2, Fan2System=2, Fan3System=2, TempSensor1Ambient=21, TempSensor11Memory=30, TempSensor12PowerSupply=31, TempSensor13PowerSupply=45, TempS
                        ensor14Memory=29, TempSensor15Cpu=33, TempSensor16Cpu=30, TempSensor17Memory=27, TempSensor18Cpu=38, TempSensor19System=44, TempSensor2Cpu=40, TempSensor20System=39, TempSensor21System=43, TempSensor22System=41, TempSensor23System=4
                        5, TempSensor24System=47, TempSensor25System=35, TempSensor26System=46, TempSensor27Storage=26, TempSensor28System=73, TempSensor4Memory=35, TempSensor5Memory=39, TempSensor6Memory=34, TempSensor7Memory=35, TempSensor9Memory=31[root
                        malheuresement pour moi je veux le résultat de la mib 3.
                        Quelqu'un pourrais me dire si cela pourrait venir de l'agent SIM ou du paramétrage du plugin .

                        En vous remerciant
                        Last edited by eddy974974; 31 August 2012, 08:45.

                        Comment


                        • Il est possible qu'il manque une partie de l'installation des drivers HP/COMPAQ (CPQIDA-MIB::cpqDriveArray)
                          Le plugin explique que la branche de la mib réservé aux disques est absente ou inconsistente (A vérifier).
                          Il faut donc checker manuellement avec un snmpwalk de l'oid '1.3.6.1.4.1.232.3' pour voir si effectivement cette branche de la mib est vide et à ce moment la le plugin n'est pas en cause.
                          Tu peux vérifier que ta commande de snmpwalk est bonne en testant l'oid '1.3.6.1.4.1.232.0' (COMPAQ/HP)
                          Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
                          Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
                          Fedora Core 5 - 2.6.20-1.2320

                          Comment


                          • Originally posted by DonKiShoot View Post
                            Il est possible qu'il manque une partie de l'installation des drivers HP/COMPAQ (CPQIDA-MIB::cpqDriveArray)
                            Le plugin explique que la branche de la mib réservé aux disques est absente ou inconsistente (A vérifier).
                            Il faut donc checker manuellement avec un snmpwalk de l'oid '1.3.6.1.4.1.232.3' pour voir si effectivement cette branche de la mib est vide et à ce moment la le plugin n'est pas en cause.
                            Tu peux vérifier que ta commande de snmpwalk est bonne en testant l'oid '1.3.6.1.4.1.232.0' (COMPAQ/HP)
                            Merci pour ta réponse.
                            j'ai testé oid 1.3.6.1.4.1.232.3 avec SNMPWALK et j'ai bien un retour.
                            En voici une partie
                            Code:
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.62.0.0 = STRING: "1I"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.62.0.1 = STRING: "1I"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.62.0.2 = STRING: "1I"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.62.0.3 = STRING: "1I"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.63.0.0 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.63.0.1 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.63.0.2 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.63.0.3 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.64.0.0 = STRING: "Port 1I Box 1 Bay 1"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.64.0.1 = STRING: "Port 1I Box 1 Bay 2"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.64.0.2 = STRING: "Port 1I Box 1 Bay 3"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.64.0.3 = STRING: "Port 1I Box 1 Bay 4"
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.65.0.0 = INTEGER: 4
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.65.0.1 = INTEGER: 4
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.65.0.2 = INTEGER: 3
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.65.0.3 = INTEGER: 3
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.66.0.0 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.66.0.1 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.66.0.2 = INTEGER: 5
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.66.0.3 = INTEGER: 5
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.67.0.0 = INTEGER: 2
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.67.0.1 = INTEGER: 2
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.67.0.2 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.67.0.3 = INTEGER: 1
                            SNMPv2-SMI::enterprises.232.3.2.5.1.1.68.0.0 = INTEGER: 2
                            Comment pourrais je avancé maintenant ?

                            Par contre pour l'oid '1.3.6.1.4.1.232.0' que tu mentionnes aussi j'ai un message d'erreur
                            Code:
                            SNMPv2-SMI::enterprises.232.0 = No Such Object available on this agent at this OID
                            Last edited by eddy974974; 31 August 2012, 11:44.

                            Comment


                            • LOL !!! Tout l'inverse de ce que j'avais dis
                              Le .0 devait être de trop ;-)

                              Bon ba ce n'est pas gagné.

                              Peux-tu ajouter la mib 3 (qui semble donc correctement rempli d'après le snmpwalk) dans le @myMibs (de tête) ... EDIT: Eventuellement n'utiliser que cette mib ;-)
                              Puis refaire un test du plugin avec l'option -v en plus et me renvoyer le résultat en mp ou si cela ne passe pas : il doit y avoir mon email dans le plugin.

                              PS: Tu peux ajouter toutes les mibs que tu veux dans le @myMibs puis en cas de souci en supprimer en ligne de commande sans avoir à éditer le code avec l'option -e
                              Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
                              Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
                              Fedora Core 5 - 2.6.20-1.2320

                              Comment


                              • Hello,
                                we're getting the following error with some of our linux machines:
                                Code:
                                **ePN /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl: "Illegal hexadecimal digit 'S' ignored at (eval 9) line 2149,".
                                This is the check command we use:
                                Code:
                                    define command{
                                            command_name    check_snmp_cpq
                                            command_line    $USER1$/check_snmp_cpqHealth.pl -H $HOSTADDRESS$ -C $USER3$ -2 -m 9999 -e 6,9,14 -t 20
                                    }
                                When I run the command from the command line I get the following output:
                                Code:
                                Illegal hexadecimal digit 'S' ignored at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2148.
                                Illegal hexadecimal digit 'h' ignored at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2148.
                                Illegal hexadecimal digit 'O' ignored at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2148.
                                Illegal hexadecimal digit 'j' ignored at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2148.
                                Illegal hexadecimal digit 't' ignored at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2148.
                                Use of uninitialized value within @cpqHeMibCondition in concatenation (.) or string at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2155.
                                Use of uninitialized value within @statusArray in array element at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2160.
                                Use of uninitialized value $_[0] in numeric eq (==) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1900.
                                Use of uninitialized value $_[0] in numeric gt (>) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1906.
                                Use of uninitialized value within @statusArray in array element at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2160.
                                Use of uninitialized value $_[0] in numeric eq (==) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1900.
                                Use of uninitialized value $_[0] in numeric gt (>) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1906.
                                Use of uninitialized value within @statusArray in array element at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2160.
                                Use of uninitialized value $_[0] in numeric eq (==) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1900.
                                Use of uninitialized value $_[0] in numeric gt (>) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1906.
                                Use of uninitialized value within @statusArray in array element at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2160.
                                Use of uninitialized value $_[0] in numeric eq (==) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1900.
                                Use of uninitialized value $_[0] in numeric gt (>) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1906.
                                Use of uninitialized value within @statusArray in array element at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2160.
                                Use of uninitialized value $_[0] in numeric eq (==) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1900.
                                Use of uninitialized value $_[0] in numeric gt (>) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1906.
                                Use of uninitialized value within @statusArray in array element at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 2160.
                                Use of uninitialized value $_[0] in numeric eq (==) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1900.
                                Use of uninitialized value $_[0] in numeric gt (>) at /usr/lib/nagios/plugins/check_snmp_cpqHealth.pl line 1906.
                                ERROR in cpqSeCpuTable, you may suppress mib 1 from @myMibs
                                 Requested table is empty or does not exist.
                                ---------------------------
                                Nevermind. The snmpd.conf was misconfigured
                                Last edited by Madic; 14 March 2013, 11:42.

                                Comment

                                Working...
                                X