You are not logged in.

#1 2019-04-21 21:35:09

miomio
Member
Registered: 2016-01-17
Posts: 167

[SOLVED] Smokeping error using wiki example config

As in the title - I've installed Smokeping and followed the wiki page: https://wiki.archlinux.org/index.php/Smokeping.

The wiki gives an example config which I've taken, added a new target:

++ Facebook

menu = Facebook
title = facebook.com
host = facebook.com

+ removed the ArchLinux target, plus added `packetsize = 470` beneath `binary = /usr/bin/fping`.

The problem is when I select the 'Targets' menu item from the browser front-end, I get this message:

Software error:
Can't call method "_pings" on an undefined value at /usr/lib/Smokeping.pm line 889.
For help, please send mail to the webmaster (you@example.com), giving this error message and the time and date of the error.

Checking Apache error log is:

[Sun Apr 21 21:55:32.704826 2019] [fcgid:warn] [pid 517:tid 140367533938432] [client 192.168.0.43:37088] mod_fcgid: stderr: [Sun Apr 21 21:55:32 2019] smokeping_cgi [client 192.168.0.43]: Can't call method "_pings" on an undefined value at /usr/lib/Smokeping.pm line 889., referer: http://testbox/smokeping/smokeping.fcgi?target=_charts

I am also finding that the behaviour of picking up new config isn't very clear: does smokeping need a `systemctl restart smokeping.service` or to use the `smokeping`|`smokeping_cgi` programs instead? Does smokeping also need a `systemctl restart httpd.service` to behave properly too?

EDIT:

`smokeping --check --config=/etc/smokeping/config` gives an OK.

EDIT:

Ignore. Hasty post. (solution: edit the MultiHost `host` if changing the targets...)

Last edited by miomio (2019-04-21 21:48:27)

Offline

Board footer

Powered by FluxBB