[Nagiosplug-help] [SPAM]??Re: check_pgsql installation

Rachid Alami r_alami23 at hotmail.com
Mon Oct 4 16:43:16 CEST 2010


hi,

can you show me how to do that, note that I just copied the plug-in to /usr/local/nagios/libexec, I haven't install anything,

please advise,

Thanks

Date: Tue, 5 Oct 2010 01:26:57 +1100
From: stephenvaughan at gmail.com
To: nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] [SPAM]??Re: check_pgsql installation

You don't have the postgresql client libs installed. 

On Tue, Oct 5, 2010 at 12:53 AM, Rachid Alami <r_alami23 at hotmail.com> wrote:






Hello Stewart,

Thanks for your help but I am getting the following error:


Here is what I did:

I copied "check_pgsql" plug-in in the following path and gave the appropriate rights:

[ralamim at server1 libexec]$ pwd
/usr/local/nagios/libexec

[ralamim at server1 libexec]$ ls -l check_pgsql
-rwxr-xr-x  1 nagios nagios 62774 Aug 17 05:15 check_pgsql 


I also enabled the following in command.cfg


[ralamim at server1 etc]$ grep check_pgsql command.cfg
command[check_pgsql]=/usr/local/groundwork/nagios/libexec/check_pgsql -H $HOSTADDRESS$ 


and defined the following command in check_commands.cfg


define command {
        command_name                    check_pgsql

        command_line                    $USER1$/check_pgsql -H $HOSTADDRESS$
}



but when I run the check I get the following error:


[ralamim at server1 libexec]$ ./check_pgsql -H server23
./check_pgsql: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory


Please advise,

Thanks.



> To: nagiosplug-help at lists.sourceforge.net
> From: sstdennis at zaxia.com

> Date: Fri, 1 Oct 2010 16:29:08 +0000
> Subject: Re: [Nagiosplug-help] [SPAM]??Re:  check_pgsql installation
> 
> The process for any plug-in is to:
>  - locate the plug-in on the Nagios server (copying it there if necessary)

>  - run it with -h parameter and review its specific parameters and their use 
>  - if it accepts a host parameter then it can likely run from the Nagios server, so run it by hand until you have the service to be monitored tweeked to respond + the parameters set up right. 

>  - if there is no host parameter, install the Nagios Plugin software on the server to be monitored, potentially copy the plug-in there too, and do the plug-in run/test from the command line until it works 
>  - ensure that the command to run the plug-in is configured on the Nagios server

>  - define the service check, on the Nagios server, for the server to be monitored. 
>     - if the check could not run on the Nagios server, then it must be run via a remote service call.  Therefore, select and configure either NRPE or SSH (or some other method) to invoked the command from the Nagios server.  Test it from the command of the Nagios server. Then use the check_nrpe or check_ssh plugin to define the service check

>  - reload the Nagios config or restart the Nagios deamon
>  - review the check results
>  - tweek/test the check under various circumstances, stopping the cycle when it works "right"
> 

> HTH,
> Stewart
> -----Original Message-----
> From: Rachid Alami Marrouni <r_alami23 at hotmail.com>
> Date: Fri, 1 Oct 2010 11:15:19 

> To: <nagiosplug-help at lists.sourceforge.net>
> Reply-To: Nagios Plugin Help List <nagiosplug-help at lists.sourceforge.net>

> Subject: [SPAM]??Re: [Nagiosplug-help] check_pgsql installation
> 
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances

> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev

> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and

> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Nagiosplug-help mailing list

> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
 		 	   		  

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

Virtualization is moving to the mainstream and overtaking non-virtualized

environment for deploying applications. Does it make network security

easier or more difficult to achieve? Read this whitepaper to separate the

two and get a better understanding.

http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________

Nagiosplug-help mailing list

Nagiosplug-help at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

::: Please include plugins version (-v) and OS when reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null




-- 
Best Regards,
Stephen


------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20101004/99ad1850/attachment.html>


More information about the Help mailing list