jgaret / nagios-xenserver

Nagios check plugin for xenserver
11 stars 4 forks source link

I want connect pnp4nagios and watching gragh #2

Open kimduksoo opened 9 years ago

kimduksoo commented 9 years ago

Hi I using your program that "nagios_xenserve.py" but it is not created XML , RRD therefore it is failed created gragh...

please help me ...

jgaret commented 9 years ago

Hello,

I am not used to pnp4nagios, this script just intend to generate performance data on its output so that it can be read from other tools, it will not create XML nor RRD. Maybe the output is not well parsed by pnp4nagios, please provide logs to analyze the problem.

kimduksoo commented 9 years ago

HI ye i know now that you code not support pnp4nagios therefore i just write progream for pnp4nagios thank you for you are consider and code

Maybe finish this jab i will show you code ^^

-----Original Message----- From: "Julien Garet"<notifications@github.com> To: "jgaret/nagios-xenserver"<nagios-xenserver@noreply.github.com>; Cc: "kimduksoo"<nong1000@naver.com>; Sent: 2014-11-17 (월) 16:59:31 Subject: Re: [nagios-xenserver] I want connect pnp4nagios and watching gragh (#2)

Hello,

I am not used to pnp4nagios, this script just intend to generate performance data on its output so that it can be read from other tools, it will not create XML nor RRD.

Maybe the output is not well parsed by pnp4nagios, please provide logs to analyze the problem.

— Reply to this email directly or view it on GitHub.

kimduksoo commented 9 years ago

maybe do you know ? why not working your "check_cpu" ? just output 0.0

-----Original Message----- From: "Julien Garet"<notifications@github.com> To: "jgaret/nagios-xenserver"<nagios-xenserver@noreply.github.com>; Cc: "kimduksoo"<nong1000@naver.com>; Sent: 2014-11-17 (월) 16:59:31 Subject: Re: [nagios-xenserver] I want connect pnp4nagios and watching gragh (#2)

Hello,

I am not used to pnp4nagios, this script just intend to generate performance data on its output so that it can be read from other tools, it will not create XML nor RRD.

Maybe the output is not well parsed by pnp4nagios, please provide logs to analyze the problem.

— Reply to this email directly or view it on GitHub.

candymanuu commented 9 years ago

PNP4Nagios works for check_cpu, if you make the following change in check_xenserver.py

globalperf = globalperf / len(perfdata)
print prefix + "\n" + "\n".join([host+" Used CPU = "+str(round(perfdata[host],2)) for host in perfdata]) + "%; |" +\
" ".join(["'"+host+"_used_cpu'="+str(round(perfdata[host],2))+"%;"+str(float(warning))+";" + str(float(critical))+"" for host in perfdata])

sys.exit(exitcode)
kimduksoo commented 9 years ago

thank you for your advice ^^ all most done my work