Task #2784
closed
nagios, ganglia: add credentials to mongodb checks
100%
Description
Since last friday, it's need to be authenticated for performing mongodb checks
Updated by Andrea Dell'Amico over 9 years ago
How? Is there a user/password that nagios (and ganglia) can use to only access the data they need to read?
Updated by Roberto Cirillo over 9 years ago
Yes, of course. You can find the credentials on "mongo1-p-d4s.d4science.org" under /root/README.
Updated by Andrea Dell'Amico over 9 years ago
About nagios: the checked functionalities are:
if action == "connections": elif action == "replication_lag": elif action == "replication_lag_percent": elif action == "replset_state": elif action == "memory": elif action == "memory_mapped": elif action == "queues": elif action == "lock": elif action == "current_lock": elif action == "flushing": elif action == "last_flush_time": elif action == "index_miss_ratio": elif action == "databases": elif action == "collections": elif action == "oplog": elif action == "journal_commits_in_wl": elif action == "database_size": elif action == "database_indexes": elif action == "collection_indexes": elif action == "collection_size": elif action == "collection_storageSize": elif action == "journaled": elif action == "write_data_files": elif action == "opcounters": elif action == "asserts": elif action == "replica_primary": elif action == "queries_per_second": elif action == "page_faults": elif action == "chunks_balance": elif action == "connect_primary": elif action == "collection_state": elif action == "row_count": "replset_quorum":
Updated by Andrea Dell'Amico over 9 years ago
I see that mongo1 (the arbiter?) now fails for every check.
Updated by Roberto Cirillo over 9 years ago
Andrea Dell'Amico wrote:
I see that mongo1 (the arbiter?) now fails for every check.
Yes, mongo1 is the arbiter
Updated by Andrea Dell'Amico over 9 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
The nagios part is OK.
Updated by Andrea Dell'Amico over 9 years ago
For the future: the arbiter does not work against authentication in the same way the other mongo servers do. So I disabled the authentication for the arbiter ad removed the checks that sill failed. They were not needed anyway on that host.
Updated by Andrea Dell'Amico over 9 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
Ganglia is working again too.