DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th May 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default Nagios issue

Well, since nagios is running on a CentOS server and the target machine is running Windows XP, a BSD forum is the best place to post.

We wanted to check time on some servers and workstations. There's a check_ntp_time plugin, which works, as near as I can see by looking at the code (but it's in C, so I could be wrong) by using NTP. The usual test for a nagios plugin, is to do something like (in the plugin directory) ./check_ntp_time -H <hostname>.

This is fine, I get a response.

However, when I define it as a nagios service, I get an email that the connection was refused. Googling hasn't given me an answer yet--I've seen one or two other people with a similar issue (different plugin, same pattern) but no solution.

There is a nagios client that can be run on Windows hosts. I put that client on one Windows host and that works.

However, since the ./check_plugin_name -H <host> worked, my hope was that I didn't have to install anything on the Windows machines.

If anyone knows nagios and has experienced this, I'd be grateful for any pointers. I was under the impression that if the ./check_plugin stuff from comand line worked, it would work with nagios.

I tried doing su - nagios and it still works from command line, so it doesn't seem to be a matter of different users.

Thanks for any pointers.
Reply With Quote
  #2   (View Single Post)  
Old 30th May 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

SOLVED.

Sigh, a typo--I looked at it ten times without seeing it.
Reply With Quote
  #3   (View Single Post)  
Old 30th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

It's strange how typo(s) cost the MOST time when setting things up :\
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 30th May 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

In this case, I'll post it for others who might run into the same thing.

There are various plugins that resemble each other. Among others, there is check_time and check_ntp_time. I wanted check_ntp_time which should work on most machines that look for an ntp server. The check_time, however, only works when run against an ntp server. (At least by default, haven't really investigated further.)

So, I wanted check_ntp_time--however, in commands.cfg, I'd put check_time.
Sigh.
Reply With Quote
  #5   (View Single Post)  
Old 31st May 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default

life's hard when you're stupid, isn't it scottro
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
  #6   (View Single Post)  
Old 31st May 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

I wouldn't know. Is it? <scottro FTW! YES!>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Guide: Solaris 10 - Nagios -rrdtool -pnp4Nagios roundkat Guides 6 30th December 2008 07:07 PM
Possible SMP Issue? MetalHead OpenBSD General 1 25th November 2008 03:52 AM
Nagios 2.12 locks awd FreeBSD Ports and Packages 5 19th June 2008 10:38 AM
Compiling Nagios 3.02 roundkat Solaris 1 2nd June 2008 09:09 PM
RAM issue nikkon FreeBSD General 5 7th May 2008 04:26 AM


All times are GMT. The time now is 07:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick