20 votes

How to find out the number of time series stored in Prometheus LevelDB

How about count({__name__=~".+"})? It does return number of time series in the database. I compared with amount of metrics currently exposed by each target by manual scrapping, and it matches it +/- ...
Zaar Hai's user avatar
  • 507
14 votes
Accepted

How to find out the number of time series stored in Prometheus LevelDB

prometheus_tsdb_head_series Just because I always forget and have to Google this, and this question is at the top. As per this answer there will likely be a variance between ...
Glenn Slaven's user avatar
  • 2,420
10 votes
Accepted

Best way to monitor Windows server?

Event Log Consolidator View, consolidate, and dismiss event logs and correlate issues across multiple systems Tired of having to open Event Viewer and connect to each Windows system to see its event ...
Anthony Fornito's user avatar
8 votes

How to find out the number of time series stored in Prometheus LevelDB

https://prometheusui.com:9090/status ---> Head Stats --> this will give you the entire status.
midhun k's user avatar
  • 161
8 votes

How can you distinguish between a crash and a reboot on RHEL7?

Funny, I just happened to reboot a CentOS 7 system last night, and so I have a nice log of just this to look at. In the case of a crash, obviously nothing is logged between the time of the crash and ...
Michael Hampton's user avatar
8 votes
Accepted

GCP VM Disk space alert

Go to GCP console > Monitoring > alerting policy. Click on "+ Create Policy" button on the top and "Add Condition" 0 you will see a panel that looks something like this below. Set everything as ...
Wojtek_B's user avatar
  • 1,053
7 votes
Accepted

kipmi0 process high cpu utilization

kipmi0 is the kernel process used for interfacing with the IPMI controller on your server. In my experience, if it's stuck using 100% CPU like this, it's because the interface between the server and ...
Daniel Lawson's user avatar
6 votes
Accepted

How can you distinguish between a crash and a reboot on RHEL7?

There's more than one way to do this, but I'll cover the 4 best ones I can think of. (EDIT: I published a cleaned-up version of this as a public article on redhat.com. See: How to distinguish between ...
rsaw's user avatar
  • 253
5 votes

How to monitor power supply status using ipmitool on Linux/Solaris?

In linux this worked perfectly for me in current versions of CentOS and Debian ipmitool sdr type "Power Supply"
Criggie's user avatar
  • 2,320
5 votes

How can you distinguish between a crash and a reboot on RHEL7?

I don't particularly like the answer, but it's an answer we got from RH. I'm posting it here in case it helps someone else. One possible way is to grep for rsyslogd in /var/log/messages. A graceful ...
kwb's user avatar
  • 173
4 votes

Hibernation mode in Windows

No. Technical aspects aside, this would be a catastrophe security-wise.
Sven's user avatar
  • 99.5k
4 votes
Accepted

Nagios OK notification at the beginning of the availability period

Looks to me like a perfect opportunity to have cron schedule a custom service notification, which is basically a gratuitous notification describing the current state of affairs. You can do this ...
MadHatter's user avatar
  • 80.6k
4 votes

How to find out the number of time series stored in Prometheus LevelDB

After some more research and thanks to the comments of David.B i found a solution that 'works for me' ™ To find the number of time series stored by Prometheus i use this command in the storage....
Tobias Wiesenthal's user avatar
3 votes
Accepted

How to reset the admin password for Observium

Look like it MD5 (1) hash with salt (abcdefgh). openssl passwd -1 build new hash from plain password You can use it to update users table. You can try build Mysql-only solution based on https://...
mmv-ru's user avatar
  • 714
3 votes

How to reset the admin password for Observium

this might help someone. as it just worked for me as long as you have root access to the server cd /opt/observium ./adduser.php admin <CLASS_PASSWORD> 10 once the new user with the same level ...
computer_says_no's user avatar
3 votes

Creating an SRE Testing Interview VM

edit replace SELinux with AppArmor for Ubuntu Here are a few suggestion that should be easy to set up in a VM (and I ran into over the years): set invalid POSIX permissions for content the web server ...
fuero's user avatar
  • 9,739
2 votes
Accepted

Find network percentage of NIC

As fruglemonkey said 1 sec is a bad choice. Try at least 5 sec mean. It will help to have more consistent graph. Of course you can show both data ;-) I can't see anything wrong on your math. But I ...
Roberto Alcantara's user avatar
2 votes
Accepted

