Page 1 of 2
Xenserver
Posted: Wed May 22, 2013 10:48 am
by samuel
How do I monitor Xenserver with Nagios
What version of Nagios XI are you using? Nagios XI 2012R1.6
Linux Distribution and version? centos 6.3
32 or 64bit? 32bit
VMware Image or Manual Install of XI? VMware Image
Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? none
Re: Xenserver
Posted: Wed May 22, 2013 1:36 pm
by abrist
Are you looking at monitoring the xenserver host, or the guests?
Re: Xenserver
Posted: Wed May 22, 2013 3:58 pm
by samuel
The xenserver host
Re: Xenserver
Posted: Wed May 22, 2013 4:13 pm
by sreinhardt
Have you taken a look at the
exchange xen plugins?
Re: Xenserver
Posted: Thu May 23, 2013 2:41 pm
by samuel
I found a plugin that might work.
http://exchange.nagios.org/directory/Pl ... en/details
Could I get help configuring it.
I have uploaded it to Nagios.
Then I made this command.
Code: Select all
$USER1$/check_xen -H $HOSTADDRESS$ $ARG1$
I made a service and assined it to the server.
I was testing out the service and I keep getting this
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_xen -H 10.150.150.51 -m server
OUTPUT: ::10.150.150.51:::
3
Re: Xenserver
Posted: Thu May 23, 2013 2:56 pm
by abrist
Is you virtual hostname "server"? Did you take a look at the comments, it looks like there might be an updated patch for the plugin.
Re: Xenserver
Posted: Thu May 23, 2013 2:58 pm
by sreinhardt
You absolutely can get some help configuring. In-house we don't presently have a xenserver setup so this might get a little tricky. Just to verify the same results, what happens if you run it from the nagios cli like so:
Code: Select all
cd /usr/local/nagios/libexec/
./check_xen -H 10.150.150.51 -m server
echo $?
Re: Xenserver
Posted: Thu May 23, 2013 3:26 pm
by samuel
I updated the check_xen with the code written in April 22, 2013 in the review.
The output changed to this.
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_xen -H 10.150.150.51 -m csxen01.rdr.pvt
OUTPUT: Critical - Virtual System is Shutoff
What do you mean by virtual hostname?
Code: Select all
./check_xen -H 10.150.150.51 -m csxen01.rdr.pvt
./check_xen: line 32: xm: command not found
Critical - Virtual System is Shutoff
Re: Xenserver
Posted: Thu May 23, 2013 4:21 pm
by abrist
samuel wrote:What do you mean by virtual hostname?
the server declared with the "-m" switch. Looks like you just obfuscated your example. Nothing to see here.
It looks like the check is *mostly* working. Is the csxen01.rdr.pvt server actually shutoff?
Re: Xenserver
Posted: Thu May 23, 2013 4:27 pm
by samuel
No.
Is it asking for the pool name or the name of the server that xenserver is running on?