Hi Jochen,

I tried to run echo 'db.serverStatus()' | mongo > server-status.txt

but it's showing -bash: mongo: command not found

I am running this command in bin folder of mongoDB.

Please guide.

Regards,
Shrawan

On Friday, 16 September 2016 14:01:10 UTC+5:30, Jochen Schalanda wrote:
>
> Hi Shrawan,
>
> it seems like there's a bug in the status collector for MongoDB.
>
> Could you please share your MongoDB configuration (probably 
> /etc/mongod.conf) and share the output of the db.serverStatus() 
> <https://docs.mongodb.com/manual/reference/method/db.serverStatus/> 
> command in the mongo shell <https://docs.mongodb.com/manual/mongo/>.
>
> You can probably get the latter information with the following command:
>
> echo 'db.serverStatus()' | mongo > server-status.txt
>
>
> After running this command, the required data should be in the 
> server-status.txt file.
>
>
> Cheers,
> Jochen
>
>
> On Friday, 16 September 2016 08:36:37 UTC+2, Shrawan Bhagwat wrote:
>>
>> Hi All,
>>
>> I have setup latest pack of graylog, elasticsearch and mongodb.
>> while starting Graylog i m getting following in logs:
>> 2016-09-16 11:37:17,191 ERROR: 
>> org.graylog.plugins.usagestatistics.UsageStatsClusterPeriodical - Uncaught 
>> exception in periodical
>> java.lang.NullPointerException: no value for: mappedWithJournal
>>         at org.bson.BasicBSONObject.getInt(BasicBSONObject.java:130) 
>> ~[graylog.jar:?]
>>         at 
>> org.graylog2.system.stats.mongo.MongoProbe.mongoStats(MongoProbe.java:213) 
>> ~[graylog.jar:?]
>>         at 
>> org.graylog2.system.stats.ClusterStatsService.mongoStats(ClusterStatsService.java:113)
>>  
>> ~[graylog.jar:?]
>>         at 
>> org.graylog2.system.stats.ClusterStatsService.clusterStats(ClusterStatsService.java:89)
>>  
>> ~[graylog.jar:?]
>>         at 
>> org.graylog.plugins.usagestatistics.collectors.ClusterCollector.buildClusterStats(ClusterCollector.java:77)
>>  
>> ~[?:?]
>>         at 
>> org.graylog.plugins.usagestatistics.collectors.ClusterCollector.getClusterDataSet(ClusterCollector.java:72)
>>  
>> ~[?:?]
>>         at 
>> org.graylog.plugins.usagestatistics.UsageStatsClusterService$1.get(UsageStatsClusterService.java:52)
>>  
>> ~[?:?]
>>         at 
>> org.graylog.plugins.usagestatistics.UsageStatsClusterService$1.get(UsageStatsClusterService.java:49)
>>  
>> ~[?:?]
>>         at 
>> com.google.common.base.Suppliers$ExpiringMemoizingSupplier.get(Suppliers.java:199)
>>  
>> ~[graylog.jar:?]
>>         at 
>> org.graylog.plugins.usagestatistics.UsageStatsClusterService.buildClusterDataSet(UsageStatsClusterService.java:58)
>>  
>> ~[?:?]
>>         at 
>> org.graylog.plugins.usagestatistics.UsageStatsClusterPeriodical.buildPayload(UsageStatsClusterPeriodical.java:87)
>>  
>> ~[?:?]
>>         at 
>> org.graylog.plugins.usagestatistics.UsageStatsPeriodical.doRun(UsageStatsPeriodical.java:93)
>>  
>> ~[?:?]
>>         at 
>> org.graylog2.plugin.periodical.Periodical.run(Periodical.java:77) 
>> [graylog.jar:?]
>>         at 
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
>> [?:1.8.0_101]
>>         at 
>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
>> [?:1.8.0_101]
>>         at 
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>>  
>> [?:1.8.0_101]
>>         at 
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>>  
>> [?:1.8.0_101]
>>         at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>  
>> [?:1.8.0_101]
>>         at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>  
>> [?:1.8.0_101]
>>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
>>
>> While the web interface is showing following error:
>> Error - the server returned: 404 - cannot POST /graylog/system/sessions 
>> (404)
>>
>> Please guide.
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/eb2599e8-c43a-4b1d-95b0-08233af79253%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to