stephenjirvine / lightwaverf_energy_poller

Cacti script to poll LightwaveRF Wifi Link for Energy Usage
0 stars 0 forks source link

Cacti Log #1

Open richardvertigan opened 11 years ago

richardvertigan commented 11 years ago

Many thanks for your script Stephen! Just trying to get it working on my raspberry pi :-)

Cacti default install is working OK and default graphs are working.

I currently have the lwrfenergy graph displaying OK, but with no entries. The cacti log file shows the following (repeats the three rows every 5 mins). Does it look like an obvious quick fix?

06/25/2013 08:55:11 AM - PHPSVR: Poller[0] WARNING: Function does not exist INC: 'ss_lwrfenergypoller.php' FUNC: 'ss_lwrfenergypoller' PARMS: '192.168.1.71 192.168.1.74 9760 9761 '001,@?''

06/25/2013 08:55:11 AM - CMDPHP: Poller[0] Host[1] DS[16] WARNING: Result from SERVER not valid. Partial Result: U

06/25/2013 08:55:11 AM - SYSTEM STATS: Time:6.3548 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:10 RRDsProcessed:8

stephenjirvine commented 11 years ago

Hi Richard,

Nice to see someone using it! I've not seen that error before, so I might not be much help.

The bit that looks most interesting is the "partial result: U" bit in the second block.

When I wrote this I used wireshark a lot to sniff the packets, its just plain text sent over UDP so you can easily see the conversation between the wifilink and the PC. You may want to check that the response cacti gets from the WiFi link looks like the response cacti is expecting.

Beyond that make sure the year running cacti (www-data in Ubuntu) can wore to the directory where cacti puts its rrds.

They're the two most obvious things I can think of.

Steve On 25 Jun 2013 09:32, "richardvertigan" notifications@github.com wrote:

Many thanks for your script Stephen! Just trying to get it working on my raspberry pi :-)

Cacti default install is working OK and default graphs are working.

I currently have the lwrfenergy graph displaying OK, but with no entries. The cacti log file shows the following (repeats the three rows every 5 mins). Does it look like an obvious quick fix?

06/25/2013 08:55:11 AM - PHPSVR: Poller[0] WARNING: Function does not exist INC: 'ss_lwrfenergypoller.php' FUNC: 'ss_lwrfenergypoller' PARMS: '192.168.1.71 192.168.1.74 9760 9761 '001,@?''

06/25/2013 08:55:11 AM - CMDPHP: Poller[0] Host[1] DS[16] WARNING: Result from SERVER not valid. Partial Result: U

06/25/2013 08:55:11 AM - SYSTEM STATS: Time:6.3548 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:10 RRDsProcessed:8

— Reply to this email directly or view it on GitHubhttps://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1 .

richardvertigan commented 11 years ago

Thanks, presume that meant to say…

Beyond that make sure the year user running cacti (www-data in Ubuntu) can wore write to the directory where cacti puts its rrds

I’ll keep tinkering with it. Thanks again.

!

From: stephenjirvine [mailto:notifications@github.com] Sent: 25 June 2013 10:25 To: stephenjirvine/lightwaverf_energy_poller Cc: richardvertigan Subject: Re: [lightwaverf_energy_poller] Cacti Log (#1)

Hi Richard,

Nice to see someone using it! I've not seen that error before, so I might not be much help.

The bit that looks most interesting is the "partial result: U" bit in the second block.

When I wrote this I used wireshark a lot to sniff the packets, its just plain text sent over UDP so you can easily see the conversation between the wifilink and the PC. You may want to check that the response cacti gets from the WiFi link looks like the response cacti is expecting.

Beyond that make sure the year running cacti (www-data in Ubuntu) can wore to the directory where cacti puts its rrds.

They're the two most obvious things I can think of.

Steve On 25 Jun 2013 09:32, "richardvertigan" notifications@github.com wrote:

Many thanks for your script Stephen! Just trying to get it working on my raspberry pi :-)

Cacti default install is working OK and default graphs are working.

I currently have the lwrfenergy graph displaying OK, but with no entries. The cacti log file shows the following (repeats the three rows every 5 mins). Does it look like an obvious quick fix?

