Hello Jelle,

Jelle de Jong [2022-07-13 12:46 +0200]:
> How can I use cockpit to sent me an alert when disk space goes low, CPU load
> stays high, systemd status has a failure etc?

You can't. This is not what Cockpit does -- there is literally nothing running
on a system (other than the systemd socket unit) until someone logs into
Cockpit, and afterwards everything goes away again. Also, Cockpit has no
notification/communication methods, and isn't going to get any.

> "I think there may be better channels sharing info about alerting and
> monitoring sysOps, but surely using an stack like grafana, prometheus,
> telegraf... could help you. Or more easy, NMS engines like librenms,
> zabbix... the variety options is endless"

> what alternative would you recommend, I values an F/LOSS tool, nodes easily
> added with ansible, preferable no daemon/agents, just SSH.

For monitoring you need *something* on the system that regularly probes it;
that can be a permanently running daemon, or a cron job, or a cron job on a
remote site which regularly SSHs into the system to collect a data snapshot and
sends it off somewhere else.

Gil already mentioned Grafana/prometheus as the de-facto standard monitoring
solution these days. They can both be deployed into a container somewhere
centrally, and the managed machines only have to run PCP (in particular,
pmproxy) and redis (also easily installed).

Cockpit supports that, and I recently wrote about this [1]. That also has a
link for how to automate the PCP/redis setup on the watched machines [2], it's
just three commands.

Another very popular monitoring software is https://www.nagios.org/ . I don't
have personal experience with that, though.

Martin

[1] https://cockpit-project.org/blog/pcp-grafana.html
[2] https://cockpit-project.org/guide/latest/feature-pcp.html
_______________________________________________
cockpit-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to