[rrd-users] I need help with my rrd file
Nuno Pereira
nunopereira at interacesso.pt
Fri Sep 26 17:21:14 CEST 2008
Resending to the list...
Instead of
snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.10.4 > $input
snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.16.4 > $output
try
input = `snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.10.4`
output = `snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.16.4`
Nuno Pereira
-----Mensagem original-----
De: rrd-users-bounces at lists.oetiker.ch
[mailto:rrd-users-bounces at lists.oetiker.ch] Em nome de alucard95
Enviada: sexta-feira, 26 de Setembro de 2008 15:28
Para: rrd-users at lists.oetiker.ch
Assunto: Re: [rrd-users] I need help with my rrd file
I think the problem is with my script.
So, i create a new script like this :
#!/bin/sh
snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.10.4 > $input
snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.16.4 > $output
# I can use N as a replacement for the current time
rrdtool update /home/zabbix/switch.rrd 1222431060:$input:$output
and when i execute it, i have this result :
#sh test_script.sh
test_script.sh: 2: cannot create : Directory nonexistent
test_script.sh: 4: cannot create : Directory nonexistent
I don't understand this error, i now it's a scripting error without link
with rrdtool but if anybody understand what's happen... :-)
--
View this message in context:
http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1121025.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
_______________________________________________
rrd-users mailing list
rrd-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
More information about the rrd-users
mailing list