Order column service

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
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Order column service

Post by alex3105 »

I was looking at the following link for a similar problem.

https://support.nagios.com/forum/viewto ... =7&t=27312

Since I am adding switches but these are not ordered in a logical or human way .. I wanted to ask if someone could have ordered them

CPU
Device Fan
Power Supply
Port G1/0/1
Port G1/0/10
Port G1/0/11
Port G1/0/12
Port G1/0/2
Port G1/0/3
Port G1/0/4
Port G1/0/5
Port G1/0/6
Port G1/0/7
Port G1/0/8

Thanks..
danjoh
Posts: 73
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland
Contact:

Re: Order column service

Post by danjoh »

What we do here is simply to "prefix" single digit ports with a zero in the check output and the sorting problem is solved.

Code: Select all

Port G1/0/01
Port G1/0/02
Port G1/0/03
Port G1/0/04
Port G1/0/05
Port G1/0/06
Port G1/0/07
Port G1/0/08
Port G1/0/10
Port G1/0/11
Port G1/0/12
Of cause this is only possible with checks that you has written yourself or you have the possibility and skills to change the check.
--
D/\N
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Order column service

Post by npolovenko »

@danjoh, Thanks for the recommendation!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Order column service

Post by alex3105 »

Excellent.. Thanks..!!
Locked