Advertisements

Centos 6.5, nagios, zenoss, monitoring windows time

So installed Centos 6.5, choose Redhat 64bit version, this uses the vmxnet3 device.

Install as typical

Next add this repository

http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

Then install nagios

yum -y install nagios nagios-plugins-all nagios-plugins-nrpe nrpe php httpd

(we need check_nrpe)

Next install Zenoss like here

http://wiki.zenoss.org/Install_Zenoss

You will have to use yum remove mysql-libs-5.7.71-1.e16.x86_64

Then disable the firewall (if its an internal box of course) I use setup

Then login to yourhost:8080

Download http://wiki.zenoss.org/ZenPack:ConstructionKit   (version 2.5)

Download http://wiki.zenoss.org/ZenPack:NRPE_Component   (I used version 2.1)

Go to Advanced, ZenPacks, then load the constructionkit and the NRPE_Component

Reboot

Now on your windows machine install http://nsclient.org/nscp/downloads

Then copy the .bat file from these instructions http://www.appdelivery.com/2012/09/monitoring-windows-time-with-nagios/

And set it up like this post    https://michaelellerbeck.com/2014/06/04/zenoss-and-nrpe-and-oh-my/

1) Go to the Device Status Page of the server you want to add the
check to (enter the device name in the search box at top right)
2) From the “+” drop-down menu at the bottom of the screen, select “Add Remote Nagios”, and enter the “command” and “alias”.

the command is check_windows_time

3) when the screen refreshes, select the “NRPE Components”, then
the newly created component on the right
4) below that there is a drop-down menu, from which you can select “Details”
5) The “arglist” parameter can be set in the text box on that Details pane.

From the page you are on, select “Graphs” -> “Details”

then in Arguments type

0.north-america.pool.ntp.org

180

300

I then tested by screwing up the time on the machine to make sure the alert fires!

the end

 

 

 

Advertisements

Zenoss and NRPE and oh my

Sos I’ve been messing with zenoss, I tried nagios for awhile as well as FAN (fully automated nagios) but so far I have been liking zenoss better.

So, now I’m trying to get nsclient++ to work with zenoss so I can check the ntp.

So far a ran across this https://www.itefix.no/i2/content/basic-monitoring-windows-hosts-winrpe

because I wanted a quick way to check that nsclient++ was working.

Then I got the Received 0 bytes from daemon 

which happened because I was testing from a workstation and it was denying the connection, once I added that ip it was able to connect.

Of course then I got the request contained arguments (not currently allowed) so to turn that on I needed to use

nscp settings –generate –add-defaults –load-all

Then find it in two places!

 

; Section for NRPE (NRPEServer.dll) (check_nrpe) protocol options.
[/settings/NRPE/server]

; COMMAND ARGUMENT PROCESSING – This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true

; COMMAND ALLOW NASTY META CHARS – This option determines whether or not the we will allow clients to specify nasty (as in |`&><‘”\[]{}) characters in arguments.
allow nasty characters = true

AND

; Section for external scripts configuration options (CheckExternalScripts).
[/settings/external scripts]

; COMMAND ARGUMENT PROCESSING – This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true

; COMMAND ALLOW NASTY META CHARS – This option determines whether or not the we will allow clients to specify nasty (as in |`&><‘”\[]{}) characters in arguments.
allow nasty characters = true

Hmm so that finally go NRPE working, so now I execute this plugin http://www.appdelivery.com/2012/09/monitoring-windows-time-with-nagios/

So I can wrap it in this zenoss plugin

https://github.com/j053ph4/ZenPacks.community.zenNrpeComponent

but the force was not strong with me, I couldnt’ figure it out. But I have enjoyed messing with zenoss, so know I’m trying to get the WMI plugin to work

http://wiki.zenoss.org/ZenPack:Microsoft_Windows

p.s. I did get it to work with help from the author! https://michaelellerbeck.com/2014/06/10/centos-6-5-nagios-zenoss-monitoring-windows-time/

Google has disabled use of the Maps API for this application with zenoss fix

From  here

http://www.zenoss.org/forum/461

Create a new Key for server applications, then add the IP’s (example below)

Issue #1: change 0.0.0.0/24 to 0.0.0.0/0
Issue #2: change 10.2.1.191/24 to your public ip change (directions below).

Go to www.whatismyip.com, lets say your ip is 55.55.55.55, then change it to 55.55.55.0/24

Make sense?