[Ilugc] Zabbix Process Monitoring Script Help Required.

  • From: ileshwar@xxxxxxxxx (Ilesh war)
  • Date: Thu, 28 Aug 2014 19:14:38 +0530

Dear Raman,


On Thu, Aug 28, 2014 at 3:21 PM, Raman Pandarinathan <raamanp at gmail.com>
wrote:

On 8/28/14, Ilesh war <ileshwar at gmail.com> wrote:
Hi,

I have implemented Zabbix 2.2 on OpenSuSE (Virtual Appliance). Its
working
well, I have downloaded a perl script from forums to monitor processes of
windows servers to which process taking how much load. when I execute the
script I am getting following error.

# perl lld_all_graph.pl
Scalar found where operator expected at lld_all_graph.pl line 62, near
"$dec"
        (Missing semicolon on previous line?)
syntax error at lld_all_graph.pl line 62, near "$dec "

I do not have any perl scripting knowledge. I have searched in forum
that I
need to check URL and PASSWORD. The URL and PASSWORD are correct ( using
default credentials).

The steps i have taken is as follows
#chmod +x lld_all_graph.pl
#chmod +x list_items.pl
#dos2unix lld_all_graph.pl
#dos2unix list_items.pl

I am giving scripts urls please guide me where I am doing wrong.

http://pastebin.com/gh6YAvtE
http://pastebin.com/wGkStHJ5


--

A semicolon is missing in line 62 i.e
 return $dec_out

Change this to
return $dec_out;

Raman.P


It is not there in line 62 but the following is there.
$dec = decode_json($res);

in line no.92 the following is there
return $dec_out

I have modified it to
return $dec_out;

Still the same error i am getting.

Request you to help me out.


 --
With Regards
Ilesh

Other related posts: