Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filter monitored SNMP interfaces by ifAlias
I am trying out PandoraFMS Enterprise version.
I discover Cisco switches and routers via Discovery > Host&Devices > Network Scan

I do not select any Module templates and run SNMP only discovery. Devices are discovered successfully and ifOperStatus, ifHCInOctets, ifHCOutOctets of ALL interfaces is monitored. But do not need that.
I need match such logic:
if ifAlias ( contains string “monitor_me”, start monitoring ifOperStatus (, and alert if it is down.
X – interface SNMP index from 1 to n.

How can I achieve this?

With policies it seems I cannot do that, because I cannot find module which would be able to interact with more than one OID. And it seems that modules are static in nature and only can poll single OID of single interface.
During discovery something more clever and dynamic is done. There all interfaces and their names are discovered.
I wonder if it could be changed to what I need?
Hello Aurimas.

What you need to do can't be achieved without using a script for that, as Pandora features don't include something like "match a string and if true then create the module".

Discovery is intended for get all the interesting information from the devices and then let you decide if you want to add all the monitoring or only part of them, but use more complex or specific rules as you mention is not possible.

So as a script would be the only way to do exactly what you need, it could be done by querying via SNMP the ifAlias of desired interfaces, check if it matches with the desired string and if it does then create the ifOperStatus module with Pandora CLI:

Kind regards.

Users browsing this thread: 1 Guest(s)

(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | |

Theme © MyBB Themes