[script://$SPLUNK_HOME/etc/apps/serial_numbers/bin/test.sh]
disabled = false
host = PoC_test
index = snmp
interval = 60.0
sourcetype = serial_custom
source = PoC_test
when my script contains folowing, it will not provide anything to Splunk
#!/bin/sh
/usr/bin/snmpget -v1 -O0 -c public poc_test IF-MIB::ifPhysAddress.1
but this works fine:
#!/bin/sh
/usr/bin/snmpget -v1 -c public poc_rm IF-MIB::ifPhysAddress.1
anyone know where is the problem ?
↧