Monitoring zabbix server (itself) externally

So here's what I ended up doing: Wrote a fairly simple Python script which uses pyzabbix to interrogate Zabbix for the set of "triggers" currently failing (see snippet below). This runs periodically ...
sxc731's user avatar
  • 317
2 votes

CPU usage plot in Grafana

This is behaving as expected. Derivative will give you the change, not absolute value. So negative means your CPU usage went down. The idle, system, user stats are already in percent on unix, so you ...
mzhaase's user avatar
  • 3,848
2 votes
Accepted

Icinga2 - ExternalCommands filling my DB

You can safely delete them. You can also configure which categories should be written. The default value attempts to set anything required for Icinga Web 2. https://docs.icinga.com/icinga2/latest/...
dnsmichi's user avatar
  • 845
2 votes

Monitor Windows services - Nagios

AFAIR, in order to monitor private services of machines, you need your NSClient++ to interact with machine's desktop. So it needs to be allowed within Local System Account. https://assets.nagios.com/...
Strepsils's user avatar
  • 5,115
2 votes
Accepted

Nagios notifications only for online hosts

A couple things. One - you may not want to have notifications set at the host level as it appears you don't care about that status. Second, you don't say why the services are alerting. If it is ...
uSlackr's user avatar
  • 6,432
2 votes

Systemwide File Access and System Call Monitoring on Linux?

This being Linux, of course there is more than one way to do it. Tracing method. Scripts that use ftrace or eBPF to trace whatever in the kernel. In this example of open(), see opensnoop. You can ...
John Mahowald's user avatar
2 votes

When should i link a host to a host group or template in Zabbix?

Use a template for hosts that should be treated in the same way. Use a group for hosts with the same characteristcs (functional or technical). When you have a host group combined for technical reasons,...
Walter A's user avatar
  • 151
2 votes

Linux system mails alternative for sending and receiving besides SMTP

You can have a local mail system which sends all the locally generated mail to a configured smarthost, some remote mailer which is supposed to do all the hard work. You don't need a full-blown local ...
Nikita Kipriyanov's user avatar
1 vote

which monitoring tool is good for monitoring system hardware,software,user management and network activity for all kind of operating system?

Nagios. You can build custom monitoring scripts to monitor just about anything but there are plugins available for common items such as network connectivity, space, cpu and memory utilization, ...
user446843's user avatar
1 vote

How to monitor EMC VNXe3200?

To be fair I did not have any VNX in my production environment but I found this: https://www.logicmonitor.com/support/monitoring/storage-systems/emc-vnxclariion-san/ Should be a valid way to setup ...
Johnyd's user avatar
  • 172
1 vote

Zabbix: Different notification threshold for a template-inherited trigger on more capable hosts?

No, do not create another template. You wouldn't even be able to link such templates to the same host, the item keys would conflict. Two reasonable options exist: modify the trigger expression so ...
Richlv's user avatar
  • 2,373
1 vote
Accepted

Clear filter in csysdig

Press the BackSpace key repeatedly to step backwards through csysdig selection history, which csysdig refers to as "drill up".
Todd Lyons's user avatar
  • 2,056
1 vote
Accepted

Log system information collected by Monit to local log

As far as I know, this is not possible out-of-the-box. You could try to "bend" the M/Monit collector feature from the Monit configuration file set mmonit http://monit:[email protected]:8080/collector ...
DevOps's user avatar
  • 730

Only top scored, non community-wiki answers of a minimum length are eligible