Page 1 of 1
Interfacetable_v3t.pl
Posted: Mon Mar 11, 2013 12:46 pm
by sarfarosh
Hello,
Sorry for such a Dumb Question, but can some one help me with useing Interfacetable_v3t.pl plugin in nagios xi, i have successfully complied it, but not able to make it work, can any one help me with that would be the command link argument for this plugin? & how to add it in command as am not able to make it
Re: Interfacetable_v3t.pl
Posted: Mon Mar 11, 2013 12:56 pm
by sreinhardt
Can you post a link to the plugin. Have you tried Interfacetable_v3t.pl -h ? Also you generally would not compile a perl script, but instead just run it directly as is from the interpreter.
Re: Interfacetable_v3t.pl
Posted: Tue Mar 12, 2013 2:43 am
by sarfarosh
Re: Interfacetable_v3t.pl
Posted: Tue Mar 12, 2013 9:06 am
by sreinhardt
Are you using version 1 or 2, I see the download link points to both.
Re: Interfacetable_v3t.pl
Posted: Tue Mar 12, 2013 11:40 am
by sarfarosh
i am using version 2. can you please help me with defining command in nagios xi.
Re: Interfacetable_v3t.pl
Posted: Tue Mar 12, 2013 12:49 pm
by sreinhardt
I just installed this as well, there are a whole lot of options, so defining a command looks to very much depend on what exactly you would like to do. One thing I will note, if you are saying the command is not working, you need to be sure to install perl-Config-General (yum install perl-Config-General). That resolved the only error message that I had, and running the ./check_interface_table_v3t.pl from libexec gave a whole output of the available commands.
Do you have a cli command with this plugin that you would like to use, that I could help get working within nagios for you?
Re: Interfacetable_v3t.pl
Posted: Wed Mar 13, 2013 9:15 am
by sarfarosh
i am confused with how should i define it as command in nagios xi, as am confused with what parameter has to be defined while defineing command.
i know this is a very dumb question but help on this would be much appreciated
Re: Interfacetable_v3t.pl
Posted: Wed Mar 13, 2013 9:29 am
by slansing
A command must be defined in Configure > Core Config Manager > Commands, take a look at the already created commands for a formatting guide. Essentially you define macro/variable fields and then hard code a piece into the command, such as this one:
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
So for a start with this command, if it has the ability to make a remote call itself, or you are using it locally, you would start the definition as such:
Code: Select all
$USER1$/check_interface_table_v3t.pl
Here is a example of a command definition from Nagios Core:
http://nagios.sourceforge.net/docs/3_0/ ... ml#command
You still need to know what you want to get out of the plugin as sreinhardt asked, and showed you how to do.