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.
Plugin that checks filesystem
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
Re: Plugin that checks filesystem
You do not have the required permissions to view the files attached to this post.
Re: Plugin that checks filesystem
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
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
Re: Plugin that checks filesystem
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
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.
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.
Re: Plugin that checks filesystem
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
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
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.
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
Great! Keep in mind NRPE checks are going to be active checks, always.