Order column service

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Order column service

Postby alex3105 » Thu Aug 02, 2018 5:38 pm

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

viewtopic.php?f=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..
alex3105
 
Posts: 47
Joined: Sat Jul 28, 2018 10:54 am

Re: Order column service

Postby danjoh » Fri Aug 03, 2018 3:41 am

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
danjoh
 
Posts: 56
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland

Re: Order column service

Postby npolovenko » Fri Aug 03, 2018 3:58 pm

@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.
User avatar
npolovenko
Support Tech
 
Posts: 2101
Joined: Mon May 15, 2017 5:00 pm

Re: Order column service

Postby alex3105 » Sun Aug 05, 2018 10:44 pm

Excellent.. Thanks..!!
alex3105
 
Posts: 47
Joined: Sat Jul 28, 2018 10:54 am


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 14 guests