Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
- Multiple OIDs (and labels) may be indicated by a comma or space-delimited
list (lists with internal spaces must be quoted). Maximum: 8 OIDs.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
No, but the check will fail as they are all contained in the same check. Also, you may have to list the full mib: IfOperStatus.1, IfOperStatus.2, IfOperStatus.3,etc.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Is there a way to get the interface name automatically ... for example i have some routers that have GigabitEthernet and some have FastEthernet and also there is some that are Tunles so is there a way to automatically get the Description of the interfaces and in the Service Service to be the or somewhere in the port status information to know what port is it ?
This all depends on the device, its snmp support and the related mibs. Usually, you just get the mib id of the interface "IfOperStatus.1". Any descriptive naming conventions would have to be entered in to the service check config name or description by hand.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Yes, the device is Cisco 1900 and it has enable snmp and with the MIB Browser that is the Windows app i can see all mibs etc ... so now im using check_snmp! -o ifOperStatus.1 ... the check_snmp with ifOperStatus and if im going to put the description name manual i have some problems, becouse there is some routers that the interface .1 and that is FastEthernet0/0 is the tunell or some Embedded services so if i wrote that it is FastEthernet it is not try on that kinds of router and i have 700 routers to monitor so im trying to find some easy solution to get the value of the IfDescr and that is the name of the interfaces automatic and i found check_ifoperstatus where you tell to check the status of a given interface name ... but again the same problem is calling it destroying my grouping concept and the cfg files getting more complex. It is a solution but i was wondering if there a way to automatic the description of the interface or pull the description of the device himself
Just for clarity:
You want to automate the service name of the check to reflect the mib?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
No i want service description to be automate ... example: if i have service that check if the port is up or down i would like in the service description or in Status Information to tell me what kind of port is that ( FastEthernet, GigabitEthernet, Serial ).
For now i have found the check_ifoperstatus that work take for check the name of the interface ... ./check_ifoperstatus -H <hostname> -C <community> -d <interface name>
and i create separate services for each interface with a given description ... it was long and painful way because i have to list all the interface description on each Router that i have to put ... and now i have 50 router and i have to do on 250 more so im trying to find some easy way
Unfortunately, there is no bulk renaming tool in core as far as I know (although there is a nifty one in XI). Is there no clever grep/sed/echo/awk solution?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
whell yes there is some other solutions ... me making shell script and that's it for now im going manually ... im still experiencing the nagios and im surprised what this miracle have to offer ... im rely glad that im using it and its rely the great system for monitoring i have to say the BEST !!! LOVE IT and continuing to support on the forum for everything i know