hi every body
i write a script:
var=`grep '^2008-03-14 15:21:4[0-9]................................SendMessageRequest' /root/Desktop/event.log-14-03-2008/event.log | wc -l`
echo $var
whene i execute the script in linecommand i have the result 8 of the script
they calculate a number of line result by grep
the probléme is that in cacti graph i have 0 value in the graph
i try to make echo 8 i have 8 in the graph but echo $var gives 0
i don't now where is the problem
please any help
excuse my english
echo $var give 0 value in the graph
Moderators: Developers, Moderators
thanks buck for replying
i think the problem is not in my script bcause whene i run it in console he return a good anser but whene the script is run by cacti he return always 0 value
i think the problém is in the returned value for cacti or somewhere in cacti configuration but i don't now exactly where
thanks for your help
i think the problem is not in my script bcause whene i run it in console he return a good anser but whene the script is run by cacti he return always 0 value
i think the problém is in the returned value for cacti or somewhere in cacti configuration but i don't now exactly where
thanks for your help
Who is online
Users browsing this forum: No registered users and 0 guests