Running Perl scripts and ssh with nagios
Edward Smith
Edward.Smith at demandtec.com
Thu Feb 3 00:16:39 CET 2005
I am running it from the command line as the nagios user. The target host has a nagios user on it as well and the accounts are RSA keyed so no password is required.
------------------------
Edward Smith
Systems Application Engineer
Demandtec, Inc
esmith at demandtec.com
650-226-4609
-----Original Message-----
From: Harper Mann [mailto:hmann at itgroundwork.com]
Sent: Wednesday, February 02, 2005 3:13 PM
To: Ed Smith; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Running Perl scripts and ssh with nagios
Hi Edward,
Did you try running the script as the "nagios" user? Are you specifying a
user on the target system and is there a "nagios" user on that host?
Regards,
- Harper
Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)
http://itgroundwork.com
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Edward Smith
> Sent: Wednesday, February 02, 2005 3:07 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Running Perl scripts and ssh with nagios
>
> Hello,
>
> I am using a custom perl script that uses nagios to ssh into a host and
> run a script, much the same way that check_ssh works. However, we cannot
> use check_ssh for other reasons. Here is the problem, whenever we run
> the script from the command line as the nagios user it works fine.
>
> However, when we use it in nagios, via the checkcommands.cfg file, it
> fails. Is there something about the way nagios executes commands that
> would differ from the command line? I am using the same arguments, and
> the script is dying when it tries to open the ssh connection, yet no
> errors in the ssh logs, or nagios logs for that matter.
>
> Any help is greatly appreciated.
>
> Edward Smith
>
>
>
> ------------------------
> Edward Smith
> Systems Application Engineer
> Demandtec, Inc
> esmith at demandtec.com
> 650-226-4609
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list