Xen nrpe/plugin output
Rick Mangus
rick.mangus+nagios at gmail.com
Thu Aug 5 18:30:14 CEST 2010
Actually, it's only getting one line of input. The line ends after
the first VM name.
http://nagios.sourceforge.net/docs/3_0/pluginapi.html gives the
"Plugin output spec" which explains how to do multi-line output.
TEXT OUTPUT | OPTIONAL PERFDATA
LONG TEXT LINE 1
LONG TEXT LINE 2
...
LONG TEXT LINE N | PERFDATA LINE 2
PERFDATA LINE 3
...
PERFDATA LINE N
You would probably be best served by having the shell script condense
the data to one line, though adding a "|\n" after the colon and before
the $RUNNING in each of the echo lines would be the simplest option.
--Rick
On Thu, Aug 5, 2010 at 9:55 AM, Brian <brian at texnet.com> wrote:
> I'm checking out this plugin:
>
> http://www.novell.com/coolsolutions/feature/19490.html
>
> When run on the Xen host the output looks something like this:
>
> /usr/lib/nagios/plugins/check_xenvm -w 11 -c 10
>
> OK: Xen Hypervisor "tngvm2.blahblahblah.com" is running Xen VMs: bret
> jeremy
> lenny
> roger
> db12
> dev1
> dev2
> v2
> train1
> train2
> train3
> train4
>
> On the cgi/http services output it reads like this:
>
> Xen OK 08-05-2010 09:30:03 0d 21h 56m 7s 1/10
>
> (only 2 lines of output in the Status Information column)
>
> OK: Xen Hypervisor "tngvm2.agilemind.com" is running
> Xen VMs: bret
>
> I know 13 lines is a bit excessive but would like to see all DomU's that
> are running on a given host - at a glance.
>
> On the Service State Information page it does show all DomU's that are
> running on the host.
>
> What is limiting the output to 2 lines?
>
> Do I need to add html <br> to the plugin???
>
> TIA
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list