'Service' column sort order

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Professor Balthazar
Posts: 15
Joined: Wed Feb 26, 2014 6:53 am
Location: Stockholm, Sweden.

'Service' column sort order

Post by Professor Balthazar »

New CPU/processors today have more then 9/10 Core's and they are often associated with a thred.
Is there any way to change sort order and get a correct "alpha-numerical-sort"?
We have applications up to 16 Core's, see the issue attached below.

Correct sort order would be:

Core_0
Core_1
Core_2
Core_3
Core_4
Core_8
Core_9
Core_10
Core_11
Core_12

The Core's numbering is from Linux Sensors/Lm_sensors with threds acrivated.
Attachments
CORE-SORT.jpg
rajesh.mehra
Posts: 35
Joined: Mon Jan 27, 2014 2:38 am
Location: New Delhi, India

Re: 'Service' column sort order

Post by rajesh.mehra »

Change First letter of Server Description below.
1_Core
2_Core
3_Core

Rajesh Mehra
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: 'Service' column sort order

Post by tmcdonald »

Technically the order it is displayed in currently is alpha-numeric, though maybe not how humans would order it. I would change it to "01", "02" ... "09", "10", "11" etc. The leading 0 should help.
Former Nagios employee
Professor Balthazar
Posts: 15
Joined: Wed Feb 26, 2014 6:53 am
Location: Stockholm, Sweden.

Re: 'Service' column sort order

Post by Professor Balthazar »

There are more and more sensors in newer equipment and all this takes to much space in the service window. 10/12 cores and it's already too much to see.
I have written a new plugin for sensors (lmsensors) and will display all info/values in one singel row. All graphs in same window feels nice.

See attached jpg.
Attachments
CORES-THREDS.jpg
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: 'Service' column sort order

Post by tmcdonald »

Very nice! Is that something you would want to upload to our Exchange?
Former Nagios employee
Professor Balthazar
Posts: 15
Joined: Wed Feb 26, 2014 6:53 am
Location: Stockholm, Sweden.

Re: 'Service' column sort order

Post by Professor Balthazar »

I have an other question about the Status Information line. Is it possible to make it 20 characters longer?

The line is to short for 12 core's with threads and temperature. (see below)
Attachments
Intel E5-2658v3
Intel E5-2658v3
Intel E5-2658v2
Intel E5-2658v2
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: 'Service' column sort order

Post by tmcdonald »

I believe this would be a change to the database backend itself:

Code: Select all

echo "use nagios; ALTER TABLE nagios_servicestatus MODIFY output VARCHAR(65536);" | mysql -u root -pnagiosxi
Former Nagios employee
Locked