Showing posts with label Monitoring Devices Using Zenoss. Show all posts
Showing posts with label Monitoring Devices Using Zenoss. Show all posts

Friday, March 21, 2014

Account Login recording in Linux & Windows System with Zenoss

Recording the SSH Logins success and failure
For Linux Servers
Setting to be done on the Linux side
Edit the linux /etc/syslog.conf file and add the following line
authpriv.* @zenossserver ip or hostname
Restart the syslog daemon.
On the zenoss side make sure these things
1. The machine IP and Hostname should be correct so syslog logs are correctly inserted to the correct device.
2. You can define SSHD event component to be as critical so the current alert system will work OR.
3. You can create a new alert only for sshd reporting , See the below screenshot




This alert generates below alerts , we can also try only to send
On Authentication Success
a. session opened for user
b. Accepted password for root from port ssh
On Authentication Failure
a. Failed password for illegal user from port ssh
b. Illegal user from
On Session Logout
Session closed for  

For Windows Servers
 
All the servers where Wmi monitoring is enabled we just need to increase the zWinEventlogMinSeverity to 5 Which is by default 2.

Alerts Creation
For Successful Logins:
eventClassKey -- Security_552
For Failed Logins
eventClassKey -- Security_680

More details  for security code can be found here from technet.http://technet.microsoft.com/en-us/library/cc787567%28v=ws.10%29.aspx

Result looks like this
Device:
Component: Security
Severity: Info
Time: 2014/03/21 00:05:11.000
Message:
Logon attempt using explicit credentials:
Logged on user:
User Name: $
Domain: WORKGROUP or DOMAINNAME
Logon ID: (0x0,0x3E7)

Logon GUID: -

User whose credentials were used:

Target User Name:

Target Domain: System Name

Target Logon GUID: -


Target Server Name: localhost

Target Server Info: localhost

Caller Process ID: 5060

Source Network Address:

Source Port: 2211

Wednesday, September 8, 2010

Zenoss Grouping Alerts

Zenoss misses this feature of group alerts , i wanted a alert email showing me all the devices having issue when i start my work so based on the priority wise i can start working on there resolution .
Below is the script which full fill my wish and i add it to cron or you can place it in the apache web folder and use it by commenting the mail paramter with print $message . You can add more parameters to it to narrow device type like add eventtype<>-1 if you donot want to see alerts which are acknowledged ( currently don't have a zenoss system access but will correct it if its wrong .


Download the script from this Link

Sunday, April 4, 2010

Zenoss Oracle Monitoring

Zenoss Oracle Monitoring

Hi guys i thought i will submit the Zenpack through which i am monitoring Oracle , i wanted to submit this to Zenoss ,but someone already came up with some other zenpack . i am working on getting Oracle Apps monitoring will release next month .


Here are some key Points for installation of this Oracle Zenpack .

Download the below files from these location .

Oracle Script ( Someone gave me the initial Script and i modified it as per my requirement .)

Oracle Zenpack



1. Install oracle Client on your zenoss server . The oracle client install should be with user zenoss so you don’t have issue with oracle library issue . ( use the latest client like 11g , I have seen some bugs on 10g with oci.dll which stop querying the database after 200 days of uptime )

2. Copy the attach script check_health_oracle to $ZENHOME/checkoracle/plugins-scripts and set the executable permission to it .

3. Ask your dba to create a user zenoss and password zenoss . I have set the template with same user and same password you can change it if you like

4. Ask him to grant the below roles

grant create session, connect, select on v_$sysstat, v_$session, v_$log, v_$instance, sys.dba_free_space, sys.dba_data_files to zenoss ;

5. When you define the tnsnames or oracle client set it as below . I have set the tnsnames as the devicename

=

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = Oracle_SID)

)

)

6. Install the attach zenpack .

7. this will create a Organizer /device/server/oracle , if you need to attach the same to your Linux boxes just copy the template and copy to linux and attach multiple template to it .

Below things can be monitored using this zenpack .

connected-users

Connection-Time

Data_File_IO_Traffic

Invalid_Objects

PGA-IN-Memory

Redo_IO_Logs

SGA

SGA-cache-hit

SGA-latches-hit

Stale-statics

Tablespace-Usage


Friday, March 12, 2010

Monitoring Sendmail Mail Queue With Zenoss

Monitoring Mail Queue With Zenoss

Create a shell script queuecheck.sh

#!/bin/sh

# Below will be used to report back the mail queue stats to zenoss

mailq | head -1 | cut -d'(' -f2 | cut -d' ' -f01

Add the following to the snmpd.conf file and reload snmpd deamon

extend queuecheck /etc/queuecheck.sh

Run snmpwalk will produce the below result and verified by mailq Total request .

#snmpwalk -v2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendOutputFull

NET-SNMP-EXTEND-MIB::nsExtendOutputFull."queuecheck" = STRING: No of emails in mail queue if zero it will report /var/spool/mqueue

Now add a new template to the Devices which you want to monitor mail queue and use the snmp as datasource and use the above extend result oid to the get the data and create a threshold and attach to the datasource.

You can find more info on adding datasource and threshold in Zenoss Administrative Guide.

Friday, February 12, 2010

Monitoring Brocade Switches

Monitoring Brocade Switches

I have developed a Zenpack for monitoring Brocade SAN switches you can download it from the below link

Download Brocade Zenpack

The Zenpack Provides the below Performance Graphs for Brocade switches:


Fibrechannel CRC errors recieved
Fibrechannel Class2 frames transmitted
Fibrechannel Class3 frames recieved
Fibrechannel Encoding or disparity errors
Fibrechannel Multicast frames recieved
Fibrechannel Multicast frames transmitted
Fibrechannel Truncated frames recieved
Fibrechannel Truncated too-long frames recieved
Fibrechannel bad EOF delimited frames
Fibrechannel discarded Class 3 frames
Fibrechannel error-disparity errors recieved
Fibrechannel frames recieved
Fibrechannel frames transmitted
Fibrechannel invalid Ordered sets recieved
Fibrechannel timed-out Multicast frames
Fibrechannel words recieved
Fibrechannel words transmitted