WebInject questions and similar options

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

WebInject questions and similar options

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: WebInject questions and similar options

Post 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
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: WebInject questions and similar options

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: WebInject questions and similar options

Post 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
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: WebInject questions and similar options

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: WebInject questions and similar options

Post 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.
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: WebInject questions and similar options

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: WebInject questions and similar options

Post by rkennedy »

Sounds good - closing this up.
Former Nagios Employee
Locked