Page 1 of 1

WebInject questions and similar options

Posted: Thu Apr 14, 2016 9:24 am
by dlukinski
Hello Nagios XI support

Please help with questions around monitoring Web-portals:

1) Web-Inject
- could we edit XML files already created? (for not to keep re-creating services for any minor changes)?
- In Nagios advanced class we were told that web-inject plugin used in XI is outdated / console.de plugin has to be used instead. please comment and advice how to update properly?

2) Is there any any 3rd party plugins you could recommend for generic Web-portal monitoring/transactions monitoring (logins, checks, some simple operations) ?

Thank you

Re: WebInject questions and similar options

Posted: Thu Apr 14, 2016 10:25 am
by rkennedy
Webinject should work for both of these. Yes, you could edit the XML files created, but each test case would HAVE to work with what you choose to change.

Take a look at our exchange, to see if anything will work for you. https://exchange.nagios.org/index.php?o ... b%20inject

Re: WebInject questions and similar options

Posted: Thu Apr 14, 2016 1:44 pm
by dlukinski
rkennedy wrote:Webinject should work for both of these. Yes, you could edit the XML files created, but each test case would HAVE to work with what you choose to change.

Take a look at our exchange, to see if anything will work for you. https://exchange.nagios.org/index.php?o ... b%20inject
How do we edit XML files?
- they are nowhere to be found after creation.. not by file name

Re: WebInject questions and similar options

Posted: Thu Apr 14, 2016 4:35 pm
by ssax
They will probably be in /usr/local/nagiosxi/etc/components/ but check in /usr/local/nagios/libexec as well.

I can't guarantee compatibility between our wizard and the console.de plugin, you could put the check_webinject file in libexec and use it from there, you would have to create a new check_webinject command:

Code: Select all

cd /usr/local/nagios/libexec
wget https://labs.consol.de/assets/downloads/check_webinject-1.84.tar.gz
tar zxf check_webinject-1.84.tar.gz
chmod +x check_webinject
You could try replacing ours but it may get overwritten on upgrades:

back it up first:

Code: Select all

cp /usr/local/nagiosxi/etc/components/webinject/webinject.pl /usr/local/nagiosxi/etc/components/webinject/webinject.pl.bak
cd /usr/local/nagiosxi/etc/components/webinject
wget https://labs.consol.de/assets/downloads/check_webinject-1.84.tar.gz
tar zxf check_webinject-1.84.tar.gz
mv check_webinject webinject.pl
chmod +x webinject.pl
If it doesn't work that way just revert the change:

Code: Select all

cp /usr/local/nagiosxi/etc/components/webinject/webinject.pl.bak /usr/local/nagiosxi/etc/components/webinject/webinject.pl

Re: WebInject questions and similar options

Posted: Thu Apr 14, 2016 5:17 pm
by dlukinski
ssax wrote:They will probably be in /usr/local/nagiosxi/etc/components/ but check in /usr/local/nagios/libexec as well.

I can't guarantee compatibility between our wizard and the console.de plugin, you could put the check_webinject file in libexec and use it from there, you would have to create a new check_webinject command:

Code: Select all

cd /usr/local/nagios/libexec
wget https://labs.consol.de/assets/downloads/check_webinject-1.84.tar.gz
tar zxf check_webinject-1.84.tar.gz
chmod +x check_webinject
You could try replacing ours but it may get overwritten on upgrades:

back it up first:

Code: Select all

cp /usr/local/nagiosxi/etc/components/webinject/webinject.pl /usr/local/nagiosxi/etc/components/webinject/webinject.pl.bak
cd /usr/local/nagiosxi/etc/components/webinject
wget https://labs.consol.de/assets/downloads/check_webinject-1.84.tar.gz
tar zxf check_webinject-1.84.tar.gz
mv check_webinject webinject.pl
chmod +x webinject.pl
If it doesn't work that way just revert the change:

Code: Select all

cp /usr/local/nagiosxi/etc/components/webinject/webinject.pl.bak /usr/local/nagiosxi/etc/components/webinject/webinject.pl
It probably makes sense to use it renamed as custom command.
- how to create a command properly if I am to copy 1.84 as 'check_webinject_custom.pl' ?
- would this be 1 command per XML case?

found XML files, thank you

Re: WebInject questions and similar options

Posted: Fri Apr 15, 2016 9:16 am
by rkennedy
Just upload the file to your libexec directory, and then use the CCM to create a command.

Yes, one command per XML case.

Re: WebInject questions and similar options

Posted: Wed Apr 20, 2016 1:44 pm
by dlukinski
rkennedy wrote:Just upload the file to your libexec directory, and then use the CCM to create a command.

Yes, one command per XML case.

Thank you
Please close this thread

Re: WebInject questions and similar options

Posted: Wed Apr 20, 2016 2:53 pm
by rkennedy
Sounds good - closing this up.