Very strange email alert problem (ESXi)
Posted: Wed Aug 07, 2013 3:30 am
Hi guys, nagios is a must and works very well, but i have a very strange problem on email alert.
I added a new cfg file for my ESXi servers, below the esxi.cfg file
define host{
use virtual ; Name of host template to use
host_name esxi1_milan
alias ESXi Milan
address 10.0.0.15
}
define host{
use virtual ; Name of host template to use
host_name esxi1_london
alias ESXi London
address 10.0.0.10
}
define hostgroup{
hostgroup_name esxi
alias VMWare ESXi
members esxi1_milan,esxi1_london
}
define service{
use generic-service ; Name of service template to use
host_name esxi1_milan
service_description General Check
check_command check_esxi_hardware!<user>!<pwd>!<server_brand>
}
define service{
use generic-service ; Name of service template to use
host_name esxi1_london
service_description General Check
check_command check_esxi_hardware!<user>!<pwd>!<server_brand>
}
I found the script check_esxi_hardware in internet and works fine from command line, the script is available at http://www.claudiokuenzler.com/nagios-p ... rdware.php
the problem is that i had problem on london server but when i got email i can see the right ip address on alert but the MIlan server name..... how is possible?
If i go to the web interface everything if ok, all names and ip are correct.
My nagios version is Nagios® Core⢠Version 3.2.3 October 03, 2010.
Can someone help me to fix?.
many thank in advance guys
I added a new cfg file for my ESXi servers, below the esxi.cfg file
define host{
use virtual ; Name of host template to use
host_name esxi1_milan
alias ESXi Milan
address 10.0.0.15
}
define host{
use virtual ; Name of host template to use
host_name esxi1_london
alias ESXi London
address 10.0.0.10
}
define hostgroup{
hostgroup_name esxi
alias VMWare ESXi
members esxi1_milan,esxi1_london
}
define service{
use generic-service ; Name of service template to use
host_name esxi1_milan
service_description General Check
check_command check_esxi_hardware!<user>!<pwd>!<server_brand>
}
define service{
use generic-service ; Name of service template to use
host_name esxi1_london
service_description General Check
check_command check_esxi_hardware!<user>!<pwd>!<server_brand>
}
I found the script check_esxi_hardware in internet and works fine from command line, the script is available at http://www.claudiokuenzler.com/nagios-p ... rdware.php
the problem is that i had problem on london server but when i got email i can see the right ip address on alert but the MIlan server name..... how is possible?
If i go to the web interface everything if ok, all names and ip are correct.
My nagios version is Nagios® Core⢠Version 3.2.3 October 03, 2010.
Can someone help me to fix?.
many thank in advance guys