check_pgsql options?
Tim O'Hare
tim at infostream.com.au
Sun Nov 6 23:15:47 CET 2005
Hi Dan,
If you run
./check_pgsql --help
you can see there are options for host, username, password, etc.
Then in checkcommands.cfg there is:
command_line $USER1$/check_pgsql -H $HOSTADDRESS$ -d $ARG1$
-l $ARG2$ -w 30 -c 20
And finally in your services.cfg there is:
check_command check_pgsql!database_name!login_name
In this case there is an empty password being used.
regards, Tim
Dan Joseph wrote:
> Hi All,
>
> I have a service definitely in my services.cfg setup to monitor out
> postgres database server.
>
> define service{
> use generic-service ; Name
> of service template to use
>
> host_name nabsql01
> service_description PGSQL
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 1
> contact_groups router-admins
> notification_interval 240
> notification_period 24x7
> notification_options c,r
> check_command check_pgsql
> }
>
> It fails authentication to the server, which makes sense to me. My
> question, how can I pass the username/password to it? from the command
> line I can check it just fine.
>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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