Attivare il mapping dei nomi SNMP delle interfacce in NTOP

From RVM Wiki
Revision as of 14:27, 11 January 2024 by Gabriele.vivinetto (talk | contribs) (Created page with "Questo script mappa i nomi delle interfacce snmp estraendo gli IP dei monitored devices da redis export NTOPSNMPCOMMUNITY="public" * Creare il cronjob * cat > /etc/cron.d/ntopngSnmpMappings <<EOFile # Check for new SNMP deviced and map them every 5 minutes /5 * * * * root /usr/local/sbin/make_snmp_mappings.sh $NTOPSNMPCOMMUNITY > /dev/null EOFile <precat > /etc/cron.d/ntopngSnmpMappings <<EOFile <nowiki>#</nowiki> Check for new SNMP deviced and map them every 5...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Questo script mappa i nomi delle interfacce snmp estraendo gli IP dei monitored devices da redis

export NTOPSNMPCOMMUNITY="public"
  • Creare il cronjob
cat > /etc/cron.d/ntopngSnmpMappings <<EOFile 
# Check for new SNMP deviced and map them every 5 minutes
/5 * * * * root /usr/local/sbin/make_snmp_mappings.sh $NTOPSNMPCOMMUNITY > /dev/null
EOFile

<precat > /etc/cron.d/ntopngSnmpMappings <<EOFile

# Check for new SNMP deviced and map them every 5 minutes

/5 * * * * root /etc/nprobe/make_snmp_mappings.sh > /dev/null

EOFile

cat > /etc/nprobe/make_snmp_mappings.sh >>EOfile

EOfile

chmod +x /etc/nprobe/make_snmp_mappings.sh