Xenserver

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Xenserver

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Xenserver

Post by abrist »

Are you looking at monitoring the xenserver host, or the guests?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: Xenserver

Post by samuel »

The xenserver host
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Xenserver

Post by sreinhardt »

Have you taken a look at the exchange xen plugins?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: Xenserver

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Xenserver

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Xenserver

Post 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 $?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: Xenserver

Post 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
Last edited by slansing on Wed May 29, 2013 10:30 am, edited 1 time in total.
Reason: Do not double post..
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Xenserver

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: Xenserver

Post by samuel »

No.
Is it asking for the pool name or the name of the server that xenserver is running on?
Locked