Search found 4 matches
- Tue Jul 30, 2013 6:01 am
- Forum: Open Source Nagios Projects
- Topic: Create an alert for more than one superuser on server
- Replies: 2
- Views: 1043
Re: Create an alert for more than one superuser on server
Thank You Sir, I ended up using the following syntax which works as tested. #!/bin/bash count=$(awk -F: '{if ($3 < 1) print $0}' < /etc/passwd | wc -l) if [ $count -lt 2 ] ; then echo "OK" exit 0 elif [ $count=2 ] ; then echo "CRITICAL - Multiple Superusers" exit 2 fi done
- Mon Jul 29, 2013 7:05 am
- Forum: Open Source Nagios Projects
- Topic: Create an alert for more than one superuser on server
- Replies: 2
- Views: 1043
Create an alert for more than one superuser on server
Yes I am trying to figure out how to write a plugin that contains conditional logic in regards to sending an alert if more than one superuser exists on the server. The only thing I have so far is the following command: awk -F: '{if ($3 < 1) print $0}' < /etc/passwd which prints --> root:x:0:0:root:/...
- Tue Dec 11, 2012 7:17 am
- Forum: Open Source Nagios Projects
- Topic: Nagios Check for Cobian Backup
- Replies: 0
- Views: 1456
Nagios Check for Cobian Backup
Hello, I am searching for a Nagios Check for my Cobian Backups. I have searched the internet high and dry and apparently I am the only human being who has a desire to integrate a check for the status & completion of my Cobian Backups into Nagios. I am not a plugin writer otherwise I would take a...
- Thu Dec 08, 2011 11:47 am
- Forum: Open Source Nagios Projects
- Topic: Adding logic to Sensors service check
- Replies: 1
- Views: 979
Adding logic to Sensors service check
I am currently running Nagios 3.3.1 on Ubuntu and I am trying to figure out how to add logic to the following scenario: For example here is my sensors output: root@ubunag:/usr/local/nagios/etc/keys# sensors -f via686a-isa-6000 Adapter: ISA adapter Vcore: +1.82 V (min = +0.06 V, max = +3.10 V) in1: +...