Discussion:
[Check_mk (english)] nagios.log vs CMC
Gerardo Ferreyra
2018-07-12 19:22:54 UTC
Permalink
Hi guys.
Beforce CMC, i checked, for example, how many "CRIT" i had with some host
and filesystem
in january 2018... looking at:

nagios-01-01-2018-00.log
nagios-01-02-2018-00.log
nagios-01-03-2018-00.log
nagios-01-04-2018-00.log
nagios-01-05-2018-00.log
nagios-01-06-2018-00.log
nagios-01-07-2018-00.log
nagios-01-08-2018-00.log
nagios-01-09-2018-00.log
nagios-01-10-2018-00.log
nagios-01-11-2018-00.log
nagios-01-12-2018-00.log
nagios-01-13-2018-00.log
nagios-01-14-2018-00.log
nagios-01-15-2018-00.log
nagios-01-16-2018-00.log
nagios-01-17-2018-00.log
nagios-01-18-2018-00.log
nagios-01-19-2018-00.log
nagios-01-20-2018-00.log
nagios-01-21-2018-00.log
nagios-01-22-2018-00.log
nagios-01-23-2018-00.log
nagios-01-24-2018-00.log
nagios-01-25-2018-00.log
nagios-01-26-2018-00.log
nagios-01-27-2018-00.log
nagios-01-28-2018-00.log
nagios-01-29-2018-00.log
nagios-01-30-2018-00.log
nagios-01-31-2018-00.log

If i want to look for the same thing, now with CMC, where should i look?

Thanks!
Christopher Cox
2018-07-12 19:58:20 UTC
Permalink
Host and Service Events -> upper left(filter) -> Time of log entry From
365 days ago | Logentry class Alerts | Type of alerts Critical | Service
Filesystem -> Search
Post by Gerardo Ferreyra
Hi guys.
Beforce CMC, i checked, for example, how many "CRIT" i had with some
host and filesystem
nagios-01-01-2018-00.log
nagios-01-02-2018-00.log
nagios-01-03-2018-00.log
nagios-01-04-2018-00.log
nagios-01-05-2018-00.log
nagios-01-06-2018-00.log
nagios-01-07-2018-00.log
nagios-01-08-2018-00.log
nagios-01-09-2018-00.log
nagios-01-10-2018-00.log
nagios-01-11-2018-00.log
nagios-01-12-2018-00.log
nagios-01-13-2018-00.log
nagios-01-14-2018-00.log
nagios-01-15-2018-00.log
nagios-01-16-2018-00.log
nagios-01-17-2018-00.log
nagios-01-18-2018-00.log
nagios-01-19-2018-00.log
nagios-01-20-2018-00.log
nagios-01-21-2018-00.log
nagios-01-22-2018-00.log
nagios-01-23-2018-00.log
nagios-01-24-2018-00.log
nagios-01-25-2018-00.log
nagios-01-26-2018-00.log
nagios-01-27-2018-00.log
nagios-01-28-2018-00.log
nagios-01-29-2018-00.log
nagios-01-30-2018-00.log
nagios-01-31-2018-00.log
If i want to look for the same thing, now with CMC, where should i look?
Thanks!
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Robert Sander
2018-07-13 07:07:45 UTC
Permalink
Hi,
Post by Gerardo Ferreyra
Beforce CMC, i checked, for example, how many "CRIT" i had with some
host and filesystem
This can also be done with the Avilability view. In the availability
option select "count" and "Crit/Down" in the "Outage statistics" section
and select the time range you're interested in.

You get the number of CRITs per service and a total summary. No need to
grep in logfiles.

Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

https://www.heinlein-support.de

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Amtsgericht Berlin-Charlottenburg - HRB 93818 B
GeschÀftsfÌhrer: Peer Heinlein - Sitz: Berlin
Gerardo Ferreyra
2018-07-13 14:12:44 UTC
Permalink
Hi guys.
Oh, i have 10 CMK servers and a lot of servers.

I would like to do this by console.

Any method?

Thanks!


