Salut,
Am urmatorul script:
#!/bin/bash
# host list
HOSTLIST="
192.168.0.50
192.168.10.1
"
# Make configuration file
for HOST in $HOSTLIST
do
/usr/bin/cfgmaker \
--global 'WorkDir: /var/www/html/mrtg' \
--global 'Options[_]: bits,growright' \
--output /etc/mrtg/$HOST.cfg \
[EMAIL PROTECTED]
done
Cand il execut:
[EMAIL PROTECTED] mrtg]# /etc/mrtg/makecfg.sh
--base: Get Device Info on [EMAIL PROTECTED]:
SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.0.50" [192.168.0.50].161)
community: "public"
request ID: 516312512
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi/SNMP_util.pm
line 621
SNMPWALK Problem for 1.3.6.1.2.1.1 on [EMAIL PROTECTED]::::::v4only
at /usr/bin/cfgmaker line 775
WARNING: Skipping [EMAIL PROTECTED]: as no info could be retreived
--base: Writing /etc/mrtg/192.168.0.50.cfg
--base: Get Device Info on [EMAIL PROTECTED]:
SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.10.1" [192.168.10.1].161)
community: "public"
request ID: -327071711
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi/SNMP_util.pm
line 621
SNMPWALK Problem for 1.3.6.1.2.1.1 on [EMAIL PROTECTED]::::::v4only
at /usr/bin/cfgmaker line 775
WARNING: Skipping [EMAIL PROTECTED]: as no info could be retreived
--base: Writing /etc/mrtg/192.168.10.1.cfg
[3]+ Done mrtg /etc/mrtg/192.168.0.50.cfg
De ce SNMP-ul meu nu poate culege informatii? Cam cum ar trbui sa arate un
snmpd.conf ca sa-mi mearga si mie jucarica? al meu e asa:
rocommunity doru
Multumesc!
---
Outgoing mail is certified Virus Free. Acest e-mail este clasificat ca fiind
fara virusi!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.552 / Virus Database: 344 - Release Date: 12/15/2003
---
Detalii despre listele noastre de mail: http://www.lug.ro/