> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Hari Sekhon > Sent: Friday, November 17, 2006 4:15 PM > To: [email protected] > Subject: [Nagios-users] Migrating Nagios 1.x to 2.x > > I've got a production 1.x Nagios server monitoring 90 services or all > different types. I have noticed that Nagios 2.x has just come into the > stable branch of my linux server distro so I am going to upgrade > tonight. > > I don't have a test environment for this at work so I really need to > get this right first time... (don't tell me, this is the least of the > problems this company has...) > > I am beginning with Macros definitions and have noticed that the docs > seem to not address this directly. I have 3800 lines of stuff in > /etc/nagios, surely they don't expect me to go through it one by one > and see if the macro still exists? > > Is there a page or sheet somewhere with just the list of macros that > have changed and what they have changed to. This seems pretty common > sense so I'm hoping this is the case?
The changes aren't as scary as they sound and comparing the macro doc pages between 1.0 and 2.0 makes things easy to see what's changed. There were a lot of new macros added but as far as changes the ones that affect most users are going to be -- $OUTPUT$ now becomes either $SERVICEOUTPUT$ or $HOSTOUTPUT$ depending on the check $PERFDATA$ now becomes either $SERVICEPERFDATA$ or $HOSTPERFDATA$. This holds true for other ambiguous macros like $LATENCY$, $EXECUTIONTIME$, etc which aren't commonly used. $DATETIME$ becomes $LONGDATETIME$ $STATETYPE$ becomes $SERVICESTATETYPE$ or $HOSTSTATETYPE$ Can you install 2.0 under /usr/local/nagios-2.0 on the same machine? That will allow you to at least verify your configs are correct with nagios -v (won't test macros though). Then, if you pass syntax check, fire it up in tandem with your current installation, with you as the only contact. That will allow you to verify functionality and check macros without breaking your current system. -- Marc ------------------------------------------------------------------------- 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 [email protected] 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
