phalek wrote:hm ... wait a second, I think I know the "probable" error of this.
Did you actually create the smokeping config (the target section of it) using the webservice function ?
I discovered a txt file in my cacti root that was produced whenever I added hosts to be smokepinged and used that to create my target section.
phalek wrote:I've created a perl script for doing this and separated the smokeping config in a "config.header" file and the target stuff.
The Script then takes the config.header and the output from the webservice to create the final smokeping config.
I made the following mods to the script to get it to run, do these look correct?
Code: Select all
### START OF WEB SERVCE SETTINGS ###
my $webservice_password = 'admin';
my $webservice_url = 'http://xx.xx.xx.xx/cacti2/plugins/nmidWebService/webservice.php?wsdl';
my $tmp_dir = '/tmp/';
### END OF WEB SERVCE SETTINGS ###
system ('cat /usr/local/smokeping/etc/config.header > /usr/local/smokeping/etc/config');
open(CONFIG, ">>".'/usr/local/smokeping/etc/config');
I ran this script. First I got an error because config.header did not exist, so I create a blank one. Then it ran, the contents of config.header were still empty, buy my config file contained
so I rolled back to a backup
in NMID in cacti, I have set my webservices password (typed in twice) the same as in this file. but, I do not have anything in the Smokeping UserID/Password (.htaccess) field because I do not use any security here. Is that OK??
Any other thoughts?