Disable logging of error in script

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
barryard
Posts: 1
Joined: Fri Oct 23, 2015 3:00 pm

Disable logging of error in script

Post by barryard »

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'
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Disable logging of error in script

Post by netniV »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest