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

Bs3 #133

Closed
wants to merge 201 commits into from
Closed

Bs3 #133

wants to merge 201 commits into from

Conversation

tarak666
Copy link

@tarak666 tarak666 commented May 7, 2015

No description provided.

lermit and others added 30 commits March 26, 2014 12:19
In the only_related_to function we only check if
  * tested element have related contact
  * if the source problem have related contact
  * if related impacts have related contact
but we didn't test if host of current critical service have related
contact.

Here I've add the ability to check if host of the service have related
contact and should be displayed.
Usage :

        'duration': {
            'value': 'id of selected value',
            'values': {
                'Label Option 1': 'id option 1',
                'Label Option 2': 'id option 2',
                'Label Option 3': 'id option 3',
            },
            'type': 'select',
            'label': 'Global label'
        },
This was my first time with Shinken and I got tripped by the outdated docs on the .org site. Had trouble finding the readthedocs doc (probably because of google indexing) but still the doc there wasn't detailed for a first time module installation (I guess I wouldn't be the only first time installer looking into webui as a first module), had to search in the forum, undesrstand there was some kind of video or tutorial, and finally found more detailed instructions on Naparuba's course's github. How about also updating the shinken.io webui module installation steps!
Do not display empty groups
Add host name column
Fix text in progress bar (service instead of host)
Remove anonymous login test
Add link on icons
... once again sorry ;-)
@mohierf
Copy link
Contributor

mohierf commented May 7, 2015

Why did you make this PR ? Bad idea ... there are too many differences between these branche !

What is the idea behind this PR ?

@tarak666
Copy link
Author

tarak666 commented May 8, 2015

Hi,
Thanks for reply, I have shinken 2.2 installed in centos6. But i don't have history tab in my webui and downtime not working in webui.

Can you help me out from this two issues.

Thanks,
Tarak

@mohierf
Copy link
Contributor

mohierf commented May 9, 2015

Can you copy/paste a screen capture of your WebUI here ?

@tarak666
Copy link
Author

Hi,
PFA.. screen capture of my WebUI.
capture

capture1

@mohierf
Copy link
Contributor

mohierf commented May 11, 2015

The history tab is available in the BS3 WebUI if :

  • you have the livestatus + logstore-mongo broker modules to store the logs
  • you activated the history tab in the WebUI plugin configuration file (plugins/logs/plugin.cfg)

First of all, you need to be sure that your shinken logs are stored in the mongodb database ... and then you will have host/service logs in the history tab.

@tarak666
Copy link
Author

Hi,
I have livestatus + logstore-mongo and activied in broker modules.
I can see log generating in mongo.
{code}

show databases
local 0.078125GB
shinken 0.203125GB
shinkenLivestatusLogs 0.203125GB
show tables
use shinkenLivestatusLogs
switched to db shinkenLivestatusLogs
db.logs.find()
{ "_id" : ObjectId("000000c04e2870000000b459"), "comment" : "", "plugin_output" : "", "attempt" : 0, "message" : "[111111] PASSIVE SERVICE CHECK: localhost;Check Swap Usage;2;", "logclass" : 4, "options" : "", "state_type" : "", "lineno" : 932, "state" : "2", "host_name" : localhost", "time" : 14111796, "service_description" : "Check Swap Usage", "logobject" : 2, "type" : "PASSIVE SERVICE CHECK", "contact_name" : "", "command_name" : "" }
{code}

But i don't have "plugins/logs/plugin.cfg" file and no ware i see log option on webui.

@mohierf
Copy link
Contributor

mohierf commented May 11, 2015

Are you sure you have BS3 WebUI ? You should have a plugins directory into the WebUI module dir ...

@tarak666
Copy link
Author

Hi mohierf,

Sorry for late reply, yes i am using BS3 Webui. I have plugins directory but dont have log directory on it, i have plugin.cfg file on eltdetail directory. And i can see logs in mongodb but i see error " Error : Unable to create mongo DB connection localhost:27017" on webui Log tab.

Thanks,
Tarak

@mohierf
Copy link
Contributor

mohierf commented May 13, 2015

I you have a recent BS3 you should have a logs directory under plugins ... if not, your installation is corrupted.

The error is because the mongodb server is not launched or your database is not available. Please make sure that :

  • mongodb is running
  • logstore-mongodb Shinken module is installed and running
  • logstore-mongodb Shinken module database configuration is the same as WebUI (config file in webui/plugins/logs directory)

@tarak666
Copy link
Author

Yes, I changed code to BS3-1.0 tag, i see lot of chages in webui, Looks great thanks for that.
But No luck on my log and History,
File: Mongodb.cfg

define module {
module_name mongodb
module_type mongodb
uri mongodb://localhost/?safe=false
database shinken
#username username ;optional
#password password ;optional
}

file:- logstore_mongodb.cfg

define module {
module_name logstore-mongodb
module_type logstore_mongodb
mongodb_uri mongodb://localhost/?safe=false ; Set to your value
database shinken
}

mongod (pid 3024) is running...

And New issue is Graphs, I have Graphite installed and using in shinken2.2.
But now its not showing in details page after changed code.
Screen Shots:-
Graphs tab Missing
1
History:
2
Log
3

Thanks

@mohierf
Copy link
Contributor

mohierf commented May 13, 2015

I will have a look to your problems on my configuration.

Meanwhile, please open two new issues for that we stop discussing in this PR thread ...

One issue for your mongodb logs problem ...
One issue for your graphite graphs ...

It will be easier to manage.

@tarak666
Copy link
Author

Sure, Thanks For you help and Time.

@tarak666
Copy link
Author

@mohierf
Copy link
Contributor

mohierf commented May 13, 2015

I close this pull request. Discussion is now in the two opened and referenced issues.

@mohierf mohierf closed this May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants