Import host CSV file?
Skip Montanaro
skip at pobox.com
Tue Nov 4 19:17:59 CET 2003
Jon> Has anyone writen a script to import a large number of hosts from a
Jon> CSV file into nagios? Just wondering...
No, but it shouldn't be too difficult. I use Python (2.3 comes with an
easy-to-use csv module of which I am a co-author), but I suspect you
wouldn't have much trouble with Perl, Tcl or Ruby presuming they either
support csv file reading or that your csv file doesn't exercise csv's corner
cases.
What sort of information do you have in your csv file? If it's just basic
name, alias, ip sorts of stuff, then generating host definitions from that
should be a breeze.
--
Skip Montanaro
Got gigs? http://www.musi-cal.com/
http://www.mojam.com/
Got spam? http://spambayes.sf.net/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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