[Nagios-devel] Re: Nagios-devel digest, Vol 1 #79 - 2 msgs

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Re: Nagios-devel digest, Vol 1 #79 - 2 msgs

Post by Guest »

--------------C077B2CB75BDC55F4842EA5E
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit

>

hi everyone,
with the new Nagios taking the place of Netsaint, I have a few things that i would like to share with the group if anyone is interested.
We have been using a highly modified Netsaint_statd to run remote checks and have developed a couple checks that were not in the original. First let me say, im "at best" a novice perl programmer so the code im sure could use some clean up. I went To Nick Rienking's site but couldnt find contact info. so i figured i would post here.
here is the checks i added

check_messages.pl (client send a request to daemon to look in messages file for WARNING,OFFLINE,Error... daemon looks, parses and sends back either ok or not ok.)

check_metastat.pl (client sends request to daemon to run the Solstice Volume command 'metastat' on local machine and if the volumes report anything other than a Status of "ok" the daemon sends to the client either ok,unknown, or error. Unknown is only returned when the "metastat' program is not in the right place. /usr/sbin)



the problems with my code.
It has been programmed by me, a novice Perl programer. It works but im sure someone out there who is more experienced than I, could improve on it. Its OS specific "Solaris 8" , though in some cases it can be easily adapted to work with most OS systems. and rather than attempting to use the OS Hash, i put the actual OS commands in the checks
themselves.

IF anyone wants to use this code, let me know, ill put it in an email

Sincerly,
Kenneth Ray

P.S. Also on a side note, im still working on the Solaris Package, testing it on solaris 9 and 8, plan to test it on Solaris 2.6 when it works correctly on the other 2.



--
==========================================================================

This message and any attachments are confidential to the ordinary user
of the e-mail address to which it was addressed and may also be
privileged. If you receive this message in error please immediately
delete it and all copies of it from your system, destroy any hard copies
of it and notify the sender. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient. Internet communications cannot be guaranteed
to be secure or error-free as information could be intercepted,
corrupted, lost, arrive late or contain viruses or unauthorized
amendments. The sender, therefore, does not accept liability for any
errors or omissions in the content of this message or any damage or
other consequences arising as a result of Internet transmission.
Opinions, conclusions and other information in this message that do not
relate to the official business of



--------------C077B2CB75BDC55F4842EA5E
Content-Type: text/html;
charset=us-ascii
Content-Transfer-Encoding: 7bit




 
hi everyone,
with the new Nagios taking the place of Netsaint, I have a few things
that i would like to share with the group if anyone is interested.
We have been using a highly modified Netsaint_statd  to run remote
checks and have developed a couple checks that were not in the original.
First let me say, im "at best" a novice perl programmer so the code im
sure could use some clean up. I went To Nick Rienking's site but couldnt
find contact info. so i figured i would post here.
here is the checks i added
check_messages.pl (client send a request to daemon to look in messages
file for WARNING,OFFLINE,Error... daemon looks, parses and sends back either
ok or not ok.)
check_metastat.pl (client sends request to daemon to run the Solstice
Volume command 'metastat'  on local machine and if the volumes report
anything other than  a Status of "ok" the daemon sends to the client
either ok,unknown, or error. Unknown is only returned when the "metastat'
program is not in the right place. /usr/sbin)
 
 
the problems

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: kray1@travelersla.com
Locked