Monitoring Multiple Servers on FOP2..

  1. 11 years ago

    Maybe this is a FreePBX distro issue, but I am not sure. I have a fully licensed version of FOP2, and was trying to get it to monitor both of my machines.

    So following the directions, I went and modified fop2.cfg per the information on the help pages here, adding in the new entries for the next machine:

    ; Server 2 (sample)
    manager_host = 10.1.1.14
    manager_port = 5038
    manager_user = admin
    manager_secret = ampxxx

    I also made sure the asterisk install was set to accept the connection, and even used telnet to verify I could indeed connect. This all seemed simple enough, so I fire up FOP2 and login, but ONLY my local server info is displayed.

    Now here is where it gets weird, I decided as a test to take and comment out my local server settings, and leave only my remote server info in the fop2.cfg file, thinking that it would at least show the remote server then as a test. To my surprise, with ONLY the remote server in fop2.cfg I then restarted fop2, even cleared out my browser cache so I had to log back in, and still it shows only the local info. What? I would have expected it to not even be aware of the local server with that change, but still it displays only the local info. I even ran a find looking for other fop2.cfg files, but only the one existed.

    I ask if maybe the FreePBX distro with fop2 is different, as it seems to not only have fop2 files in /usr/local/fop2, but also in /etc/asterisk/fop2 as well, in fact I even tried creating a hard link between fop2.cfg so I was positive the file was available in either directory to be read, but still no change.

    Any clues on this one, or how to debunk this problem would sure be most appreciated..

    -Howard

  2. admin

    25 Apr 2013 Administrator

    What you describe is totally logical. There are a set of auto configuration scripts that will point only to the local database, so if you want multiple server monitoring, you do not only need to add an extra manager_host in fop2.cfg, but also hack the autoconfig scripts or do a manual configuration. It is not possible to get a full fop2 config data just from a manager connection, it is much more complicated than that.

    View Post 1752

or Sign Up to reply!