Multiple Problems

Shoaibi iknewitalready at gmail.com
Sat Jun 21 06:56:53 CEST 2008


Okay, i have this problem and i would like someone from you people to help
me out.

I am developing a software which would list "publicly available services
which are monitorable by nagios" (listed at:
http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html).
Problem is:
1. These services may or may not be running on the system at the time of
check.
2. How to check?
---a. On irc i was suggested using dpkg-l or rpm -a and then grep, but that
is distro dependent, is there a generalized way to do this? Or should i do
this manually?
------i. if you say that i do it via lsb_relase -a, but that will given
different output for even Linux, isn it? Does it mean that first i will have
to cretae an array of Debian based distros and red hat based ones, then do
lsb_release -a, check from which group the distro belongs to, and then use
dpkg -l or rpm -qa and search for what??? (what should i be searching for in
the installed service list? coz in my experience for apache, dpkg -l shows
apache, while rpm -qa will shows httpd, am i right? if yes then what string
should i check?)
3. Isnt there a easy and nice way to know using nagios that which services
are installed on a system, running or not...??
4. What if i monitor a service thats even not installed?
5. Is it okay to have multiple definitions of the same host with exact same
text in nagios? If no, what about if just the IP remains same?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080621/2da219a4/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-------------- next part --------------
_______________________________________________
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