HOWTO Combine v1 hostextinfo/serviceextinfo into v2 hosts/service files?
Peter Farrell
peter.d.farrell at gmail.com
Wed Jul 27 10:09:54 CEST 2005
I am migrating two servers in our DMZ from Nagios v1 to Nagios v2.
As Nagios v2 doesn't use the '*extinfo' config files anymore, where do
you actually put the
extinfo? The docs say that it can be combined into the hosts and
service cfg files, but I was wondering if anyone had an example they
could post?
For example: service.cfg
define service{
use generic-passive
host_name venus, zeus
service_description SWAP
check_period 24x7
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command
check_by_ssh!'/usr/local/nagios/libexec/check_swap -w 70% -c 90%'
}
And my previous serviceextinfo.cfg:
define serviceextinfo{
host_name venus
service_description SWAP Free
notes_url /nagios/nagiostat/nagiostat.cgi?graph_name=venus-swap
icon_image graph.gif
icon_image_alt View Graphs For This Service
}
Would they all result in something that looked like this:
define service{
use generic-passive
host_name venus, zeus
service_description SWAP
notes_url /nagios/nagiostat/nagiostat.cgi?graph_name=venus-swap
icon_image graph.gif
icon_image_alt View Graphs For This Service
check_period 24x7
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command
check_by_ssh!'/usr/local/nagios/libexec/check_swap -w 70% -c 90%'
}
Or do you just literally copy over all the stanza's from the old config files ?
Any ideas?
Peter Farrell
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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