Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable automap #3

Open
centreon opened this issue May 5, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@ghost
Copy link
Collaborator

commented May 5, 2015

Eric Cocquard write :

I want use automap in Nagvis but I have this message : "The requested feature getProgramStart is not provided by the backend (Backend-ID: centreonbroker_1, Backend-Type: centreonbroker). The requested view may not be available using this backend."

@ghost

This comment has been minimized.

Copy link
Collaborator Author

commented May 5, 2015

Thomas Valenta respond :

Hello,

there is workaround (I found it on internet at [http://sourceforge.net/mailarchive/forum.php?thread_name=C575F38E22BE174C84F9E70C836C5162E19B284F%40JEKYLL.Digorix2.digora.com&forum_name=nagvis-devel]

If you use the centreon-broker basically you have to add these lines to the GlobalBackendcentreonbroker.php which is provided as backend code for nagvis:

Public function getProgramStart() {
Return -1;
}

After you save the changes the error shouldn't appear anymore.
Should work with any other backend for nagviz (modifying corresponding backend .php file)

Best regards

Tomas

@leoncx leoncx added the bug label Sep 3, 2015

@leoncx leoncx added this to the 1.1.0 milestone Sep 3, 2015

@palash1985

This comment has been minimized.

Copy link

commented Feb 1, 2017

Hi
I am using Centreon 2.7.8 with and installed nagvis which is module for centreon. nagvis version 1.8.5
I followed your guide but still I'm getting same error.

Here I'm also little bit confuse cause there are same parameters are available as below in file, So have I to remove those?


public function getProgramStart() {
    $QUERYHANDLE = $this->mysqlQuery('SELECT UNIX_TIMESTAMP(program_start_time) AS program_start '
                                    .'FROM '.$this->dbPrefix.'programstatus WHERE instance_id='.$this->dbInstanceId);
    $data = mysql_fetch_array($QUERYHANDLE);
    mysql_free_result($QUERYHANDLE);
    if(isset($data[0]))
        return $data[0];
    else
        return -1;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.