check_snmp_cisco_ifstatus.pl questions

My aims:

  1. Monitor all interface status for all interfaces on a host router
  2. On specific interfaces also check the number of errors, load etc etc

I can’t seem to work out how to do task number 1. Can someone give me some pointers.

I have just installed this perl script in order to do task 2. From the command line I have it running, but one of the arguments is the interface to check. From the command line this is no problem.

How do I pass the interface over to the script?

Do I need to create multiple command objects?

I guess this must be a common request!

many thanks

I have it running from the command line

Define the command in checkcommands.cfg. It is going to look pretty much the same as all the rest of them.