loading a php plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

loading a php plugin

Post by benningtonr »

I have a plugin that I want to try, it is a PHP, i installed it and i can see it, but how do I use it?

it is
check_website_speed.php

Well i blew up my other install and now i don't have it installed
I am not a Linux or Perl person, so any detailed help would be appreciated.
I went to (on my last build yesterday) manage plugins, found the file, installed it.
Then I could see it under managed plugins, but do not know how to use it.

Thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: loading a php plugin

Post by scottwilkerson »

Here is a document outlining adding plugins and check commands

http://library.nagios.com/library/produ ... -nagios-xi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: loading a php plugin

Post by benningtonr »

I tried following this, to no avail.
I am not a linux administrator by any means, I work with switches and routers and firewalls.
This is just a project I was handed
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: loading a php plugin

Post by benningtonr »

I got some of it entered but the arg's is were my problems lay, i thinks
Here is the url for the pluging i am trying to use.

http://exchange.nagios.org/directory/Pl ... ed/details

Thanks again
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: loading a php plugin

Post by mguthrie »

From looking at the code, it looks like usage is:

Code: Select all

./check_website_speed.php <url>  <warning milliseconds?> <error milliseconds>
The plugin is 40 lines long and doesn't follow the plugins developer guidlines very closely. It looks like if you exceed the warning threshold is will say "WARNING" but return as critical, and if it exceeds "error" then it will return as warning. You might be better off making your own mods to handing it to someone who's handy at scripting so they can add some polish to it.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: loading a php plugin

Post by benningtonr »

ok, thanks
Locked