05.05.2011, 04:20 UTC+2

Sie sind nicht angemeldet.

How to monitor ESXi with check_esxi_wbem.py

francisb

Anfänger

Beiträge: 14

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 30

Anzahl Services: 100

Betriebssystem(e): Ubuntu 10

Plugin-Version(en): 1.4.15

NDO-Version: 1

1

02.05.2011, 14:01

How to monitor ESXi with check_esxi_wbem.py

Hello,



I have installed en used check_esxi_wbem.py on the command line and the results are correct.

The next step is intergrate it with omd, as far as i can see yoy need to set it up into the main.mk file.

But how should i do this, has anyone a working config for me so i can use this for our ESXi hardware?



Any help is welcome.



Francis

tomlix

Anfänger

Beiträge: 2

Geschlecht: Männlich

Wohnort: Bamberg

Beruf: IT-Systemadministrator

Anzahl Nagios-Server: 2

Hobbys: IT

Nagios-Version(en): 3.2.0

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 420

Anzahl Services: 7720

Betriebssystem(e): Linux, Windows 2003, Windows XP, Windows 2008, Unix

Plugin-Version(en): check_mk, NSClient++, NRPE

NDO-Version: 3

2

03.05.2011, 09:51

Hallo Francis,

you must insert in the main.mk by example:

-------------------------------------
extra_nagios_conf += r"""

# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware
command_line $USER2$/check_esxi_wbem.py https://$HOSTADDRESS$ root yourpass $ARG1$
}

"""

legacy_checks += [
( ( "check_esxi_hardware!ARG1", "ESXi Dell", False), [ "hosttag or hostname" ], ALL_HOSTS ),
]
--------------------------

have fun

tomlix :)

francisb

Anfänger

Beiträge: 14

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 30

Anzahl Services: 100

Betriebssystem(e): Ubuntu 10

Plugin-Version(en): 1.4.15

NDO-Version: 1

3

03.05.2011, 11:59

Thanks,



I am going to try it.



cheers

francisb

Anfänger

Beiträge: 14

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 30

Anzahl Services: 100

Betriebssystem(e): Ubuntu 10

Plugin-Version(en): 1.4.15

NDO-Version: 1

4

03.05.2011, 12:15

Ok, inserted the code into main.mk and replaced password, hostaddress, Dell into HP, and placed hostname of the machine.

But nothing extra is showing under the hostname on the MK multisite.

I also did a check_mk -I, i do not know if this is neccesary, but it gave my one found check (if 1 new check).

But after running check_mk -O nothing new showed up.



Am i missing something?



tahnks,



Francis

tomlix

Anfänger

Beiträge: 2

Geschlecht: Männlich

Wohnort: Bamberg

Beruf: IT-Systemadministrator

Anzahl Nagios-Server: 2

Hobbys: IT

Nagios-Version(en): 3.2.0

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 420

Anzahl Services: 7720

Betriebssystem(e): Linux, Windows 2003, Windows XP, Windows 2008, Unix

Plugin-Version(en): check_mk, NSClient++, NRPE

NDO-Version: 3

5

03.05.2011, 14:26

Hallo Francis,

can you use the check_esxi_wbem.py without an Argument (ARG1)? This ARG ist a hosttag in our mk-File.
i mean:

extra_nagios_conf ......
.............
command_line $USER2$/check_esxi_wbem.py https://$HOSTADDRESS$ root yourpass

and by legacy_check
( ( "check_esxi_hardware", "ESXi", False), [ "yourhostname" ] ),

be sure, your check-file is in the correct directory ( the pass for $USER2$ is in etc/nagios/resource.cfg

Greeting tomlix :)

francisb

Anfänger

Beiträge: 14

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 30

Anzahl Services: 100

Betriebssystem(e): Ubuntu 10

Plugin-Version(en): 1.4.15

NDO-Version: 1

6

03.05.2011, 15:34

Hello,



Ok thats a step forward, i can see now the service under the esxi host, but its gives an error:

Source code

1
(Return code of 126 is out of bounds - plugin may not be executable)


The path from $user2$ is where the check plugin is located.

any ideas?



Thanks,

FRancis

francisb

Anfänger

Beiträge: 14

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 30

Anzahl Services: 100

Betriebssystem(e): Ubuntu 10

Plugin-Version(en): 1.4.15

NDO-Version: 1

7

03.05.2011, 15:50

Ok changed the permissions, now i get a warning with the messages

Source code

1
(null)

francisb

Anfänger

Beiträge: 14

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 30

Anzahl Services: 100

Betriebssystem(e): Ubuntu 10

Plugin-Version(en): 1.4.15

NDO-Version: 1

8

Gestern, 08:59

yes success, i have now the OK hp hardware.



But thats rather strange because the machine is running with one power disconectted. Should it say that the hp hardware is not ok?

Ähnliche Themen