Is there a way to turn off cacti logging before I call cacti_snmp_get() in my script?
I have a script that is doing an snmpget on a table row that may not exist. When this is done I get an error in my cacti.log:
CMDPHP WARNING: SNMP Error:'snmp2_get(): Error in packet at 'iso.3.6.1.4.1.14179.2.2.13.1.24.0.190.117.181.243.160.0': No Such Instance currently exists at this OID'
Disable logging of error in script
Moderators: Developers, Moderators
Re: Disable logging of error in script
Use the @ symbol on the line you are doing.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 10 guests