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
loading a php plugin
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: loading a php plugin
Here is a document outlining adding plugins and check commands
http://library.nagios.com/library/produ ... -nagios-xi
http://library.nagios.com/library/produ ... -nagios-xi
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: loading a php plugin
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
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
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
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
From looking at the code, it looks like usage is:
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.
Code: Select all
./check_website_speed.php <url> <warning milliseconds?> <error milliseconds>