Plugin that checks filesystem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Plugin that checks filesystem

Post by srikanth.kallu »

I have applied configuration and how do i make sure my service is enabled ?

I have attached a screenshot to show it runs when i click on test command.
You do not have the required permissions to view the files attached to this post.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Plugin that checks filesystem

Post by BanditBBS »

Did you add it to the host? go into the service's config and click the "Manage Hosts" button. make sure the host is listed there.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin that checks filesystem

Post by lmiltchev »

BanditBBS is correct - click on the "Manage Hosts" button under the "Common Settings" tab and see if the host has been assigned.
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Plugin that checks filesystem

Post by srikanth.kallu »

Thank you after adding the hostname and adding generic serive i can see this service under the host list.

It also alerts me when i run the script from the server. But for some reason the scrvice i created is not calling the script in the server.

To explain this in detail

This is my script

#!/bin/sh

FILE=/tmp/nfs.txt

df -h | grep mnt > $FILE

if [ -s $FILE ]
then
echo "/mnt is OK"
stateid=0
else
echo "/mnt is missing "
stateid=2
fi
exit $stateid


When i run this manually as ./check_nfs_mount.sh it is alerting me when /mnt is missing but serive itself is not calling the script in the server.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Plugin that checks filesystem

Post by BanditBBS »

Is that on the same server as your NagiosXI install? if not, then you need to use NRPE or whatever other method you may be using, to run the check on the remote system.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Plugin that checks filesystem

Post by srikanth.kallu »

I did these changes.

1.Added host ( Manage Hosts)
2. Added generic service ( Manage Templete)

But still id did not work. After Disabling and enabling Active schedule it started working great

Thank you very much for all your advices.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plugin that checks filesystem

Post by slansing »

Great! Keep in mind NRPE checks are going to be active checks, always.
Locked