Could you define one wrapper service that executes one of the others based on
an argument passed to it?
shadih rahman wrote:
All,
I need some suggestion for nrpe configuration. I have 3 different
kind of architecture in my setup. I have 32 bit linux machine (plugins
installed at /usr/lib/nagios/plugins directory) , 64 bit linux machine
(plugins installed /usr/lib64/nagios/plugins directory), solaris machine
(plugins installed at /opt/libexec directory)
In my nrpe.conf file I would three definitions like below
[check_something]=/usr/lib/nagios/plugins/check_something
[check_something_x64]= /usr/lib64/nagios/plugins/check_something
[cehck_something_unix]=/opt/libexec/check_somthing
in my service definition, I would name them differently and call the
command file, for example I would have a check disk, disk_x64,
disk_unix. In commands.cfg file I would call them like
command_name check_remote
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
However, now new requirements came in, where disk, disk_x64, disk_unix
must have same service name. I need to find a clever way define service
disk and call different nrpe command based on architecture. Can
someone please help me with this. Thanks
--
Cordially,
Shadhin Rahman
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
___
Nagios-users mailing list
Nagios-users@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
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
___
Nagios-users mailing list
Nagios-users@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