Check_by_ssh benchmarks

jmarquart at planalytics.com jmarquart at planalytics.com
Mon Nov 4 23:25:35 CET 2002



Karl,
     Thanks much.  This example helped very much.

I did notice, that the nagiosplug-1.3-beta1 check_by_ssh will not work with
this, because it is missing the square brackets around the timestamp.

simply modifying line 148 w/ the [ and ] worked great.

Thanks ever so much for this fantastic tool.

-john



diff:


--- check_by_ssh.c  Mon Nov  4 17:24:13 2002
+++ check_by_ssh.new     Mon Nov  4 17:23:22 2002
@@ -145,7 +145,7 @@
                    eol[0] = 0;
               if (srvc_desc && status_text
                         && sscanf (status_text, "STATUS CODE: %d", &cresult) ==
1) {
-                   fprintf (fp, "%d
PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n",
+                   fprintf (fp, "[%d]
PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n",
                                          (int) local_time, host_shortname,
srvc_desc, cresult,
                output);
                    srvc_desc = strtok (NULL, ":");







IDRC (I didn't recall correctly)

./plugins/check_by_ssh -v -l kdebisschop -i
/home/kdebisschop/.ssh/checkbyssh -H localhost -s uptime:users -C uptime
-C users -O /tmp/checkbyssh -n localhost

As implemented so far, multiple checks do work, but they get handled as
a passive check.

> Problem is it doesn't. That's what happens when the author stops using
> a plugin -- bitrot sets in within days.
>
> I need to make other changes for the 1.3.0 release anyway, I will try
> very hard to have a fix and examples before Monday.
>
> --
> Karl
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users




-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users





-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com




More information about the Users mailing list