hello im trying to monitor a ESXI 4.1 machine with the http://www.claudiokuenzler.com/nagios-p ... rdware.php plugin.
i got the plugin working , but i dont know how to ad this in Nagios??
i have added the following command in the commands.cfg
# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware
command_line /home/pi/check_esxi_hardware1.py -H 192.168.10.15 -U root -P ********* -V hp -p
}
in the advanced_service.cfg i added the following
define service {
service_description hardware
check_command check_esxi_hardware!root!mypass!hp
host_name esxi
use generic-service
contact_groups +admins
}
i always get the error as seen in te screenshot , can anyone guide / help me with this problem.
Error trying to monitor ESXI machine
Re: Error trying to monitor ESXI machine
solvisoft,
What version of Core?
-Yancy
What version of Core?
-Yancy
-
- Posts: 9
- Joined: Thu Aug 01, 2013 5:09 am
Re: Error trying to monitor ESXI machine
I put this line into my services.cfg check
check_command check_esxi_hardware!username!password!hp!uk
This is in my commands.cfg
define command{
command_name check_esxi_hardware
command_line $USER1$/check_esxi_hardware.py -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -V $ARG3$ -I $ARG4$
The python check script went into my plugins folder. And this worked for me
check_command check_esxi_hardware!username!password!hp!uk
This is in my commands.cfg
define command{
command_name check_esxi_hardware
command_line $USER1$/check_esxi_hardware.py -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -V $ARG3$ -I $ARG4$
The python check script went into my plugins folder. And this worked for me
Re: Error trying to monitor ESXI machine
version 3.4.1 nagios core.
with also nconf 1.3 installed.
with also nconf 1.3 installed.
-
- Posts: 9
- Joined: Thu Aug 01, 2013 5:09 am
Re: Error trying to monitor ESXI machine
I have
I use
in my command.cfgdefine command{
command_name check_esxi_hardware
command_line $USER1$/check_esxi_hardware.py -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -V $ARG3$ -I $ARG4$
I use
and this works fine? Does that help as yours looks a little different.check_command check_esxi_hardware!root!passwordhere!hp!uk
Re: Error trying to monitor ESXI machine
@solvisoft
Did StuartHurst's suggestion help you solve your issue?
Did StuartHurst's suggestion help you solve your issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error trying to monitor ESXI machine
i am a bit further now except this time i get the following message.
do i have to put the username and password in directly ?
example : check_esxi_hardware!root!password!hp
so root already my username and password ? or just the description?
do i have to put the username and password in directly ?
example : check_esxi_hardware!root!password!hp
so root already my username and password ? or just the description?
-
- Posts: 9
- Joined: Thu Aug 01, 2013 5:09 am
Re: Error trying to monitor ESXI machine
You can refer to them using $user$ in resources.cfg but I've kept mine simple.
the root / password is for the VMWare host, don't forget the UK at the end or whatever code is required for your country.
My USER1 has the location of my plugins so i put my script in there.
the root / password is for the VMWare host, don't forget the UK at the end or whatever code is required for your country.
My USER1 has the location of my plugins so i put my script in there.
Re: Error trying to monitor ESXI machine
i got it working , i presume that if something is wrong then there wil be more output to see in nagios core ?
or is there a option to already show the output of the disks , memory , ram?
thank you for the support
or is there a option to already show the output of the disks , memory , ram?
thank you for the support