[Nagiosplug-devel] [ nagiosplug-Feature Requests-3518544 ] check_by_ssh -H hostname:port

SourceForge.net noreply at sourceforge.net
Mon Apr 16 21:32:29 CEST 2012


Feature Requests item #3518544, was opened at 2012-04-16 12:32
Message generated for change (Tracker Item Submitted) made by beneford
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=3518544&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: beneford (beneford)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_by_ssh -H hostname:port

Initial Comment:
It would be really useful to allow:
   check_by_ssh -H hostname:port
rather than having to specify hostname and port in separate parameters
   check_by_ssh -H hostname -p port

The code changes are minimal and can be localised to the process_arguments case statement
check_by_ssh.c line 225:
[begin]
                case 'H': /* host */
                        if (p1=strstr(optarg,":"))
                                *p1=0;  // terminate the host-name
                        host_or_die(optarg);
                        hostname = optarg;
                        if (!p1)
                                break;
                        optarg=p1+1; // Set port number as next param and
                        // fall through to process the port...
                case 'p': /* port number */
[end]

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=3518544&group_id=29880




More information about the Devel mailing list