Passive service result check, using host address instead of host name
Thomas Stocking
tstocking at groundworkopensource.com
Tue Mar 27 19:36:21 CEST 2007
Manish,
If you are using a script to submit check results to the command file on
the Nagios host, you could use the status.log file to look up the
hostname before you submit the result.
Another way would be to use a tool like Monarch or NagioSQL to store the
hostnames and IPs in a MySQL DB. Then the script could use the DB
interface to do the lookups. That would be faster, and if you are
willing or able to allow the host that does the posting to access MySQL
across the net, it could run on a remote system. Kind of depends on how
you are running Nagios - with nsca/nscafe or not, and where the passive
results are generated. I don't know if the Nagios event broker can give
you this data directly, but if you use NDOUtils or GroundWork Foundation
then these databases backends also store the IP and hostname.
Monarch: http://sourceforge.net/projects/monarch/
NagiosQL http://www.nagiosql.org/wiki/Main_Page
NDOUtils: http://sourceforge.net/project/showfiles.php?group_id=26589
GroundWork Foundation: http://gwfoundation.sourceforge.net/
NSCAFE:
http://www.nagiosexchange.org/AddOn_Projects.22.0.html?&tx_netnagext_pi1[p_view]=818
Thomas
Manish Sapariya wrote:
> Hi All,
> Is there any way to specify the host address instead of host name when
> reporting passive service
> check result. In my deployment I want to identify the hosts by their mac
> address as far as nagios
> is concerned, however user should still be able to view hostname in the
> nagios GUI.
>
> Is there any way I can tell nagios to look for host address instead of
> host name in the passive
> check result?
>
>
> PROCESS_SERVICE_CHECK_RESULT
> Command Format:
> PROCESS_SERVICE_CHECK_RESULT;<host_name>;<service_description>;<return_code>;<plugin_output>
>
>
>
> Thanks and Regards,
> Manish
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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