Page 1 of 1

check_interface_table_v3t How to make changes

Posted: Wed Jun 09, 2021 1:49 am
by informatica
Hi Team,

we have received one request to change check_interface_table_v3t.pl check as per below. Currently we are using below check and for this below check we are getting the below output and we are getting the additional details in nagios front end also.

We have attached output of the interface list and status of the interfaces.
we are not able see down as red in frontend for operation status even though its down and we are not getting any alerts if Admin status goes down.
Please help on this if any check changes required.

/usr/local/nagios/libexec/check_interface_table_v3t.pl -H 10.65.152.11 -h INSANSW03 -C XXXX -2 -f --64bits -r -e unrouted,Null,Stack,FastEthernet,Uncontrolled,Controlled --alias --et Vlan -t 45 --warning-traffic 97,1000,1000 --critical-traffic 99,5000,5000 -css nagiosxi --perfdatadir /usr/local/nagios/var/spool/perfdata/ --snmp-retries=5 --perfdataservicedesc process-service-perfdata-file-bulk --tp ifAdminStatus,ifOperStatus

OK - 53 port(s), 33 free, 30 AdminUp and free, 53 graphed <a href=/interfacetable_v3t/tables/INSANSW03-Interfacetable.html target=_self>[details]</a>

Re: check_interface_table_v3t How to make changes

Posted: Wed Jun 09, 2021 5:25 pm
by benjaminsmith
HI Informatica,

It's possible that this is a bug in the plugin. The operation status is showing up but it's actually down, is that correct? Please try running the Switch and Router Wizard and compare the results.

https://library.nagios.com/library/prod ... nagios-xi/

Also, can you send us a system profile so we can review the service definitions? Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button

Re: check_interface_table_v3t How to make changes

Posted: Tue Jun 15, 2021 5:48 am
by informatica
Please find the attachment.

Re: check_interface_table_v3t How to make changes

Posted: Tue Jun 15, 2021 3:07 pm
by tgriep
If you want to receive a Warning or Critical Alert / Notification when an interface status changes, you will have to add one of the following options to the check.
--wp, --warning-property (optional)
Number of property changes before leading to a warning alert
--cp, --critical-property (optional)
Number of property changes before leading to a critical alert
For example, it you want a Critical Alert for when one interface changes status, you would add the following to the command.

Code: Select all

--cp=1
Here is a full command.

Code: Select all

/usr/local/nagios/libexec/check_interface_table_v3t.pl -H 10.65.152.11 -h INSANSW03 -C XXXX -2 -f --64bits -r -e unrouted,Null,Stack,FastEthernet,Uncontrolled,Controlled --alias --et Vlan -t 45 --warning-traffic 97,1000,1000 --critical-traffic 99,5000,5000 -css nagiosxi --perfdatadir /usr/local/nagios/var/spool/perfdata/ --snmp-retries=5 --perfdataservicedesc process-service-perfdata-file-bulk --tp ifAdminStatus,ifOperStatus --cp=1
The status change is not enabled by default, so these options need to be added to the command.

Re: check_interface_table_v3t How to make changes

Posted: Mon Jul 05, 2021 5:14 am
by informatica
Hi Team,

Please find the below update.

We are not seeing any difference, we are still seeing all ports are OK eventhough in frontend admin and operstatus is down. Please find the below screenshot.

nagios@in-nagios-a toolsadmin]$ /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 10.65.152.11 -h INSANSW03 -C XXXX -2 -f --64bits -r -e unrouted,Null,Stack,FastEthernet,Uncontrolled,Controlled --alias --et Vlan -t 45 --warning-traffic 97,1000,1000 --critical-traffic 99,5000,5000 -css nagiosxi --perfdatadir /usr/local/nagios/var/spool/perfdata/ --snmp-retries=5 --perfdataservicedesc process-service-perfdata-file-bulk --tp ifAdminStatus,ifOperStatus --cp=1
OK - 53 port(s), 34 free, 31 AdminUp and free, 53 graphed <a href=/interfacetable_v3t/tables/INSANSW03-Interfacetable.html target=_self>[details]</a>
[nagios@in-nagios-a toolsadmin

Re: check_interface_table_v3t How to make changes

Posted: Tue Jul 06, 2021 10:05 am
by tgriep
What the plugin does is to monitor the State change of the interfaces.

If none of the ports change status the plugin will generate an OK and show green.
If the Operation status changed, or an interface was changes Administrative UP or Down between runs, the plugin will generate a Critical status and show red.

It does not display the ports as Red when they are down, only if the state of the interface has changed.

Do this for a test.

Select an unused port and change the Admin status of it.
Run the plugin and you should get a Critical that the port changed state and the GUI should show it as Red.
Then put the Admin status back to the original state, run the plugin and the Critical output of the plugin should go back to OK and the GUI should go back to green.

Thank You.