After downloading the plugins for cacti I got right to monitoring my Mysql DB. And life is good.
So I tried the Redis tools, and after a quick adjustment in the ss_get_by_ssh.php graphing of Redis springs to life. Great!
So Mongo is next. Same ssl, keys, no changes to the cacti env. It looks good so far… but data never populates.
manually run the php from the cacti host as described in the documents; php /usr/share/…/ss_get_by_ssh.php --type mongodb --host my-host --items mk,ml
Result returned is mk:-1 ml:0
I get this result if run as root or cacti. Since this was similar to my Redis deployment, I figured ssh was the issue. After manually ssh’ing into the mongo server, running the query, I get plenty of results. Yet I’m still get a -1 return from the cacti host. I try this on all the --items for mongo… and ~75% return -1 while the rest return 0
I’m new to Percona and only just relearning Cacti.
Anyone able to help me out?
I don’t understand why this is not working.
from the mongo db host I see the valid ssh connections
Jul 23 17:47:20 sshd[3872]: Accepted publickey for root from port 55998 ssh2
Jul 23 17:47:21 sshd[3872]: Received disconnect from : 11: disconnected by user
On the cacti-host, in /tmp/_mongodb_cacti_stats.txt I can see the temp file for the stats. contain this;
If I ssh manually with the same user and ssh key I use in the ss_get_by_ssh.php, into the mongo-host and run the command below I get complete success. I’m thinking a path issues?
db._adminCommand({serverStatus : 1});
I am having the same issue listed here. ss_get_by_ssh.php works great to my other monitors. It is collecting CPU, memory, networking, etc from my mongoDB server. It just wont pull the mongoDB status.
I do have authentication in place for my mongoDB and I am guessing thats the issue but have not been able to find any documentation on where to configure that.
I am running Percoan Monitoring Tools 1.1.3, i am not opposed to installing 1.1.5 the latest at this time but I was hoping for some direction to go in before that.