El vie., 13 jul. 2018 a las 4:09, Robert Sander (<
Post by Robert Sander
Hi,
Post by Gerardo Ferreyra
Beforce CMC, i checked, for example, how many "CRIT" i had with some
host and filesystem
This can also be done with the Avilability view. In the availability
option select "count" and "Crit/Down" in the "Outage statistics" section
and select the time range you're interested in.
You get the number of CRITs per service and a total summary. No need to
grep in logfiles.
Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
https://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Amtsgericht Berlin-Charlottenburg - HRB 93818 B
GeschÀftsfÌhrer: Peer Heinlein - Sitz: Berlin
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Christopher Cox
2018-07-13 15:06:13 UTC
Permalink
I'll assume you saw my earlier reply about how to do that from the
console. Here's link to a year's worth of data output to csv. You can
add your service account parms at the end if you want to automate the pull.

https://your-check.mk.server/monitor/check_mk/view.py?filled_in=filter&is_log_notification_phase=-1&log_plugin_output=&logclass1=on&logst_h0=on&logst_h1=on&logst_h2=on&logst_s1=on&logst_s2=on&logtime_from=365&logtime_from_range=86400&logtime_until_range=3600&output_format=csv_export&search=Search&service_regex=Filesystem&view_name=events
Post by Gerardo Ferreyra
Hi guys.
Oh, i have 10 CMK servers and a lot of servers.
I would like to do this by console.
Any method?
Thanks!
El vie., 13 jul. 2018 a las 4:09, Robert Sander
Hi,
Post by Gerardo Ferreyra
Beforce CMC, i checked, for example, how many "CRIT" i had with some
host and filesystem
This can also be done with the Avilability view. In the availability
option select "count" and "Crit/Down" in the "Outage statistics" section
and select the time range you're interested in.
You get the number of CRITs per service and a total summary. No need to
grep in logfiles.
Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
https://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Amtsgericht Berlin-Charlottenburg - HRB 93818 B
Geschäftsführer: Peer Heinlein - Sitz: Berlin
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Marcel Schulte
2018-07-16 07:45:28 UTC
Permalink
Hi Gerardo,

you can either do that with livestatus queries
(http://mathias-kettner.com/cms_livestatus.html#logs) or grep through
"~/var/check_mk/core/history" and "~/var/check_mk/core/archive/*".

HTH,
Marcel
Am Do., 12. Juli 2018 um 21:23 Uhr schrieb Gerardo Ferreyra
Post by Gerardo Ferreyra
Hi guys.
Beforce CMC, i checked, for example, how many "CRIT" i had with some host and filesystem
nagios-01-01-2018-00.log
nagios-01-02-2018-00.log
nagios-01-03-2018-00.log
nagios-01-04-2018-00.log
nagios-01-05-2018-00.log
nagios-01-06-2018-00.log
nagios-01-07-2018-00.log
nagios-01-08-2018-00.log
nagios-01-09-2018-00.log
nagios-01-10-2018-00.log
nagios-01-11-2018-00.log
nagios-01-12-2018-00.log
nagios-01-13-2018-00.log
nagios-01-14-2018-00.log
nagios-01-15-2018-00.log
nagios-01-16-2018-00.log
nagios-01-17-2018-00.log
nagios-01-18-2018-00.log
nagios-01-19-2018-00.log
nagios-01-20-2018-00.log
nagios-01-21-2018-00.log
nagios-01-22-2018-00.log
nagios-01-23-2018-00.log
nagios-01-24-2018-00.log
nagios-01-25-2018-00.log
nagios-01-26-2018-00.log
nagios-01-27-2018-00.log
nagios-01-28-2018-00.log
nagios-01-29-2018-00.log
nagios-01-30-2018-00.log
nagios-01-31-2018-00.log
If i want to look for the same thing, now with CMC, where should i look?
Thanks!
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Gerardo Ferreyra
2018-07-17 21:48:50 UTC
Permalink
Fabulous.
Thank you
Post by Marcel Schulte
Hi Gerardo,
you can either do that with livestatus queries
(http://mathias-kettner.com/cms_livestatus.html#logs) or grep through
"~/var/check_mk/core/history" and "~/var/check_mk/core/archive/*".
HTH,
Marcel
Am Do., 12. Juli 2018 um 21:23 Uhr schrieb Gerardo Ferreyra
Post by Gerardo Ferreyra
Hi guys.
Beforce CMC, i checked, for example, how many "CRIT" i had with some
host and filesystem
Post by Gerardo Ferreyra
nagios-01-01-2018-00.log
nagios-01-02-2018-00.log
nagios-01-03-2018-00.log
nagios-01-04-2018-00.log
nagios-01-05-2018-00.log
nagios-01-06-2018-00.log
nagios-01-07-2018-00.log
nagios-01-08-2018-00.log
nagios-01-09-2018-00.log
nagios-01-10-2018-00.log
nagios-01-11-2018-00.log
nagios-01-12-2018-00.log
nagios-01-13-2018-00.log
nagios-01-14-2018-00.log
nagios-01-15-2018-00.log
nagios-01-16-2018-00.log
nagios-01-17-2018-00.log
nagios-01-18-2018-00.log
nagios-01-19-2018-00.log
nagios-01-20-2018-00.log
nagios-01-21-2018-00.log
nagios-01-22-2018-00.log
nagios-01-23-2018-00.log
nagios-01-24-2018-00.log
nagios-01-25-2018-00.log
nagios-01-26-2018-00.log
nagios-01-27-2018-00.log
nagios-01-28-2018-00.log
nagios-01-29-2018-00.log
nagios-01-30-2018-00.log
nagios-01-31-2018-00.log
If i want to look for the same thing, now with CMC, where should i look?
Thanks!
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Loading...