Skip to content

Learning Nagios – 2

October 19, 2011

Some important Nagios commands that is used on a daily basis:

1) ./nagiostats

2) ./nagios stop

3) /etc/init.d/nagios restart

4) ./nagios -v /usr/local/nagios/etc/nagios.cfg

5) ./nagios -d /usr/local/nagios/etc/nagios.cfg

Setting up Notifications:

  • We need to define contacts and contact groups. Assign the contacts to the appropriate contact groups. Eg., system administrators, database administrator
  • Define host and hostgroups. Assign the hosts to the appropriate hostgroups Eg., a server which has database installed to the database server host group and so on
  • Then, finally define services to be monitored and assign the appropriate host name and contact group to the definition of these services so that notifications are sent out to the right people and not to everyone – Separation of Concern.
Test your config by running the 4th command above. Restart or reload nagios by running the 3rd command.

From → Monitoring

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: