check_interface_table_v3t How to make changes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

check_interface_table_v3t How to make changes

Post 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>
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: check_interface_table_v3t How to make changes

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: check_interface_table_v3t How to make changes

Post by informatica »

Please find the attachment.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_interface_table_v3t How to make changes

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: check_interface_table_v3t How to make changes

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_interface_table_v3t How to make changes

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!