Page 1 of 1
loading a php plugin
Posted: Wed May 23, 2012 12:36 pm
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
Re: loading a php plugin
Posted: Wed May 23, 2012 12:37 pm
by scottwilkerson
Here is a document outlining adding plugins and check commands
http://library.nagios.com/library/produ ... -nagios-xi
Re: loading a php plugin
Posted: Thu May 24, 2012 10:40 am
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
Re: loading a php plugin
Posted: Thu May 24, 2012 10:42 am
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
Re: loading a php plugin
Posted: Thu May 24, 2012 12:33 pm
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.
Re: loading a php plugin
Posted: Thu May 24, 2012 12:37 pm
by benningtonr
ok, thanks