Suppress snmp-warnings/errors in PHP?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi all!

I have a script that queries a whole bunch of clients for a specific
value. Some of the clients do not repond properly, and then I end up
with lines like:

Warning: snmpget(): Error in packet: (noSuchName) There is no such
variable name in this MIB. in /usr/local/sbin/signal_new.php on line

Warning: snmpget(): This name does not exist: SNMPv2-SMI::enterprises.
14988. in /usr/local/sbin/signal_new.php on line 36

How do I completely suppress any warnings/errors from the snmpget


Site Timeline