3 # enable for debugging:
5 exec 2>>/tmp/nagios-cacti.log
13 # Remove trailing slash if needed
16 # pass user and password conditionally.
17 # this way we can even have passwords in them.
18 # retry only once with timeout of 30s
19 wget -t 1 -T 30 --no-check-certificate -q -O- ${user:+--user="$user" --password="$password"} "$url/mrtgstats.cgi?type=$type"