OPMDG / check_pgactivity

Nagios remote agent
http://opm.readthedocs.io/probes/check_pgactivity.html
PostgreSQL License
175 stars 51 forks source link

temp_files: unsupported units (Icinga) #179

Closed Krysztophe closed 6 years ago

Krysztophe commented 6 years ago

Temp files use unsupported units : Files, Bpm, Fpm. Nevertheless, Naemon is able to show the values.

But it seems that they are not supported by Icinga (https://monitoring-portal.org/woltlab/index.php?thread/42185-extending-uoms/) and as a consequence Icinga shows 0 as number of files (warning, critical (without units), and values with B are ok).

I don't know how to resolve this. Add another flag to avoid adding un-universally-supported units? Accept it as a limitation from Icinga?

(tested with Icinga2.8.2 from Debian stretch)

/opt/check_pgactivity/check_pgactivity --service temp_files 
--dbservice nagios -w 3 -c 666 --status-file toto
POSTGRES_TEMP_FILES OK: 13 tablespace(s)/database(s) checked |
 '# files in pg_default'=0File 'Total size in pg_default'=0B postgres=0Fpm postgres=0Bpm postgres=0Files postgres=0B... 
test=0.983606557377049Fpm test=137704918.032787Bpm test=1Files test=140000000B
ioguix commented 6 years ago

If icinga does not support this "custom" unit, just use --format nagios_strict.

Krysztophe commented 6 years ago

Works better this way :-)

That deserves a word about Icinga & this option in the doc, doesn't it? To avoid other people to rediscover it the hard way.

rjuju commented 6 years ago

The -F / --format is already documented. Maybe some FAQ or other specific paragraph could be added on http://opm.readthedocs.io/probes/index.html ot make it more obvious, but that seems unrelated to this issue. Feel free to open a bug or propose a PR on the documentation repository.