From: Cook, G. <GW...@ma...> - 2004-08-12 15:00:15
|
Exactly what Philipp said. Although you might want to backup your original check_nt.c file as well. This way, if your interested in the changes made to add the perfdata, you can compare the old and new source files. Also, should you not backup the check_nt binary, you can always recompile the original if necessary. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) per...@li... wrote: > when you have the nagios-plugin pack, simply replace the check_nt.c > file in the nagiospluginsource/plugins/ directory and then do > ./configure in your nagiospluginsource - directory, then simply type > make. Then the script will be compiled fine and you can copy > the freshly > compiled binary from the nagiospluginsource/plugins/ to your > libexec dir > and overwrite to "old" one. Maybe you should make a backup of > you "old" > version... >=20 >> -----Original Message----- >> From: per...@li... >> [mailto:per...@li...] On Behalf Of >> Nate A. Smith Sent: Thursday, August 12, 2004 4:25 PM >> To: Cook, Garry; Sean Harbour >> Cc: per...@li... >> Subject: RE: [Perfparse-users] Added perfdata to check_nt >>=20 >> What's the command line to compile it (newbie?). If I use >> gcc check_nt.c it gives me an error... >>=20 >> Nate >>=20 >> -----Original Message----- >> From: per...@li... >> [mailto:per...@li...] On Behalf Of >> Cook, Garry Sent: Wednesday, August 11, 2004 9:25 PM >> To: Sean Harbour >> Cc: per...@li... >> Subject: RE: [Perfparse-users] Added perfdata to check_nt >>=20 >> Sean, >> You don't need a windows compiler, check_nt is the plugin >> that runs on the Nagios box. Compile it in your plugins >> source directory, then copy it to your nagios/libexec folder. >> Like I said before, don't forget to backup your original >> check_nt first, just in case it doesn't work for you. >>=20 >> Sorry for the confusion. I know that I mentioned a windows >> compiler in another thread, but that was before I realized I >> only needed to make changes to check_nt. >>=20 >> Garry W. Cook, CCNA >> Network Infrastructure Manager >> MACTEC, Inc. - http://www.mactec.com/ >> 303.308.6228 (Office) - 720.220.1862 (Mobile) >>=20 >> Sean Harbour wrote: >>> Hey, can you send me a compiled version? I can test this tomorrow >>> morning! Or, give me a download link. I don't have windows compiler. >>>=20 >>> Sean Harbour >>>=20 >>> -----Original Message----- >>> From: Cook, Garry [mailto:GW...@ma...] >>> Sent: Wed 8/11/2004 3:26 PM >>> To: per...@li... >>> Cc: nagiosplug-help; nag...@li... >>> Subject: [Perfparse-users] Added perfdata to check_nt >>>=20 >>>=20 >>>=20 >>> First off, I'm sorry for the cross-post, there were several people >>> interested in this on different lists. If you're on a list that >>> does not allow attachments, contact me off-list and I'll send you >>> a copy of the plugin source. >>>=20 >>> I've added Performance Data to the check_nt plugin |