06/25/2013 08:55:11 AM - PHPSVR: Poller[0] WARNING: Function does not exist INC: 'ss_lwrfenergypoller.php' FUNC: 'ss_lwrfenergypoller' PARMS: '192.168.1.71 192.168.1.74 9760 9761 '001,@?''

06/25/2013 08:55:11 AM - CMDPHP: Poller[0] Host[1] DS[16] WARNING: Result from SERVER not valid. Partial Result: U

06/25/2013 08:55:11 AM - SYSTEM STATS: Time:6.3548 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:10 RRDsProcessed:8

— Reply to this email directly or view it on GitHubhttps://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1 .

— Reply to this email directly or view it on GitHub https://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1#issuecomment-19962878 .Image removed by sender.

stephenjirvine commented 11 years ago

Yes, my apologies, I'm writing this on a mobile phone on a train.

The best thing you can probably do now is to use wireshark to watch the conversation between the WiFi link and cacti. I'm particularly interested in the big capital U after the incomplete response: perhaps the WiFi link is responding with something different... On 25 Jun 2013 10:48, "richardvertigan" notifications@github.com wrote:

Thanks, presume that meant to say…

Beyond that make sure the year user running cacti (www-data in Ubuntu) can wore write to the directory where cacti puts its rrds

I’ll keep tinkering with it. Thanks again.

!

From: stephenjirvine [mailto:notifications@github.com] Sent: 25 June 2013 10:25 To: stephenjirvine/lightwaverf_energy_poller Cc: richardvertigan Subject: Re: [lightwaverf_energy_poller] Cacti Log (#1)

Hi Richard,

Nice to see someone using it! I've not seen that error before, so I might not be much help.

The bit that looks most interesting is the "partial result: U" bit in the second block.

When I wrote this I used wireshark a lot to sniff the packets, its just plain text sent over UDP so you can easily see the conversation between the wifilink and the PC. You may want to check that the response cacti gets from the WiFi link looks like the response cacti is expecting.

Beyond that make sure the year running cacti (www-data in Ubuntu) can wore to the directory where cacti puts its rrds.

They're the two most obvious things I can think of.

Steve On 25 Jun 2013 09:32, "richardvertigan" notifications@github.com wrote:

Many thanks for your script Stephen! Just trying to get it working on my raspberry pi :-)

Cacti default install is working OK and default graphs are working.

I currently have the lwrfenergy graph displaying OK, but with no entries. The cacti log file shows the following (repeats the three rows every 5 mins). Does it look like an obvious quick fix?

06/25/2013 08:55:11 AM - PHPSVR: Poller[0] WARNING: Function does not exist INC: 'ss_lwrfenergypoller.php' FUNC: 'ss_lwrfenergypoller' PARMS: '192.168.1.71 192.168.1.74 9760 9761 '001,@?''

06/25/2013 08:55:11 AM - CMDPHP: Poller[0] Host[1] DS[16] WARNING: Result from SERVER not valid. Partial Result: U

06/25/2013 08:55:11 AM - SYSTEM STATS: Time:6.3548 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:10 RRDsProcessed:8

— Reply to this email directly or view it on GitHub< https://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1> .

— Reply to this email directly or view it on GitHub < https://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1#issuecomment-19962878> .Image removed by sender.

— Reply to this email directly or view it on GitHubhttps://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1#issuecomment-19964012 .

adambarnett52 commented 10 years ago

Did you ever figure this out, i am having the same issue

stephenjirvine commented 10 years ago

No I didn't, unfortunately the PC I was using as a home server died a few months back and I haven't replaced it. On 24 Dec 2013 13:25, "adambarnett52" notifications@github.com wrote:

Did you ever figure this out, i am having the same issue

— Reply to this email directly or view it on GitHubhttps://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1#issuecomment-31171465 .

adambarnett52 commented 10 years ago

Ok. I ended up just using as a command/script from within cacti instead of a php script which worked.

On 29 Dec 2013, at 21:25, stephenjirvine notifications@github.com wrote:

No I didn't, unfortunately the PC I was using as a home server died a few months back and I haven't replaced it. On 24 Dec 2013 13:25, "adambarnett52" notifications@github.com wrote:

Did you ever figure this out, i am having the same issue

— Reply to this email directly or view it on GitHubhttps://github.com/stephenjirvine/lightwaverf_energy_poller/issues/1#issuecomment-31171465 .

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