Monitoring Disk Space and Processes and processor utilization

Hello,
How can I tell what version of Nagios I am using?

Im using Nagios version 2.x which is bundelded in OSSIM.  I have the following client installed on a Windows 2003 Server.
 
NSClientpp (Nagios) 0.3.0.1 RC 2007-11-28 w32
 
Here is what my host status loks like.
Host Status Services Actions
SPSP
 PENDING No matching services

 
How can I fix this probelm?  Thanks Michael
 
I may need an older client to talk to Nagios 2.x service commands.  I do not want to upgrade at the moment to Nagios 3.x
LVL 9
stressedout2004Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
#How can I tell what version of Nagios I am using?
by looking in /var/log/nagios/nagios.log

0
hankerinCommented:
The easiest way to tell what version of Nagios you are running is by running the following command. I have never used Nagios to monitor Window I would have to look into that for you. I have a couple of boxes tat I need to monitor anyways.
nagios -v 

Open in new window

0
nociSoftware EngineerCommented:
It is not that important what the version of Nagios client/server are. The protocol didn't change that much.

In the nagios server configuration did you also configure services to be checked on your client?

can you show the host & service declarations for this system?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

stressedout2004Author Commented:
I have included the attachemnts Nagios.cfg,generic-host.txt, service.txt, generic-service.txt.  Thank you


Nagios.txt
generic-host.txt
service.txt
generic-service.txt
0
nociSoftware EngineerCommented:
Nagios.txt is the vore config file
generic-host.txt contains the host templates (defaults for left out of the host record)

service.txt -is a service implementation although in the uploaded file a # at the start and a } at the end are missing.
generic-service.txt the service templates

Still missing is the host files that setsup hosts and hostgroups.

also in nagios.cfg all includes of the separate service & host files need to be included, they are still commented out.

running nagios -v <configfile> should tell you if your config files are syntactical correct.
0
stressedout2004Author Commented:
I added the host configuration files below.I have also included a new copy of nagios.cfg.  Can you let me know if i am missing anything from what I have attached.    Thanks.
Host.txt
Local-Hosts.txt
nagios.txt
0
stressedout2004Author Commented:
I just noticed one other item in the configuration check.  SPSP Warning: Host 'SPSP' has no services associated with it!  This is my problem.

unning pre-flight check on configuration data...

Checking services...
        Checked 39 services.
Checking hosts...
Warning: Host 'SPSP' has no services associated with it!
        Checked 35 hosts.
Checking host groups...
        Checked 6 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 116 commands.
Checking time periods...
        Checked 4 time periods.
Checking extended host info definitions...
        Checked 1 extended host info definitions.
Checking extended service info definitions...
        Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
0
nociSoftware EngineerCommented:
indeed it is.
So adding the spsp to the right host groups would help a lot.
0
stressedout2004Author Commented:
I thought defining it in local-host.cfg would be the place since that is where the disk space and process are checked.  Its wrong, where else would i define spsp based on my file that are posted?  Thanks for your help.
0
nociSoftware EngineerCommented:
Well the host is in local-host. now allready (other wise you didn't get the error message)
Also there are complaints on all those other hosts there in the hosts file.

The service refer to a hostgroup, f.e. the ping-servers group.
---8<---
# check that ping-only hosts are up
define service {
        hostgroup_name                  ping-servers
        service_description             PING
        check_command                   check_ping!100.0,20%!500.0,60%
        use                             generic-service
        notification_interval           0 ; set > 0 if you want to be renotified
}
---%<---
Now in a hostgroup called ping-servers you need to add the SPSP server in an existing group that should look similar to:
btw you should allready have such a group.

define hostgroup {
                hostgroup_name                  ping-servers
                alias                                     Servers that need pinging
                members                             <bunch of servers> , spsp
}

There are now 4 groups mentioned in the service.txt you sent.
all those servervices are reachable through the network
(ping, http, ssh for servers and ping for routers)
That means you can run those checks without supporting tools on a system to be monitorred.

You need monitoring support if you need to ask stuf that is only visible from the inside (diskspace etc.)
i.e. the NSClientpp tool. You might need to define extra services and checks for that too.
0
stressedout2004Author Commented:
Humm im confused,  How can I monitor the following in the configuration below for all of my servers? This is what my goal is? Help   How can I add more then one server in place of hostname?

# Define a service to check the disk space of the root partition
# on the local machine.  Warning if < 20% free, critical if
# < 10% free space on partition.

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Disk Space
        check_command                   check_all_disks!20%!10%
        }



# Define a service to check the number of currently logged in
# users on the local machine.  Warning if > 20 users, critical
# if > 50 users.

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current Users
        check_command                   check_users!20!50
        }


# Define a service to check the number of currently running procs
# on the local machine.  Warning if > 250 processes, critical if
# > 400 users.

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Total Processes
                check_command                   check_procs!250!400
        }



# Define a service to check the load on the local machine.

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current Load
                check_command                   check_load!5.0!4.0!3.0!10.0!6.0!4.0
        }
               
0
nociSoftware EngineerCommented:
The trick to asign a service to a whole block of systems is to use a hostgroup entry

and point the service to it with:

        hostgroup_name                  ping-servers

in stead of

        host_name     xxxxx

Otherwise you have to specify all services you want to every system you have. (so multiple services dedicated to a system).



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stressedout2004Author Commented:
Thanks for the help, Do you have an email I can contact you through to ask you questions via Experts-Exchange?  I was hoping to send you an email when i posted a new question.  What do you think? can you email me at mcp76@hotmail.com
0
nociSoftware EngineerCommented:
it's against EE policy to use private mail...,
If there is someting in the linux networking department and it;s title containts nagios i probably will notice..., and there are only a few hours per week that I actualy work on EE, I have to earn a living and do need some sleep ;-) I will be notified of longer unanswered items in the network group.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.